Created
October 2, 2014 17:35
-
-
Save nikop/e039ac72fcdbfaf0b07c to your computer and use it in GitHub Desktop.
StreamDownloader Avustin
This file contains 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 StreamDownloader Avustin | |
// @namespace StreamDownloader | |
// @description StreamDownloader avustin | |
// @include http://areena.yle.fi/tv/* | |
// @include http://*ruutu.fi/* | |
// @include http://www.katsomo.fi/?progId=* | |
// @version 2 | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js | |
// ==/UserScript== | |
$.noConflict(); | |
jQuery(document).ready(function () { | |
// Yle Areena | |
if (jQuery('body#episode-view')) { | |
var btn = jQuery('<a>Lataa</a>').addClass('btn load').attr('href', 'streamdownloader:' + window.location); | |
jQuery('#episode-view .btn-toolbar .btn-group').append(btn); | |
} | |
// Ruutu.fi | |
if (jQuery('body#node-media-type-episode')) { | |
var btn = jQuery('<a>Lataa</a>').addClass('theme-color').attr('href', 'streamdownloader:' + window.location); | |
jQuery('header.clearfix div.grid-9').append(btn); | |
} | |
// Katsomo | |
if (jQuery('body#body.ohjelmasivu')) { | |
var btn = jQuery('<a>Lataa</a>').attr('href', 'streamdownloader:' + window.location); | |
jQuery('#program_content').append(btn); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment