Guzik do PB na FW

Adds thepiratebay.org search button on Filmweb

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Guzik do PB na FW
// @namespace   test
// @include     http://www.filmweb.pl/*
// @version     1
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// @grant       GM_addStyle
// @author      turban
// @description:en Adds thepiratebay.org search button on Filmweb
// @description Adds thepiratebay.org search button on Filmweb
// ==/UserScript==
GM_addStyle(".filmPage .hdr-super a{ float:left;height:30px;}");
GM_addStyle(".filmPage .hdr-super{ height:30px;}");
var titlePL = $('.filmTitle div h1 a').html();
var titleEN = $(".filmMainHeader h2").html();
var title = titleEN || titlePL;

var link = '<a class="PBButton" href="http://thepiratebay.se/search/' + title + '/0/99/0" target="_blank"><img src="http://png-5.findicons.com/files/icons/1185/flurry_ramp_champ/128/plunderin_pirates.png" style="width:30px;height:30px;"/></a>';
$('h1.filmTitle').prepend(link);