Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
Is it possible to add options to the script that the user can activate and deactivate and thus change the script execution?
Some user might not like some features of a script and thus they would be able to deactivate them.
If it is not possible now, are there any plans to add such a feature?
Re: @freeos:
Take a gander at https://openuserjs.org/garage/Making_a_blocklist_user-friendly
Re: @Marti:
thanks!
Re: @Marti:
GM_config lacks the following features, a regular user might want:
I think a better alternative solution would be if the options could be accessed through the Violentmonkey extenesion popup. Then they will be always active, and when the user decide to change them he can do so.
Re: @freeos:
You should only call GM_config.open() when the user wants to open it or you need the user to decide something.
You can add one or more menu commands to appear below the name of your script for users to call up the settings dialog, but the dialog would need to launch from the script in the web page, for example, in an overlay or popup window.
The code to allow real-time settings changes to take effect immediately can be laborious to write. As an example -- by someone without a programming background, so surely it's not very efficient -- you could look at:
https://www.jeffersonscher.com/gm/google-hit-hider/
Re: @freeos:
Taking the less subtle approach, unlike jscher2000's gently mentioned open advice, to prevent blatant misinformation:
This is absolutely incorrect. You have clearly ignored bothering to check out how to use GM_config with the .open command.
Again incomplete research on your part with poor assumptions on the GM_config Unit Test.
The wiki is referenced on the library homepage and should have been your first visit before assuming incorrectly.
Please try, try again.