Wymuszenie oryginalnego playera na naekranie.pl
Skrypt dla Greasemonkey podmieniający Youtubową playerkę na stronie naekranie.pl na oryginalną YT. Działa również w chromowym Temperedmonkey – ale nie pozwala na full screena (Work in progress)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
// ==UserScript== // @name NaEkranie.pl // @description Youtube without commercials for naekranie.pl // @namespace https://kszyh.kisim.eu.org // @include http://naekranie.pl/* // @version 1.0 // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.js // ==/UserScript== $(document).ready(function() { $("iframe").each(function() { var src= $(this).attr('src'); if(src.indexOf("youtube") > -1){ var index = src.indexOf('?'); src = src.substring(0, index); src = src.replace('embed', 'v'); $(this).closest('.media-browser').replaceWith("<embed allowfullscreen='true' width='100%' height='400' src='"+src+"&vq=hd1080'>"); } }); }); |
Download: ver. 1.0
