Skip to content

Commit

Permalink
增加历史版本demo页面的访问工具
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Mar 6, 2022
1 parent 01e7f0a commit 0a7805c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/工具-GitHub页面历史版本访问.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
reclog("正在拉取 ver:"+args_ver+" 页面... [sync]"+ToA(url));
Load(url,function(html){
var title=(/>([^<>]+)<\/title>/.exec(html)||[])[1]||"";
if(title)document.title=title;
if(title)document.title="[版本:"+args_ver+"] "+title;
reclog("拉取成功【"+title.replace(/<|'|"/g,"")+"】,已开始执行原始页面内容。",2);

html=html.replace(/<!DOCTYPE.*?>/ig,"");
Expand Down

0 comments on commit 0a7805c

Please sign in to comment.