View difference between Paste ID: iHrfz2Kx and DGhxJ5B8
SHOW: | | - or go back to the newest paste.
1
// ==UserScript==
2
// @name           Zive.CZ video-ads remover
3
// @description    Removes advertisements in videos on website Zive.CZ
4
// @author         BetonMAN
5
// @website        http://www.zive.cz/
6
// @version        1.0
7
//
8
// Copyright (c) 2013 BetonMAN
9
//
10
// @include        http://zive.cz/*
11
// @include        http://www.zive.cz/*
12
//
13
// @include        http://mobilmania.cz/*
14
// @include        http://www.mobilmania.cz/*
15
//
16
// @history        1.0 Initial release
17-
// @history        1.1 Pages changed - Script updated
17+
18
// ==/UserScript==
19
 
20
(function(c,d){c.log("Zive.CZ Video ads remover - Coded by BetonMAN");(function(){if(d.body){c.log("Removing ads...");var w=d.getElementsByClassName("video-container");while(w[0]){var v=w[0],i=v.dataset.yt,p=v.parentNode,f=d.createElement("iframe"),a=[true,"allowfullscreen",0,"frameborder","http://www.youtube.com/embed/"+i,"src",350,"height",560,"width"];while(a[0]){f.setAttribute(a.pop(),a.pop())}p.insertBefore(f,v);p.removeChild(v);c.log("Removed ads for YouTube video: "+i);}}else{setTimeout(arguments.callee,0);}})();})(console,document);