Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Zive.CZ video-ads remover
- // @description Removes advertisements in videos on website Zive.CZ
- // @author BetonMAN
- // @website http://www.zive.cz/
- // @version 1.0
- //
- // Copyright (c) 2013 BetonMAN
- //
- // @include http://zive.cz/*
- // @include http://www.zive.cz/*
- //
- // @include http://mobilmania.cz/*
- // @include http://www.mobilmania.cz/*
- //
- // @history 1.0 Initial release
- //
- // ==/UserScript==
- (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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement