diff --git a/beta/test.user.js b/testing/goodtube.js similarity index 97% rename from beta/test.user.js rename to testing/goodtube.js index 89623af..7997719 100644 --- a/beta/test.user.js +++ b/testing/goodtube.js @@ -1,19 +1,3 @@ -// ==UserScript== -// @name GoodTube -// @namespace http://tampermonkey.net/ -// @version 2.010 -// @description Removes 100% of Youtube ads. -// @author GoodTube -// @updateURL https://github.com/goodtube4u/goodtube/raw/refs/heads/main/goodtube.user.js -// @downloadURL https://github.com/goodtube4u/goodtube/raw/refs/heads/main/goodtube.user.js -// @match *://m.youtube.com/* -// @match *://www.youtube.com/* -// @match *://youtube.com/* -// @match *://*.wikipedia.org/* -// @icon https://cdn-icons-png.flaticon.com/256/1384/1384060.png -// @run-at document-start -// ==/UserScript== - (function () { 'use strict'; @@ -211,7 +195,7 @@ ytd-merch-shelf-renderer, ytd-action-companion-ad-renderer, ytd-display-ad-renderer, - ytd-rich-section-renderer, + ytd-video-masthead-ad-advertiser-info-renderer, ytd-video-masthead-ad-primary-video-renderer, ytd-in-feed-ad-layout-renderer, @@ -279,7 +263,8 @@ if (goodTube_shorts === 'false') { let shortsStyle = document.createElement('style'); shortsStyle.textContent = ` - ytm-pivot-bar-item-renderer:has(> .pivot-shorts) { + ytm-pivot-bar-item-renderer:has(> .pivot-shorts), + ytd-rich-section-renderer { display: none !important; } `; @@ -583,7 +568,7 @@ } - // Set the video source (we need to use this weird method so it doesn't mess with browser history) + // Set the video source // This also tells the embed if it's mobile or not let mobileText = 'false'; if (goodTube_mobile) { @@ -1373,7 +1358,7 @@