Greasy Fork

IMDb Divxplanet

IMDb üzerinde bir filmin sayfasında, filmin isminin yanında Divxplanet üzerinde yer alan altyazı sayfasına direk erişim sağlayan bir link ekliyor.

当前为 2015-07-29 提交的版本,查看 最新版本

// ==UserScript==
// @name        IMDb Divxplanet
// @author      Hasan KÖROĞLU
// @namespace   hasankoroglu.com
// @description IMDb üzerinde bir filmin sayfasında, filmin isminin yanında Divxplanet üzerinde yer alan altyazı sayfasına direk erişim sağlayan bir link ekliyor.
// @include     http://www.imdb.com/title/*
// @version     1.4
// @grant       none
// ==/UserScript==

var IMDbID = document.URL.split("/")[4];
var spanNOBR = document.querySelector('h1.header span.nobr');

if (spanNOBR != null)
  {
    /*----------------Divxplanet-----------------*/
    var dpLink = document.createElement('a');
    dpLink.href = 'http://altyazi.org/index.php?page=arama&arama=' + IMDbID;
    dpLink.target = 'blank';
    
    var dpIcon = new Image();
    dpIcon.src= 'http://i.imgur.com/Glenl6S.png';
    dpIcon.alt= 'Altyazi.org';
    dpIcon.title= 'Altyazi.org';
    dpIcon.setAttribute('width', '16px');
    dpIcon.setAttribute('height', '16px');
    dpIcon.style.marginLeft = '15px';
   
    dpLink.appendChild(dpIcon);
    spanNOBR.appendChild(dpLink);
    /*----------------Divxplanet-----------------*/
    
    /*----------------RARBG-----------------*/
    var rarbgLink = document.createElement('a');
    rarbgLink.href = 'http://rarbg.com/torrents.php?search=' + IMDbID;
    rarbgLink.target = 'blank';
    
    var rarbgIcon = new Image();
    rarbgIcon.src= 'http://i.imgur.com/ivMJI5W.png';
    rarbgIcon.alt= 'RARBG';
    rarbgIcon.title= 'RARBG';
    rarbgIcon.setAttribute('width', '16px');
    rarbgIcon.setAttribute('height', '16px');
    rarbgIcon.style.marginLeft = '15px';
   
    rarbgLink.appendChild(rarbgIcon);
    spanNOBR.appendChild(rarbgLink);
    /*----------------RARBG-----------------*/
    
     /*----------------HD Torrents-----------------*/
    var hdtLink = document.createElement('a');
    hdtLink.href = 'https://hd-torrents.org/torrents.php?search=' + IMDbID + '&active=1&options=0';
    hdtLink.target = 'blank';
    
    var hdtIcon = new Image();
    hdtIcon.src= 'http://i.imgur.com/zR0O0Ij.png';
    hdtIcon.alt= 'HD Torrents';
    hdtIcon.title= 'HD Torrents';
    hdtIcon.setAttribute('width', '16px');
    hdtIcon.setAttribute('height', '16px');
    hdtIcon.style.marginLeft = '15px';
   
    hdtLink.appendChild(hdtIcon);
    spanNOBR.appendChild(hdtLink);
    /*----------------HD Torrents-----------------*/
  }