Created
August 15, 2015 18:56
-
-
Save evilbloodydemon/1a37a7932c679d567995 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // ==UserScript== | |
| // @name Kinopoisk-Torronto | |
| // @namespace http://torronto.evilbloodydemon.ru/ | |
| // @version 0.1 | |
| // @description Кнопка перехода на торронту для кинопоиска | |
| // @author Igor Fomin | |
| // @match http://www.kinopoisk.ru/film/* | |
| // @grant none | |
| // ==/UserScript== | |
| $(function() { | |
| $('h1').append(' <button class="torronto-button" style="cursor: pointer">Torronto</button>'); | |
| $('.torronto-button').on('click', function(){ | |
| window.location.href = 'http://torronto.evilbloodydemon.ru/#!/movies?open_single=1&kinopoisk_id=' + FILM_ID; | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment