Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Commit

Permalink
removed adblock due to malfunction and changed version to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sv443 authored May 14, 2018
1 parent 654f3dd commit 5bb725f
Showing 1 changed file with 6 additions and 32 deletions.
38 changes: 6 additions & 32 deletions TamperTubePlus.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name TamperTubePlus
// @namespace https://github.com/Sv443/TamperTubePlus
// @version 0.0.10
// @version 1.0
// @description New YouTube features and general improvements
// @author Sv443
// @match *://www.youtube.com/*
Expand All @@ -13,10 +13,12 @@
// @connect self
// @connect *
// @connect sv443.net
// @downloadURL https://raw.githubusercontent.com/Sv443/TamperTubePlus/master/tmscript.js
// @updateURL https://raw.githubusercontent.com/Sv443/TamperTubePlus/master/tmscript.js
// @downloadURL https://raw.githubusercontent.com/Sv443/TamperTubePlus/master/TamperTubePlus.js
// @updateURL https://raw.githubusercontent.com/Sv443/TamperTubePlus/master/TamperTubePlus.js
// ==/UserScript==

(function() {


/*Settings Settings Settings*/

Expand All @@ -27,7 +29,6 @@
var search_hotkey = 115; // hotkey for quick search (default key: F4 (115), 0 to disable), to look up key codes go to this website: https://zeamedia.de/helper/javascript-key-codes-char-codes.php
var search_engine = 1; // change search engine for quick search (0 to disable, 1 for google, 2 for duckduckgo, 3 for bing or 4 for yahoo)
var stylesheet = 1; // switch through stylesheets for YouTube (default: 0) (0: disabled) (1: AdvancedYT - improved design and bigger video player)
var adblocker = true; // blocks ads if set to true (default: true)



Expand Down Expand Up @@ -174,34 +175,6 @@ document.addEventListener("keyup", function(g){
});


/*Adblock Adblock Adblock*/

if(adblocker == true){
if(log_to_console == true){console.log(" blocked ads");}
GM_addStyle(`
#ad_creative_1
{
height: 0;
padding-top: 20px;
visibility: hidden;
}
#homepage-sidebar-ads
{
height: 0!important;
min-height: 0!important;
visibility: hidden;
}
#watch-channel-brand-div
{
height: 0!important;
visibility: hidden;
}
`);
}


/*CSS Stylesheets CSS Stylesheets CSS Stylesheets*/

console.log(" applying stylesheet " + stylesheet);
Expand Down Expand Up @@ -357,3 +330,4 @@ html .watch-stage-mode video.video-stream.html5-main-video
/*End End End*/

if(log_to_console == true){console.log("--END TamperTubePlus");}
})();

0 comments on commit 5bb725f

Please sign in to comment.