Greasy Fork is available in English.

yahvt

yet another html5 video tool

< Spätná väzba na yahvt

Otázka/komentár

§
Pridaný: 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
§
Pridaný: 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
§
Pridaný: 03.09.2016
Upravený: 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.

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.