SHARE
TWEET

Živě.CZ Video ads remover

BetonMAN May 28th, 2013 (edited) 244 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
  18. //
  19. // ==/UserScript==
  20.  
  21. (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","https://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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top