Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.29k stars 424 forks source link

[Bug] Using the browser to go back to the history page in some sites will cause the running script to disappear. `MV3` #2097

Closed F9y4ng closed 3 months ago

F9y4ng commented 4 months ago

Actual Behavior

On some sites (such as greasyfork.org), the browser's forward or backward operation will cause the script manager's script menu to disappear.

To emphasize: the script loads successfully and runs fine, but only the script menu disappears.

screenshot

screenshot_2024-06-17_20-28-55

Specifications

F9y4ng commented 4 months ago

@derjanb, the following three sites all have issues with the script menu disappearing when using the browser's backward action:

  1. greasyfork.org
  2. openuserjs.org
  3. www.userscript.zone
F9y4ng commented 4 months ago

Sequence of actions:

  1. open a new window for greasyfork.org or any site in my comment above;
  2. Click on a few random links within the website;
  3. Use the browser's back button to go back to the previous history page. At this time, click the TM icon, and all the running scripts in the drop-down menu will disappear.

Affected Versions: 5.2.0 / 5.2.1 / 5.2.6198 / 5.3.6200 / 5.3.6201 / 5.3.6202

derjanb commented 4 months ago

Thanks for reporting. Should be at 5.3.6204 (crx|xpi in review)

Please download the crx file linked above and drag and drop it to the extensions page chrome://extensions (after you've enabled 'Developer Mode').

F9y4ng commented 3 months ago

Thanks, it works fine now.