Created
January 12, 2022 17:04
-
-
Save JMVS/f58333a9e0ce7e13f48ddebd93075fb5 to your computer and use it in GitHub Desktop.
TorrentPelis direct page to torrent link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TorrentPelis direct torrent link | |
// @version 0.1 | |
// @author JMVS | |
// @grant none | |
// @namespace https://torrentpelis.com/ | |
// @description Changes download URL to the final site to actually download the media | |
// @include https://*.torrentpelis.com/peliculas/* | |
// @match https://*.torrentpelis.com/peliculas/* | |
// @exclude https://torrentpelis.com/ | |
// @exclude https://torrentpelis.com/enlaces/ | |
// ==/UserScript== | |
(function() { | |
var links,thisLink; | |
links = document.evaluate("//a[@href]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | |
for (var i=0;i<links.snapshotLength;i++) { | |
var thisLink = links.snapshotItem(i); | |
thisLink.href = thisLink.href.replace('https://adfly.mobi/api/?type=anonym&url=',''); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment