OldPanda/Open-the-F-king-URL-Right-Now

插件会破坏微信公众号文章中带 URL 的代码片段

OldPanda opened this issue · 0 comments

来自 teteko评论

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

开启脚本前代码:

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)})();

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