Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Last active July 3, 2016 23:34
Show Gist options
  • Save MaxySpark/c0417209ef88af9396179b62b4b68481 to your computer and use it in GitHub Desktop.
Save MaxySpark/c0417209ef88af9396179b62b4b68481 to your computer and use it in GitHub Desktop.
This UserScript redirect the kickasstorrents and extratorrent old and block domains to new and proxy domains! You have to install Tempermonkey or Greasemonkey extension/addon in your browser! and you must Allow pop up for extratorrent.cc
// ==UserScript==
// @name Access Torrent Directly From Old Domain
// @namespace http://maxyspark.com/
// @version 0.1
// @description try to take over the world!
// @author MaxySpark
// @match http://kat.cr/*
// @match http://extratorrent.cc/torrent/*
// @match http://torrentunblock.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var url = window.location.pathname;
var host = window.location.hostname;
function OpenInNewTab() {
var win = window.open("http://torrentunblock.com/unblock/extratorrent.cc/", '_blank');
win.focus();
if(!win){
alert('enable pop up for extratorrent.cc');
}
}
function start() {
if(host==="kat.cr") {
window.location = "http://kickasstorrentsan.com"+url;
}
else if(host==="extratorrent.cc") {
OpenInNewTab();
window.location = "http://extratorrent.cc.prx.torrentunblock.com"+url;
}else if(host==="torrentunblock.com") {
document.querySelector("form > button").click();
console.log(host);
}
}
start();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment