Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tampermonkey suddenly stopped working. #2137

Open
DeltaStruct opened this issue Jul 29, 2024 · 15 comments
Open

Tampermonkey suddenly stopped working. #2137

DeltaStruct opened this issue Jul 29, 2024 · 15 comments

Comments

@DeltaStruct
Copy link

Tampermonkey suddenly stopped working.
I also tried disabling Tampermonkey and restarting the browser, but nothing changed.
I would like to see a list of user scripts installed if they are difficult to recover.

Expected Behavior

Actual Behavior

All script not working.
When I open options.html, it says that an internal error has occurred.
image

Specifications

  • Google Chrome: 127.0.6533.72
  • TM: (i.e. 4.5.5648) idk what this is sorry...
  • OS: Debian 12.6 (KDE Plasma 5.27.5)

Script

(Please give an example of the script if applicable.)

@derjanb
Copy link
Member

derjanb commented Jul 29, 2024

Please open the developer tools (ctrl+shift+j). Does the console tab show any errors?

@DeltaStruct
Copy link
Author

No errors were shown.
image

@DeltaStruct
Copy link
Author

Sorry, I closed it by mistake.

@DeltaStruct DeltaStruct reopened this Jul 29, 2024
@derjanb
Copy link
Member

derjanb commented Jul 29, 2024

Ok, then please open a tab and paste this URL: chrome://extensions/?id=dhdgffkkebhmkfjojejmpbldmpobfkfo. Find the "service worker" entry at "Inspect views" and click it. Do you see errors at this console tab?

@DeltaStruct
Copy link
Author

In "Inspect views" only background.html was found. There I see an error.
image

@derjanb
Copy link
Member

derjanb commented Jul 29, 2024

The first issue is that chrome.storage.session is not available even though it should. The next issues is that probably the indexedDB in the browser profile folder is broken.

Can you please try a new temporary profile?

@DeltaStruct
Copy link
Author

I tried it with a new profile and it worked.
image
"Service Worker" also exists.
image

@zpiao119
Copy link

我在win10使用Chrome也是同样的问题

@FabriceNeyret
Copy link

