Last active
September 9, 2023 12:00
-
-
Save riledhel/d057ea8ab07e218ea024 to your computer and use it in GitHub Desktop.
Download first result in kickass torrents, bookmarklet for firefox
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
javascript:(function(){ | |
var re = new RegExp("^magnet\:\?"); | |
var row = document.getElementsByClassName("odd")[0]; | |
var links = row.getElementsByTagName('a'); | |
for (i = 0; i < links.length; i++) { | |
if (re.test(links[i])) { | |
window.location = links[i]; | |
return; | |
} | |
} | |
void 0;})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment