Create a “config” or “options” page for a Greasemonkey script

There are a few libraries which provide config pages for userscripts: 1) GM_config 2) MonkeyConfig 3) GM_registerMenuCommand Submenu JS Module The usage varies per library, but typically you grant the permissions they need such as GM_getValue and GM_setValue, and require the library via the @require directive, e.g.: // ==UserScript== // @name My Userscript // @description … Read more

How to determine why a Greasemonkey script is not running [duplicate]

When I was starting with user scripts, my first error was not using wildcards. // Broken: // @include https://www.example.com/ // Working: // @include https://www.example.com/* That’s the simplest way for the script to not even apply, and thus not run at all. In addition, make sure to check for syntax errors; a misplaced semicolon can prevent … Read more

Why is usage of the downloadURL & updateURL keys called unusual and how do they work?

Use of those keys is discouraged mainly by Greasemonkey’s lead developer. Most others, including the Tampermonkey team feel no need for such a warning. Also note that those directives are not always required for auto-updates to work. Some reasons why he would say that it was unusual and that “most” scripts should omit it: In … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)