Monday, 27 April 2015

Block YouTube Ads With a Simple Browser Command!


There are a lot of ways to block ads which are appearing while visiting webpages, we can use adblocker which is available as a extension as well  as addons for browsers. But when they get installed on our browser, they have all access to our privacy, they keep on tracking our website visits and may me a silent-malware too!
You just need to copy-paste a simple command in your browser’s developer console and you are good to go. You’ll never see an advertisement again while browsing your favorite YouTube videos.

Getting Started

  • Open any YouTube video and let it play (try opening the video that has ads in it).
  • Open the developer mode.

Right-click -> Click on Inspect Element -> Choose Console 
Or simply press
Ctrl-Shift-J for Google Chrome and Ctrl-Shift-K for Mozilla Firefox and in Internet Explorer, press F12 and select Console.
  • Copy the code below and paste it on the browser developer mode.
                                         document.cookie=”VISITOR_INFO1_LIVE=oKckVSqvaGw; path=/;
                                         domain=.youtube.com”;window.location.reload();
If you wish to deal with the advertisements again, simply follow the first two steps to get back the browser console mode and paste this below code instead.

                document.cookie=”VISITOR_INFO1_LIVE=;path=/;
                domain=.youtube.com”;window.location.reload();
This is just a piece of code which stops the ads that are appearing in our webpages and this might stop working if this abides the policy of Youtube.Inc

No comments:

Post a Comment