Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
grammar, typos
Source Link
elixenide
  • 44.9k
  • 16
  • 79
  • 103

tampermonkey script stops working if aI change the page

I am using Tampermonkey to save time on frequent tasks. The goal is to get content of an element on www.example1.com, navigate to another page, and do stuff there. The starting page is www.example1.com as seen from match. This is the code I am using:

//@match http://example1.com var item = document.getElementById("myId").textContent; window.open("http://example2.com","_self"); setTimeOut(function( //perform clicks on this page ){},3000); 

allNone of the code after changing URL neverURLs ever gets executed. Why, and what is the workaround?

tampermonkey script stops working if a change the page

I am using Tampermonkey to save time on frequent tasks. The goal is to get content of element on www.example1.com, navigate to another page and do stuff there. The starting page is www.example1.com as seen from match. This is the code I am using:

//@match http://example1.com var item = document.getElementById("myId").textContent; window.open("http://example2.com","_self"); setTimeOut(function( //perform clicks on this page ){},3000); 

all the code after changing URL never gets executed. Why and what is the workaround?

tampermonkey script stops working if I change the page

I am using Tampermonkey to save time on frequent tasks. The goal is to get content of an element on www.example1.com, navigate to another page, and do stuff there. The starting page is www.example1.com as seen from match. This is the code I am using:

//@match http://example1.com var item = document.getElementById("myId").textContent; window.open("http://example2.com","_self"); setTimeOut(function( //perform clicks on this page ){},3000); 

None of the code after changing URLs ever gets executed. Why, and what is the workaround?

Source Link
potato
  • 4.6k
  • 7
  • 52
  • 110

tampermonkey script stops working if a change the page

I am using Tampermonkey to save time on frequent tasks. The goal is to get content of element on www.example1.com, navigate to another page and do stuff there. The starting page is www.example1.com as seen from match. This is the code I am using:

//@match http://example1.com var item = document.getElementById("myId").textContent; window.open("http://example2.com","_self"); setTimeOut(function( //perform clicks on this page ){},3000); 

all the code after changing URL never gets executed. Why and what is the workaround?