From 11d11d3621aa4e40516d3b625a404871fa10e5ff Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Sat, 18 Jan 2025 11:59:06 +0100 Subject: [PATCH] in profitsfly remove annoying elements, thanks to Anon991299 https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/191 --- Bypass_All_Shortlinks.meta.js | 2 +- Bypass_All_Shortlinks.user.js | 12 ++++++++++-- extra_bypasses/profitsfly_reload_helper.user.js | 10 +++++++++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 39c14f9..2137ab3 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -4,7 +4,7 @@ // @run-at document-start // @author Amm0ni4 // @noframes -// @version 93.4.19 +// @version 93.4.20 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index a9a1a6d..766a799 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -4,7 +4,7 @@ // @run-at document-start // @author Amm0ni4 // @noframes -// @version 93.4.19 +// @version 93.4.20 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -3063,8 +3063,16 @@ } - // ---SKIP TIMERS--- + // ---After DOM loaded--- document.addEventListener('DOMContentLoaded', function() { + + // ---Remove YouTube modal and banner--- + // (alternative with uBO : https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-11864776) + if (unsafeWindow.youtubeVideoStepProceed) { unsafeWindow.youtubeVideoStepProceed();} + const stickyBanner = document.querySelector(".mg-sticky-banner"); + if (stickyBanner) {stickyBanner.style.display = "none";} + + // ---Skip timers--- function setTimer() { if (window.wT9882 > 5) { window.wT9882 = 1; diff --git a/extra_bypasses/profitsfly_reload_helper.user.js b/extra_bypasses/profitsfly_reload_helper.user.js index 2ece28c..36c5308 100644 --- a/extra_bypasses/profitsfly_reload_helper.user.js +++ b/extra_bypasses/profitsfly_reload_helper.user.js @@ -57,8 +57,16 @@ } - // ---SKIP TIMERS--- + // ---After DOM loaded--- document.addEventListener('DOMContentLoaded', function() { + + // ---Remove YouTube modal and banner--- + // (alternative with uBO : https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-11864776) + if (unsafeWindow.youtubeVideoStepProceed) { unsafeWindow.youtubeVideoStepProceed();} + const stickyBanner = document.querySelector(".mg-sticky-banner"); + if (stickyBanner) {stickyBanner.style.display = "none";} + + // ---Skip timers--- function setTimer() { if (window.wT9882 > 5) { window.wT9882 = 1;