2009-11-11 82 views

回答

2

您可以使用GM_setValueGM_getValue存储设置等

尝试“得到”的标志。如果没有设置,则进行第一次运行调用,然后设置该值。例如

var isfirstrun = GM_getValue('firstrun', '0'); 
if (isfirstrun == '0') 
{ 
    // value not set, so must be the first run 
    DoSomething(); 
    GM_setValue('firstrun', '1'); 
} 

的文档是here

相关问题