Comments (6)
同祝春节快乐,是说的哪个脚本?
from userscripts.
同祝春节快乐,是说的哪个脚本?
全載
from userscripts.
magnet 后面似乎不是磁链 hash,点进去之后的 hash 后面才是。
可以用这个油猴脚本来替换内页的磁链
// ==UserScript==
// @name BT4G
// @namespace hoothin
// @version 2024-02-07
// @description BT4G
// @author You
// @match https://bt4gprx.com/magnet/*
// @grant none
// @run-at document-body
// ==/UserScript==
(function() {
'use strict';
const magnetImg = document.querySelector(`img[src="/static/img/magnet.png"]`);
if (!magnetImg) return;
const magnetLink = magnetImg.parentNode;
magnetLink.href = magnetLink.href.replace(/.*\/hash\/(.*)\?name=(.*)/, "magnet:?xt=urn:btih:$1&dn=$2&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.auctor.tv%3A6969%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=https%3A%2F%2Fopentracker.i2p.rocks%3A443%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.moeking.me%3A6969%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fexplodie.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fuploads.gamecoast.net%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.skyts.net%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.cubonegro.lol%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker-udp.gbitt.info%3A80%2Fannounce&tr=udp%3A%2F%2Fopentracker.io%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.tracker.ink%3A6969%2Fannounce&tr=udp%3A%2F%2Fnew-line.net%3A6969%2Fannounce&tr=udp%3A%2F%2Fmovies.zsw.ca%3A6969%2Fannounce&tr=udp%3A%2F%2Fbt.ktrackers.com%3A6666%2Fannounce&tr=https%3A%2F%2Ftracker.tamersunion.org%3A443%2Fannounce&tr=https%3A%2F%2Ftracker.bt4g.com%3A443%2Fannounce");
})();
from userscripts.
感谢
这个能适配一下不,https://btsow.motorcycles/ ,上面那个记错了,这个是网址直接是磁力
from userscripts.
// ==UserScript==
// @name BTSOW
// @namespace hoothin
// @version 2024-02-07
// @description BT4G
// @author You
// @match https://btsow.motorcycles/search/*
// @grant none
// @run-at document-body
// ==/UserScript==
(function() {
'use strict';
[].forEach.call(document.querySelectorAll(`.row>a`), link => {
const magnetLink = document.createElement("a");
magnetLink.innerText = "🧲";
magnetLink.style.cssText = "float: left; top: -25px; position: relative; left: -10px; margin-bottom: -25px;";
magnetLink.href = link.href.replace(/.*\/hash\/(.*)/, "magnet:?xt=urn:btih:$1");
link.parentNode.appendChild(magnetLink);
});
})();
from userscripts.
感谢大佬,在新的一年事事顺利
from userscripts.
Related Issues (20)
- WikiFeet
- Request Pagetual: tokopedia.com HOT 3
- bing设置页面会强行自动滑到底部,而不能往上拉 HOT 1
- vsco.co HOT 1
- 求大佬适配33.agilestudio.cn HOT 1
- pagetual: pdki-indonesia.dgip.go.id HOT 2
- 网站规则请求 HOT 1
- add support for downloading images from vk HOT 1
- add support for downloading all images from bunkr HOT 1
- add an option to remove image name HOT 1
- 能否新增自动滚动网页到底后自动切换到下一标签页继续自动滚动翻页的功能? HOT 1
- 我好像发现bug了。 HOT 1
- 69小说网请求追加 HOT 1
- 在telegram中无法正常使用 HOT 1
- Picviewer的图库预读功能似乎无法正确适配Pixiv HOT 3
- docs.cursor.sh HOT 1
- Request Pagetual: sumeks.disway.id
- Custom rule request: nnmclub.to [RU] HOT 2
- Download History on NexusMods HOT 1
- [pagetual] 請問iframeInit屬性 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userscripts.