diff --git a/README.zh.md b/README.zh.md index a60f9f6..3c346a0 100644 --- a/README.zh.md +++ b/README.zh.md @@ -31,7 +31,7 @@ 小书签(bookmarklet)再也不用手工输入,直接将小书签网站加入书签即可。运行时长按出菜单后选择“在新窗口中打开”,小书签将作用于最后一个窗口。 -独创不良信息绝杀:屏蔽hosts文件中域名的一切子域名、孙域名...,不良信息一网打尽。 支持域名前缀、网址路径正则表达式屏蔽。 +独创不良信息绝杀:阻止指定根域名的一切子域名、孙域名...,不良信息一网打尽。 支持根域名前缀、网址路径正则表达式。 独创脚本激活模式,脚本执行后被激活,此后自动作用于同类网址。用于本地文件访问则可实现不同目录以不同风格呈现,譬如markdown目录下文本自动转化成html预览。 diff --git a/index.html b/index.html index f9c0bee..33185bf 100644 --- a/index.html +++ b/index.html @@ -1 +1,10 @@ - + + + + en/ + + + + + + diff --git a/zh/searchurl/txt/mdict.html b/zh/searchurl/txt/mdict.html index 30a9dce..4578066 100644 --- a/zh/searchurl/txt/mdict.html +++ b/zh/searchurl/txt/mdict.html @@ -90,14 +90,16 @@ }; //dictinput.onClick = {(e)=>{e.target.value="";}}; - let filenames = location.search.substring(6); - if(filenames.length>0){ - dictinput.setAttribute('accept',filenames); - setTimeout(()=>{location.href="i:5fdictinput.click();"},100); - setTimeout(()=>{location.href="i:5fdictinput.click();"},300); - setTimeout(()=>{dictinput.dispatchEvent(new Event('change'));dictinput.removeAttribute('accept')},500); + window.onload = function() { + let filenames = location.search.substring(6); + if(filenames.length>0){ + dictinput.setAttribute('accept',filenames); + location.href="i:5fdictinput.click()"; + //setTimeout(()=>{location.href="i:5fdictinput.click();"},100); + //setTimeout(()=>{location.href="i:5fdictinput.click();"},300); + setTimeout(()=>{dictinput.dispatchEvent(new Event('change'));dictinput.removeAttribute('accept')},500); + } } -