浏览器书签小工具
在任意页面点一下书签,就把链接推给 qBittorrent
安装步骤
长按复制下面输入框里的代码。
Chrome → 书签 → 新建书签,名称填「推到qB」,网址粘贴代码。
在 PT 页面选中下载链接(或让脚本自动找磁力链接),点击该书签即可。
你的专属代码
javascript:(function(){var U='https://www.15699258083.top/push?format=json',T='c962100e1b74d8e105ec9427e1cc551e';var u=(window.getSelection()+'').trim();if(!u){var a=document.querySelector('a[href^="magnet:"]')||document.querySelector('a[href*="download"]');u=a?a.href:'';}if(!u){u=prompt('粘贴磁力链接或种子下载链接')||'';}if(!u)return;var d=document.createElement('div');d.textContent='推送中…';d.style.cssText='position:fixed;z-index:2147483647;left:50%;top:12%;transform:translateX(-50%);background:#111;color:#fff;padding:12px 16px;border-radius:12px;font:15px system-ui;box-shadow:0 6px 24px rgba(0,0,0,.5);max-width:80vw';document.body.appendChild(d);fetch(U,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'token='+encodeURIComponent(T)+'&url='+encodeURIComponent(u)}).then(function(r){return r.json()}).then(function(j){d.textContent=(j.ok?'✅ ':'❌ ')+j.msg;setTimeout(function(){d.remove()},4000)}).catch(function(e){d.textContent='❌ '+e;setTimeout(function(){d.remove()},6000)});})();
复制代码