Greasy Fork is available in English.

Open the F**king URL Right Now

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

< Valutazione su Open the F**king URL Right Now

Recensione: OK - lo script funziona, ma ha degli errori.

§
Pubblicato: 18/03/2023

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

开启脚本前代码:

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

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

OldPandaAutore
§
Pubblicato: 29/03/2023

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

Pubblica risposta

Accedi per pubblicare una risposta.