Hi everyone, I'm seeking your help, I'm looking for a way to make a user-friendly blocklist.

I know I could block some element by hard coding it in the script but I need it to be easy to use as possible so it must be done without editing directly the script and just by clicking on a button. So I think I'll need a way to store data permanently but relaying on local storage or cookie looks too unreliable to me so I have no idea how it's done in TM or GM.

If you know similar script or some idea to acheive that, I'll be grateful. Thank you in advance.

Just discovered GM_SuperValue, really great, maybe it'll be enough? But if you have other idea don't hesitate.

Re: @passepartout39:

So I think I'll need a way to store data permanently but relaying on local storage or cookie looks too unreliable to me so I have no idea how it's done in TM or GM.

Take a look at GM_config library and corresponding The GM_config Unit Test to see if it meets your needs. Ensure that you are using // @grant GM_setValue and related in your UserScript metadata block so it should pick the GM storage instead of more public storage.

Re: @passepartout39:

GM_SuperValue, really great, maybe it'll be enough?

...

but I need it to be easy to use as possible so it must be done without editing directly the script and just by clicking on a button.

Doesn't do this portion of your query.