Skip to content

Instantly share code, notes, and snippets.

@evilbloodydemon
Created August 15, 2015 18:56
Show Gist options
  • Select an option

  • Save evilbloodydemon/1a37a7932c679d567995 to your computer and use it in GitHub Desktop.

Select an option

Save evilbloodydemon/1a37a7932c679d567995 to your computer and use it in GitHub Desktop.
// ==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('&nbsp;<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