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.25k stars 422 forks source link

Tampermonkey suddenly stopped working. #2137

Open DeltaStruct opened 2 months ago

DeltaStruct commented 2 months ago

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

derjanb commented 2 months ago

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

DeltaStruct commented 2 months ago

No errors were shown. image

DeltaStruct commented 2 months ago

Sorry, I closed it by mistake.

derjanb commented 2 months ago

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 commented 2 months ago

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

derjanb commented 2 months ago

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 commented 2 months ago

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

zpiao119 commented 2 months ago

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

FabriceNeyret commented 2 months ago

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 commented 2 months ago

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:

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

homes410 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 1 month ago

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.

punnerud commented 4 days ago

I had the same issue, uninstalled (copy all scripts first because they will be lost) and reinstall. Now it works again.