Open the F**king URL Right Now

自动跳转某些网站不希望用户直达的外链

< 腳本Open the F**king URL Right Now的回應

評論:OK - script works, but has bugs

§
發表於:2023-03-18

脚本会向微信网页中代码块内的小书签链接中添加某些字符

开启脚本前代码:

javascript:var frame=document.createElement('iframe');frame.setAttribute('id','sidebarView');var x='https://edgeservices.bing.com/edgediscover/query?clientscopes=windowheader,coauthor,chat,&udsframed=1';frame.src=x;frame.style.position='fixed';frame.style.top='-1px';frame.style.right='0%';frame.style.height='100%';frame.style.width='450px';frame.style.border='1px solid #bbb';frame.style.background='#fff';frame.style.zIndex='100000';document.body.appendChild(frame);void(0);javascript:(()=>{const b = document.createElement('button');b.setAttribute('id','sidebarClose');b.onclick=()=>{document.querySelectorAll('#sidebarView,#sidebarClose').forEach(function(i) {i.parentElement.removeChild(i);});};b.style='all:reset;position:fixed;z-index:999999;top:3%;margin:auto;right:220px;width:28px;height:28px;border-radius:50%;border: 2px solid #bbb;background-color:#eee;';b.innerText='✕';document.body.appendChild(b)})();

开启脚本后代码:

javascript:var frame=document.createElement('iframe');frame.setAttribute('id','sidebarView');var x='https://edgeservices.bing.com/edgediscover/query?clientscopes=windowheader">https://edgeservices.bing.com/edgediscover/query?clientscopes=windowheader,coauthor,chat,&udsframed=1';frame.src=x;frame.style.position='fixed';frame.style.top='-1px';frame.style.right='0%';frame.style.height='100%';frame.style.width='450px';frame.style.border='1px solid #bbb';frame.style.background='#fff';frame.style.zIndex='100000';document.body.appendChild(frame);void(0);javascript:(()=>{const b = document.createElement('button');b.setAttribute('id','sidebarClose');b.onclick=()=>{document.querySelectorAll('#sidebarView,#sidebarClose').forEach(function(i) {i.parentElement.removeChild(i);});};b.style='all:reset;position:fixed;z-index:999999;top:3%;margin:auto;right:220px;width:28px;height:28px;border-radius:50%;border: 2px solid #bbb;background-color:#eee;';b.innerText='✕';document.body.appendChild(b)})();

由于自己的插件和脚本比较多,花了一下午才找到这个问题,整个人现在就是非常难受!!!

OldPanda作者
§
發表於:2023-03-29

不好意思,这个情况确实没有考虑到,我找时间修一下

發表回覆

登入以回復