You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To consistently execute the script that matches the website and show the scripts that match a website in the extension menu.
Actual Behavior
Every once in a while, so far seemingly randomly, no script loads. Tampermonkey appears to fail to match available scripts to the page (no scripts are shown in the dropdown menu). Refreshing the page gets it working again. Can't replicate it consistently. The amount of tabs in this screenshot is how many tries it took to trigger the issue.
The error in the console is from Tampermonkey
Uncaught Error: pagejs missing. Please see http://tmnk.net/faq#Q208 for more information. chrome-extension://iikmkjmpaadaobahmlepeloendndfphd\4.18.1_0\content.js
It doesn't seem to be unique to reddit, I've also encountered the issue with my Youtube & Coinbase scripts.
Specifications
Microsoft Edge Version 108.0.1462.76 (Official build) (64-bit)
TM: 4.18.1_0
OS: Win10 21H2 19044.2364
Script
My scripts are way too long. But they're basically like this:
// ==UserScript==// @name RESEnhancementScript-2// @version 2.0.0// @description Enhance RedditEnhancementSuite// @author Derek Ziemba// @match *://*.reddit.com/*// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com// @noframes// @nocompat// @run-at document-start// @grant GM_getResourceText// @grant GM_addStyle// @grant GM_addElement// @grant GM_getValue// @grant GM_setValue// @grant GM_deleteValue// @grant GM_listValues// @grant GM_addValueChangeListener// @grant GM_removeValueChangeListener// @grant GM_log// @grant GM_info// @grant GM_registerMenuCommand// @grant GM_unregisterMenuCommand// @grant GM_xmlhttpRequest// @grant window.close// @grant window.onurlchange// @require file:///A:/Dropbox/Scripts/.js/ZZ/core/GM.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/core/RetroEvents.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/core/WaitFor.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/core/DeferredAction.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/core/Debouncer.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/core/Batcher.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/reddit-base.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/config.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/mainMenu.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/SublinksBar.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/ScrollingSideBars.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/ContinueThisThread.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/FilterRule.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/rules.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/Thing.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/LinkRegistry.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/ListingManager.js// @require file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/reddit.js// @resource STYLE file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/reddit.css// @resource TEMPLATES file:///A:/Dropbox/Scripts/.js/ZZ/site/reddit/reddit.html// ==/UserScript==/** All my scripts first @require file:///A:/Dropbox/Scripts/.js/ZZ/core/GM.js Basically creates my environment (common functions) and hacks in 'require', 'module', & 'exports' functionality This is basically the start of that file (2069 lines long)*/GM=((/**@type {GreaseMonkey.IGM}*/powers,/**@type {UnsafeWindow}*/unsafeWindow)=>{return{// This my workaround after your update broke my scripts. // I see you removed `powers` // and introduced a `GM` variable with async equivalents of the `GM_*` functions?// I was already using the 'GM' variable so that hurt a little bit. addStyleAsync: powers.addStyle,addElementAsync: powers.addElement,getResourceTextAsync: powers.getResourceText,logAsync: powers.log,infoAsync: powers.info,listValuesAsync: powers.listValues,getValueAsync: powers.getValue,setValueAsync: powers.setValue,deleteValueAsync: powers.deleteValue,addValueChangeListenerAsync: powers.addValueChangeListener,removeValueChangeListenerAsync: powers.removeValueChangeListener,registerMenuCommandAsync: powers.registerMenuCommand,unregisterMenuCommandAsync: powers.unregisterMenuCommand,xmlhttpRequestAsync: powers.xmlhttpRequest,addStyle: typeofGM_addStyle!=='undefined' ? GM_addStyle : powers.addStyle,addElement: typeofGM_addElement!=='undefined' ? GM_addElement : powers.addElement,getResourceText: typeofGM_getResourceText!=='undefined' ? GM_getResourceText : powers.getResourceText,log: typeofGM_log!=='undefined' ? GM_log : powers.log,info: typeofGM_info!=='undefined' ? GM_info : powers.info,listValues: typeofGM_addStyle!=='undefined' ? GM_listValues : powers.listValues,getValue: typeofGM_getValue!=='undefined' ? GM_getValue : powers.getValue,setValue: typeofGM_setValue!=='undefined' ? GM_setValue : powers.setValue,deleteValue: typeofGM_deleteValue!=='undefined' ? GM_deleteValue : powers.deleteValue,addValueChangeListener: typeofGM_addValueChangeListener!=='undefined' ? GM_addValueChangeListener : powers.addValueChangeListener,removeValueChangeListener: typeofGM_removeValueChangeListener!=='undefined' ? GM_removeValueChangeListener : powers.removeValueChangeListener,xmlhttpRequest: typeofGM_xmlhttpRequest!=='undefined' ? GM_xmlhttpRequest : powers.xmlhttpRequest,registerMenuCommand: typeofGM_registerMenuCommand!=='undefined' ? GM_registerMenuCommand : powers.registerMenuCommand,unregisterMenuCommand: typeofGM_unregisterMenuCommand!=='undefined' ? GM_unregisterMenuCommand : powers.unregisterMenuCommand,};/**@ts-ignore*/})(GM,typeofunsafeWindow!=='undefined' ? unsafeWindow : globalThis??window);Object.defineProperty(unsafeWindow,'GM',{configurable: true,value: GM});/** Here I create my own 'require', 'module', & 'exports' functions as well as various helper functions. Then the remaining scripts that were @require'd get appended*/
The text was updated successfully, but these errors were encountered:
Expected Behavior
To consistently execute the script that matches the website and show the scripts that match a website in the extension menu.
Actual Behavior
Every once in a while, so far seemingly randomly, no script loads. Tampermonkey appears to fail to match available scripts to the page (no scripts are shown in the dropdown menu). Refreshing the page gets it working again. Can't replicate it consistently. The amount of tabs in this screenshot is how many tries it took to trigger the issue.
The error in the console is from Tampermonkey
It doesn't seem to be unique to reddit, I've also encountered the issue with my Youtube & Coinbase scripts.
Specifications
Script
My scripts are way too long. But they're basically like this:
The text was updated successfully, but these errors were encountered: