Greasy Fork is available in English.

yahvt

yet another html5 video tool

< Отзив за yahvt

Въпрос/коментар

§
Публикуван на: 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.

gnblizzАвтор
§
Публикуван на: 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.

gnblizzАвтор
§
Публикуван на: 03.09.2016
Редактиран на: 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.

Публикувайте отговор

Влезте, за да публикувате отговор.