Greasy Fork is available in English.

yahvt

yet another html5 video tool

< Părere la script-ul yahvt

Întrebare/comentariu

§
Postat în: 31-08-2016

replace sessionStorage with GM API

first of all, thanks for sharing this great userscript with everyone.

Is it possible to change from sessionStorage to GM API such as GM_setValue to make it less dependent on browser settings?

Some users may have disabled dom.storage.enabled in Firefox setting to improve privacy and thus causes the script to not working.

I have changed it to GM API without any errors but without extensive testing.

gnblizzAutor
§
Postat în: 02-09-2016
Is it possible to change from sessionStorage to GM API such as GM_setValue to make it less dependent on browser settings?

Yes, of course. The storage holds just temporary information, mostly for the multipart feature. However, in a new session these values are invalid.


Some users may have disabled dom.storage.enabled in Firefox setting to improve privacy and thus causes the script to not working.

Thanks for reporting. I provided a default value, but I didn't test against such settings.

PS: I'm glad You like my script.

gnblizzAutor
§
Postat în: 03-09-2016
Editat în: 03-09-2016

The script was updated, but without following your recommendation for GM_setValue. I prefer the less persistent sessionStorage.
In case of a paranoid user it will work now, but with the loss of some operating comfort in multipart mode.

Postează un raspuns

Autentifică-te pentru a posta un răspuns.