But those broken sites are so depressing... either pop-up advertisements or floating advertisements all over the screen... I'm so angry...
So I made a super simple browser and basically banned all JS in the page (the rule of disabling JS is not very good, and the ones in CSS are not banned, but it's enough for me to use it at the moment). By the way, I also killed all the iframes.
You can also automatically remember the page you browsed last time, and you can enter it directly when you open it. You are not afraid of interrupting when reading a book.
Because it is super simple, it doesn't even support the form, it only supports links. Haha, reading is enough...
The pseudo session processing in the code and the xmlhttp I encapsulated are worth seeing
Can't run directly, save it locally, save it as HTA for use, haha
The code is as follows:
<head>
<title>BookViewer</title>
<metahttp-equiv="content-type"content="text/html;charset=UTF-8"/>
<style>
body{margin:0px;padding:0px;overflow:auto;border-style:none;font-size:12px;background-color:buttonface;}
iframe{width:100%;border-style:none;position:absolute;top:25px;}
#i1{height:22px;line-height:18px;width:100%;border:1pxsolid#666;margin:0px2px;padding:0px10px;}
</style>
<script>
strSessionName="bookviewer_lastURL";
lastURL="";
xp=newxmlhttp();
functioncheckMe(){
if(i1.value!=lastURL){
lastURL=i1.value;
session_set(strSessionName,lastURL);
}
try{
for(vari=0;i<f1.document.links.length;i++)f1.document.links[i].onclick=n0;
}catch(e){}
if(/book/.5seecn/i.test(lastURL))f1.document.body.onkeydown=chkKey;
}
functionchkKey(){
varallLinks;
if(f1.event.keyCode==39){
allLinks=f1.document.links;
for(vari=0;i<allLinks.length;i++)if(/next page/.test(allLinks[i].innerHTML)){
i1.value=allLinks[i].href;n2();return;
}
}elseif(f1.event.keyCode==37){
allLinks=f1.document.links;
for(vari=0;i<allLinks.length;i++)if(/Previous page/.test(allLinks[i].innerHTML)){
i1.value=allLinks[i].href;n2();return;