Home > front end >  Why console to modify the code in the TAB will not be able to perform?
Why console to modify the code in the TAB will not be able to perform?

Time:10-21

Click on the add code in the console, the code is used when detected the countdown 0 seconds, delays in 700 milliseconds, click on the submit button,

This code, in the current label is no problem, but in the same window can't perform other multiple tags, labels only switch to the other to perform the current label, validated by hand, but if put a few other tags, pulled into a separate window, as long as it's not minimized state, it is normal, and minimize the window even if only one tag also does not perform,

Browser for qq browser and complete browser, the same effect,

How to modify for multiple tags are under the same window? Ask everybody to correct,

Var timer=setInterval (function () {
Var STR=document. QuerySelector (" d - right. Red - tip "). The innerHTML;
If (STR=="countdown 00 00 00 seconds") {
ClearInterval (timer);
SetTimeout (function () {
Document. QuerySelector (". Qn - BTN. Ensure - BTN "). Click ();
}, 700);
}
}, 20);

CodePudding user response:

Said too wordy, in front of the simple summary:
1, the browser to open three same automatically click TAB of the countdown, only in the current TAB can perform automatically click the code, and manual which TAB, switch to the TAB of the code which would begin to carry out,
2, 3 tabs are pulled into three separate window, three window code all normal execution automatically click,
3, the above three separate window minimized, is minimized window does not perform after click code automatically, began to execute the code until the switch to the current window,
  • Related