Same here: suddenly stop working on Chrome while working in FF.
Error messages relate to fonts violating Content Security Policy: (I don't even know it was possible :-O ) :

Refused to load the font 'data:font/truetype;charset=utf-8;base64,d09GRgABAAAAALY3ABIAAAABztAAAAAAAAC1QAAAAPcAAAHiAAAAAAAAAABHUE9TAACV9AAAFxIAAHKy/pn970dTVUIAAK0IAAAINQAAFD6g2KReTFRTSAAABtQAAAA6AAACQeO3nq5PUy8yAAACDAAAAFMAAABgZoZye2NtYXAAABxsAAADdwAABTpa8HPyY3Z0IAAAIbAAAAAoAAAAKAhGAbdmcGdtAAAf5AAAAQUAAAFzBpmcN2dhc3AAAJXoAAAADAAAAAwABwAHZ2x5ZgAAJkQAAGT0AADhaCjCChFoZG14AAAHEAAAFVwAADPIhU9AOGhlYWQAAAGUAAAANQAAADYFph12aGhlYQAAAcwAAAAgAAAAJAc2BPtobXR4AAACYAAABHEAAAj0jIVtDGxvY2EAACHYAAAEbAAABHyCc7p8bWF4cAAAAewAAAAgAAAAIARXAjxuYW1lAACLOAA...SCThVMYJIqZCqSu4rDezyzyKpY17tqhUyLsX30L+SQltAyggVZVqVMsLfPk1CNKvWoXtPreoMd2Ymd2YVd2S2+tbRTX92te3Sv7tP9egCjlnZ0oid96c/8LMkyrMgarMP67MDvNkYxV0uGjvOJFo+33umRlTnS48NR0ehv5tf6D/25M7IAAAB4AYVRRXfDMAz+K3q+jBc4DVyPmfGu56iNk9bKc9QO/ny5Y7iJP5DukGCGgtCjUDv2DZWsxsroHvmMA3jsUEM9TnoQx8NmHEMax+sKuqHdULlItRFFljsdCtZhW14qWh2mCiKj286Srwlc9vMROJ8M/Hcsak/njBZ6FrPHXtAKON/k7e/j0OQAb9h+mHVQhtg6Gm/r2TmjLVcvwbVymR6e31sY89p7uwn3o6Nvmx8XAmbUwVBOd48CVrkrwdWA8NYEbn69Ft3Z/AmDvFqGE2/fj78tvTlH0w9MfcpAGK7ZliRjjd2agD20SKpx8c34aPZXMwDpj6h5' because it violates the following Content Security Policy directive: "font-src github.githubassets.com".

/Tampermonkey/tampermonkey/issues:187 Refused to load the font 'data:font/truetype;charset=utf-8;base64, d09GRgABAAAAALM7AA8AAAABq0AAAAAAAACyRAAAAPcAAAHiAAAAAAAAAABHUE9TAACIDAAAIgQAAH82Ol56cUdTVUIAAKoQAAAIMwAAFD6gNKPBT1MvMgAAAdAAAABVAAAAYGbqc4pjbWFwAAAGbAAAA3wAAAU4Vch3gWN2dCAAAAwYAAAAQAAAAEAQPwNiZnBnbQAACegAAAEDAAABcwZZnDdnbHlmAAAQvAAAbJ4AAOZUwSn/MmhlYWQAAAFYAAAANgAAADYGApswaGhlYQAAAZAAAAAgAAAAJAdbBRtobXR4AAACKAAABEIAAAjwrN1ggGxvY2EAAAxYAAAEYgAABHqHyk9obWF4cAAAAbAAAAAgAAAAIARWA2ZuYW1lAAB9XAAAAoEAAAZuOd88j3Bvc3QAAH/gAAAIKgAAEi5ynk2NcHJlcAAACuwAAAEqAAACpAoaNTMAAQAAAAEAAA...STdLpgIn7fZCqSu5rDezyzyKpZz7vqhExLsEP0L+KQltJygoVYTqVM+PxDJaFaVekJvaE39RY7sTO7sCu7sbtQL3VQf92n+/WAHtRDehiopT2d6UU/BrAAS7EsK7Em67IBO/KnjVXM1dKhE3yixfOtb3pmZY70/HBUmjxmflv/BTgtM3AAeAGFUUV3wzAM/it6vowXOA1cj5nxrueojZPWynPUDv58uWO4iT+Q7pBghoLQo1A79g2VrMbK6B75jAN47FBDPU56EMfDZhxDGsfrCrqh3VC5SLURRZY7HQrWYVteKlodpgoio9vOkq8JXPbzETifDPx3LGpP54wWehazx17QCjjf5O3v49DkAG/Yfph1UIbYOhpv69k5oy1XL8G1cpkent9bGPPae7sJ96Ojb5sfFwJm1MFQTnePAla5K8HVgPDWBG5+vRbd2fwJg7xahhNv34+/Lb05R9MPTH3KQBiu2ZYkY43dmoA9tEiqcfHN+Gj2VzMA6Y+oeQ==' because it violates the following Content Security Policy directive: "font-src github.githubassets.com".
(twice)

@axel-magard
Copy link

axel-magard commented Jul 31, 2024

Same here: stopped working in Google Chrome. Userscript is not shown anymore as active for a given url. Works with Firefox. I tried w/o success:

  • new google chrome profile
  • switching extensions to developer mode ( as mentioned here )

Under Extensions I get told that Tampermonkey ( among others ) is an extension possibly not supported anymore.

@homes410
Copy link

homes410 commented Aug 1, 2024

Here's workaround for those who are witnessing this problem, Start Chrome with --disable-renderer-backgrounding appended to its command argument. Any extension process of Chrome is started as lowest priority so if you have high-load tabs, Tampermonkey extension would become sluggish, for now this is only way.

@EricE549X
Copy link

Ok, then please open a tab and paste this URL: chrome://extensions/?id=dhdgffkkebhmkfjojejmpbldmpobfkfo. Find the "service worker" entry at "Inspect views" and click it. Do you see errors at this console tab?

is there an equivalent to this for safari? i've been having issues every tuesday for over a month now

@komatosse
Copy link

Here's workaround for those who are witnessing this problem, Start Chrome with --disable-renderer-backgrounding appended to its command argument. Any extension process of Chrome is started as lowest priority so if you have high-load tabs, Tampermonkey extension would become sluggish, for now this is only way.

This didn't work for me ;/ Did anyone find the solution?
My scripts stopped working altogether, even though they show as active on the pages they should be. I tried reinstalling Tampermonkey, but no luck fixing the issue

@derjanb
Copy link
Member

derjanb commented Aug 11, 2024

Under Extensions I get told that Tampermonkey ( among others ) is an extension possibly not supported anymore.

@axel-magard Please to to chrome://extensions, enable developer mode and press the update button at the upper left.

Error messages relate to fonts violating Content Security Policy

@FabriceNeyret This errors are not related to any Tampermonkey issue.

is there an equivalent to this for safari? i've been having issues every tuesday for over a month now

@EricE549X Please check #2153

My scripts stopped working altogether, even though they show as active on the pages they should be.

@komatosse

Please open a tab and paste this URL: chrome://extensions/?id=dhdgffkkebhmkfjojejmpbldmpobfkfo. Find the "service worker" entry at "Inspect views" and click it. Do you see errors at this console tab?

@rcchan
Copy link

rcchan commented Aug 29, 2024

Same issue for me. Mine was related to #2011 and temporarily re-enabling via chrome://flags/#mutation-events makes the scripts work again.

If you're seeing "MutationEvent is not defined" as an error in the dev console (for the sites you're visiting, not the background or options pages for tampermonkey) this may be the same issue for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants