Last active
October 19, 2022 20:57
-
-
Save keesiemeijer/b12191e2ea55eb60df867d56a7ae0578 to your computer and use it in GitHub Desktop.
Revisions
-
keesiemeijer revised this gist
Jan 7, 2019 . 1 changed file with 17 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,26 +3,33 @@ // @namespace keesiemeijer // @version 0.1 // @description Automatically skips ads after 5 seconds // @author keesiemeijer // @match https://www.youtube.com/* // @grant none // ==/UserScript== function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } addGlobalStyle('.ytp-ad-overlay-slot { display: none !important; }'); addGlobalStyle('.ytp-ad-image-overlay { display: none !important; }'); addGlobalStyle('.ytp-ad-overlay-image { display: none !important; }'); addGlobalStyle('.ytp-ad-overlay-container { display: none !important; }'); window.setInterval( function () { var elmButton = document.querySelector('.ytp-ad-skip-button'); if (elmButton) { elmButton.click(); } }, 3000); -
keesiemeijer revised this gist
Dec 18, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ // ==UserScript== // @name Youtube SkipAd // @namespace keesiemeijer // @version 0.1 // @description Automatically skips ads after 5 seconds // @author Nir Elbaz -
keesiemeijer revised this gist
Dec 18, 2018 . 1 changed file with 14 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,28 @@ // ==UserScript== // @name Youtube SkipAd // @namespace http://nirelbaz.com/ // @version 0.1 // @description Automatically skips ads after 5 seconds // @author Nir Elbaz // @match https://www.youtube.com/* // @grant none // ==/UserScript== window.setInterval( function () { var elmButton = document.querySelector('.ytp-ad-skip-button'); if (elmButton) { elmButton.click(); } //document.querySelector('.ad-container').style.display = 'none'; //document.querySelector('.ytp-ad-overlay-close-button').click(); var adds = document.getElementsByClassName('ytp-ad-overlay-slot'); for(var i = 0; i < adds.length; i++) { adds[i].style.display='none' } }, 3000); -
keesiemeijer renamed this gist
Mar 20, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
keesiemeijer created this gist
Mar 20, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ // ==UserScript== // @name Youtube SkipAds // @namespace keesiemeijer/ // @version 1.0 // @description Automatically skips ads after 3 seconds // @author keesiemeijer // @match https://www.youtube.com/* // @grant none // ==/UserScript== window.setInterval( function () { var elmButton = document.querySelector('.videoAdUiSkipButton'); if (elmButton) { elmButton.click(); } document.querySelector('.ad-container').style.display = 'none'; }, 3000);