Greasy Fork is available in English.

Google Search Extra Buttons

Add buttons (past 1/2/3 days, weeks, PDF search etc.) for Google search page

< 腳本Google Search Extra Buttons的回應

評論:正評 - 腳本一切正常

§
發表於:2016-09-09

Quick question !

I really like this script, I was looking at the code which is to advanced for me to understand fully and I have a question:

What is the purpose of " saveYourLocalStorage.html" ?

I understand it save something in the localStoregae of mt browser but why it need it ? and why this code need to be in an external webpage ?

Regards :yum:

spmbt作者
§
發表於:2016-09-09
編輯:2016-09-09

Hi!
It save state of script in localStorage of domain "spmbt.github.io" because localStorage of domain "google.XXX" was cleaned regularly (by Google scripts of site). No possibilities to save anything in domain google.XXX. State of script contains your individual settins: last selected hours, days, weeks, ..., sites and language of interface.

Also, for information, Facebook follows a similar policy on its website.

§
發表於:2016-09-09

Thanks a lot ! :smiley:

發表回覆

登入以回復