turkcealtyazi.org Bahis reklamı kaldırma ve torrent linkleri ekleme

Türkçe Altyazı sitesindeki bahis sitesi reklamını kaldırıyor ve çeşitli torrent sitelerinin linklerini ekliyor.

// ==UserScript==
// @name            turkcealtyazi.org Bahis reklamı kaldırma ve torrent linkleri ekleme
// @author					Hasan Köroğlu
// @description			Türkçe Altyazı sitesindeki bahis sitesi reklamını kaldırıyor ve çeşitli torrent sitelerinin linklerini ekliyor.
// @version         1.2
// @match           https://turkcealtyazi.org/*
// @require         https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @namespace   hasankoroglu.com
// ==/UserScript==

window.TA = function (ttl) {
  $("body").css({ background: "none" });
  $("#pageskin").remove();

  var IMDbID = "tt" + $("input[name=u]").val();
  var pageTitle = $("title").html();
	pageTitle = pageTitle.replace(" - TurkceAltyazi.org","");

  var movieAlternateName = $("h2[itemprop=alternateName]").length;
  var movieName = $("h1 > span[itemprop=name]").html()
  
  if (movieAlternateName) {
    pageTitle = pageTitle.replace(movieName + " - ","");
  }

  var movieYear = $("h1 > span.year a").html();

  pageTitle = pageTitle.replace(" ("+ movieYear +")","");

  var movieTitle = pageTitle;

  var sites = {
    zamunda: {
      title: "Zamunda.Net",
      href: "http://zamunda.net/bananas?search=" + movieTitle +"&incldead=&field=name",
      icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACyklEQVR42k1UXU8TQRTd/4eGYMFI9Mk3E6I++GBMjPqi8cEXNcHSiNIWJBjQECJCbAgK5UM+LVALtAu0hZay22/b7tyd451pQSc5DzP33nPOnZ27hmwt15VSCCFPcgW5GjuRy3uWXNnPy9V4Xv4yLRk/zstytSZd4kRXXizD5UoiguMIxNM2oodn2E9ZSFl1WBXCWdnBsV1DIlNCLGkjmS2AhcB1cKULo+64slZv4Gc0ia1kCY5wOCigSJM2IWEJ1BzSexXbMIv4bWZY0NEkRrVWl0o1mq42WRkqeS5BuDFM6AwI9IaJSViVz9k1IodFdmlznoARSeTkQsxGpSbAbiA4qc6KL3+oYlfj5gjhwFIEyrZkJwLrCRuFcg3Gx4UT+S1awWmJYJcJRd03q38gdA1KDU+AsJki7t3VaDQIS7t5mGkLxquQLb/HBfZPuec8Ic2Y2W2qnxN0BiTmTSavEkp/SOcumgLTqykYd0aLcmKbsJYk7BwT4hx8GvpH0Bl0ccXvYvmQcFwQ2M0SNtIuVo5c+GeZoPt9Xj6fIXzdIQyvs7UDwqMp0rab6oSHvJ9nlxspRprFuJ3xLb6nyQMYPYNJeS3g4AWTPGPlx9OE13OkbZ8TKHQFBT5FSDvxLREefCH0TcVh9E3uyg6fja5A8+bvc8Ab/s8Bt6DBe98CxycI14cI3QNlhFZNGGvRI9kTTMHjFzrp1hhxz9RSdpmoCX0nQSZuxW4PpWGmTmEUikU5MhtDm7ekgx6/qwmUAw3/eVHLCZNc9pUwyjXVagWGGqBcLoe344u41FeGZ0BcPKCLzxhs7pXLNm8Rb8YWoWrUTBhqCuuNOjLZLD7PbuPekImr/Rba3znaSccAob2/jm7fCe4G4hgJRZDJZPkxNZqzoEZSvX11kLd5GvcSmApvoXd8A0+GGMMReMfXMR3exE4sDsuy4bSK+R+Av2zpb/iEe4yjAAAAAElFTkSuQmCC",
    },
    IPTorrents: {
      title: "IPTorrents",
      href: "https://iptorrents.com/t?q=" + IMDbID + "/",
      icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEUAAAAZGRsZGRtBQUJISElAQEFCQkMZGRsZGRsZGRstLS8ZGRtHR0lFRUdHR0kZGRtCQkQrKy1CQkNDQ0UZGRsZGRtGRkgZGRsjIyUxMTM1NTc2NTdCQUNGRkhHR0lSUlNSUlRpaWtvbm+AgIGLiouMi4yXlpeYl5iZmJmamZmioaKura65uLm/vr7Fw8TMysvQz8/T0dLb2trl4+Pn5eXw7u7y8PH9+/sAlp/OAAAAF3RSTlMAMDM0NjtydXh+foGDhoaHi4yTlJn8/WhZUs4AAACJSURBVBgZVcHLDoIwEEDR2+kgT6Nu/P8fxMRgoJTSURYGOMdROHa2qD4qdqH3zZUDRYQTr1C2r2vBGDMbgaKkgEfLswPU2MTPvcQ3bjBZjZ9LV80jYTTTvKwkU9/PmRQsK7ay2nvgx2UQdrFrwWslcyQlYEq2JFfdOApinESJmYMcHFLX/E1T/gLDGzwhNRbwQQAAAABJRU5ErkJggg==",
    },
    TMDB: {
      title: "TMDB",
      href: "https://www.themoviedb.org/redirect?external_source=imdb_id&external_id=" + IMDbID,
      icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAH+SURBVDhPnZNPSBRRHMe/b3ZnzJatYQrRdC1DYfEiKCRmHboURGSCl40IivKS1CVIWToVogWepEU8RB2yi10Do0TNSFG01oNEpKYsirs4uk2z7r/Xb8d32GmWwD6PHwO/3+995zff94ZxYkifx9XVISCzC4BR/AsOuA7glS+AgFoHpqdNrk5fx3P/A5wqrkCSZ0RjYRTmxpT5EzcXn0BvfAmM7HzjmLuXG2RfYP4uf0d7JTeThPYeH38vg4U7oSwE8TQ6juHtsJVvj7yxnvm4INH6izMHT+B1ZQChY1fQoTWhbbEH3ZujGIy8FR15kF0OgRw72V3EKbYyJi6XnsdaahtVh2pE1U5BgWImW2YleBpmNo1nNM1SMiaqdhwCOr0V5FGz5zhOKhoGylvRH/sEo/ax6LDjEJhNRNAbHcPttWGEYp8R3BhBimfhCd8XHXYcApzWRa8f09UdeLT5HpWKSqcxBq+sig47BT2YMJbRsvICd7TTWE3q6Cu7hHhyS1QFdCFzOATqispwwVuDa2o9giXn0K414qu5ji/+LtEhYIysIpUP8e//dxNnbvHxXz+4e09OzEM8JNMmjCU6RpfI2JEpP2ms0AQunPVUQUrlfh5JtooLiXWKDVQrR+Aj83xkXEVelMuHcdTtwQ2tAZn6kLUHo/QJ0bQhBtsvnP8BlZ5M84Jv60QAAAAASUVORK5CYII=",
    },
    YTS: {
      title: "YTS",
      href: "https://yts.mx/browse-movies/" + movieTitle + "/all/all/0/latest",
      icon: "data:image/png;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAvwAAHjMdABpTFgAeKxsAAMUAAAqdDQAhKxsAAMsAABZfFgAFtQQAHjQbACQfHAALmAsAEX8PAA2UDgAjHh8AICEfACAlHAAWZRYAAbACAAOwAgAQdhAAAagAABhdFAAcHx0ACqgIABw1GQAWYBQAHh8dAB4xHAAYYBQAA8sBABo7GQAfHiAAIR4gACMeIAAWbBQAEYkNABwgGwACtgMAIyAbAAqrCQASXBAAE1QWACEfHgAMmQoAAMAAABlRFgAExwUACqAHACMfHgAHnwoAJB8eABdQGQAhIh4ADYkOACAoHgADwgMACaUKABRzEgAHrAcAAMwAAAPXAgAfIBwAHR8fABw5GAAhIBwAHjEeAB8fHwAXURcAIR8fAB4mHAAZWxQAB5cJABCJDwAVcBMAHEEbAAK6AgAfIx0AEIAQAAmcDAAVWBUAEHERAAyKDQAfKR0AAr8FAASxAwAEtQAAFV4VABN3EQALlwoAFmEVACEhGwAdIB4AEowQAB8gHgAGuQYAE3ESAB8sHgAdMxsAALsBACAdHwACvgEAIiAfAA6IDAAPhA8AJCAfAAydCwAVahYABMQBAAK1AgAHqggAGkkYAAqmCwAgHh0AB7EFAAO4AgAiHh0ACpsJACAhHQAWZRQAICAgACIgIAADvQUAGVUYAAerBgAgKh0ACJkHACAfGwAcHh4AG0YZABJ0FAAdMB0AALwAAB4eHgAgHh4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARIcjJk4kfTlte2sXZ4csREY/LFgJPToNYTtpKTwvQDIhC4MuM3BGcoZ5XYYIUAJqcluFXiwiVEwdgDJGHIRKQzhudkYmPyA+BV+HMix1BlFSTQEjRF9nMHtjRF9GhmVib2gmRBAyHHEfKkJlX0JGclYeRFwyRl8lB1pdEEZ1RkQTRV8PLECGLQRVGodGRCxGFDVCh19EEWBmABk2h3IcXzEbh3ksNCsAJ3N0FRgiLEYSWXccQmUOFgxBV2RILCIsR1N+LHlfN0l4LEt/T4ZfXyx8bEYsQnIoRiGBHCwscjREdUWCRCwsRj9yMiEsh3qGX3oyCgMsRkBfEA8sX19dXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
    },
    rutracker: {
      title: "rutracker",
      href: "http://rutracker.org/forum/tracker.php?nm=" + movieTitle + " " + movieYear,
      icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGA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"X1337",
      href: "https://1337x.to/search/" + movieTitle + " " + movieYear + "/1/",
      icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB/ElEQVQ4jc2QzW/ScBjHf8JGaetpcQcjcthmgrqZEWIFWlo6M5niBoH4MhIyHIjxhQQlnMXEg/4hetB49ODJiwcPZp0RA9K1/ZUCbSHeTNxi5uPFedkLnozP9ZvP53meL0L/zRhXfWm7GFy3i2HJLLJ1vHyqspPhzGnRLsfe25X4er+61OxlzzzeJWjFvRPG8vQnM89ArxCE7kpANa54jtUQcvQKoZeDyiUYVBehfz+2raUnk3tesbHkWTBXZjetPAPWzRAY13wlNXWCN++K3/sPLsKgughGganVEHLs98mh7nXf814uAN3Vs9DJBdqdVeajVToP/UocenfEOk6dPHpgF0rCM2Nkpr92cgGwiiyYtwWwyzGw7ok/tMTxG39VqJ6eeGLmz4F1iwO7NAdmngE8P/buLUIjQ+EaQg4jM/PMLAShm52FTtILukiDyo421/xofKhAvTA2rye9W/rCEcBRCnCEgPbcYdBFGjSBenQgLE8hQhepNxpPAOYJUHmXpPDEa12kfwvIthxGk/sKWqwzhQVyG0cp0AQSvoSdWTmE/Krg/oYFErBIQ4tzPX2BkHMX/DmEpmTO1diBVZ5orPnReA0hxwZHvMJRClTeDUqE+NkMOxN7btcEStIEUtIEd11mR8t/Mo64rETcHxTOJeEo3ZDDIw+HlvnP5heCh+ZBZ0Cl7QAAAABJRU5ErkJggg==",
    },
  };

  $("div.nm-share").html("");

  var newLink, site;

  for (const key in sites) {
    site = sites[key];
    newLink = "<a href='" + site.href + "' target='_blank' style='margin-left:10px;'><img width='16' src='" + site.icon + "' title='" + site.title + "'></a>"; 
    $("div.nm-share").append(newLink);
  }

  if (ttl > 0) {
    setTimeout(function () { TA(ttl - 1); }, 200);
  }
};

(function () {
  $(document).ready(function () {
    setTimeout(function () { TA(20); }, 200);
  });
})();