本帖最后由 CrLf 于 2015-5-7 23:38 编辑
存为 bat 或 hta 均可:- <!-- :
- @echo off
- mshta "%~f0"
- pause & exit /b
- -->
-
- <script src=http://www.bathome.net/lib/diy/hide.js></script>
- <script src=http://www.bathome.net/lib/diy/iconv.js></script>
- <script>
- var HtmlText = iconv.loadText('index.html','utf-8')
- var FileNameList = iconv.loadText('中文名.txt','gb2312').match(/[^\s]+/mg)
-
- var newHtmlText = HtmlText.replace(
- /("thumbnailtitle"\>).+?(?=\<\/a)/g,
- function($0,$1){return $1+FileNameList.shift()}
- )
-
- iconv.saveText(newHtmlText,'new.html','utf-8')
- </script>
复制代码 依赖 js 在线脚本库 |