From 5df729feb029c624eed01600d126bf0c32f85834 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Fri, 14 Feb 2025 12:41:43 +0100 Subject: [PATCH] fix hyp.sh --- Bypass_All_Shortlinks.meta.js | 3 +- Bypass_All_Shortlinks.user.js | 28 +++++++++++++------ extra_bypasses/extra_bypasses.user.js | 26 ++++++++++++----- supported_sites.txt | 1 + ...ched_Bypass_All_Shortlinks_patched.user.js | 2 +- 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 57d7309..3c826f5 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.7.14 +// @version 93.7.15 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -927,6 +927,7 @@ // @include /mixrootmod.com/ // @include /zaku.pro/ // @include /aylink.co|cpmlink.pro/ +// @include /hypershort.com/ // @include /filecrypt.(cc|co)/ // @include /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine|balatroltd|tenorminiuk|icryptowin|chronoat|ecoinfotec|bcsclass|mainitbd|newselab|dizok|uzaay|tophistoryview|9sblog|ubnem|techavash|6harfli|professionaley|playghub|apkvmod|apkallworld|techoflix|toplistee|games2mobile|nivtu|bflig|jplna|bilgilendirici|zoninews).com|(makego|sakazi|momge|englishgrammarpro|arab-plus).net|askerlikforum.com.tr|misterio.ro|(forp|bevery|fanuze).xyz|gamcabd.org|gamerking.shop)(\/.*)/ // @include /(mega-enlace|acortados).com/ diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 0d82dc9..9e414e0 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.7.14 +// @version 93.7.15 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -927,6 +927,7 @@ // @include /mixrootmod.com/ // @include /zaku.pro/ // @include /aylink.co|cpmlink.pro/ +// @include /hypershort.com/ // @include /filecrypt.(cc|co)/ // @include /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine|balatroltd|tenorminiuk|icryptowin|chronoat|ecoinfotec|bcsclass|mainitbd|newselab|dizok|uzaay|tophistoryview|9sblog|ubnem|techavash|6harfli|professionaley|playghub|apkvmod|apkallworld|techoflix|toplistee|games2mobile|nivtu|bflig|jplna|bilgilendirici|zoninews).com|(makego|sakazi|momge|englishgrammarpro|arab-plus).net|askerlikforum.com.tr|misterio.ro|(forp|bevery|fanuze).xyz|gamcabd.org|gamerking.shop)(\/.*)/ // @include /(mega-enlace|acortados).com/ @@ -2753,11 +2754,11 @@ clickIfNotDisabled('#gtelinkbtn'); }) : null; - // https://hyp.sh/Art07dr (hypershort) - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/101 - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/158 -// /jytechs.in|mi.miuiflash.com|hypershort.com|djxmaza.in|thecubexguide.com/.test(url) ? afterDOMLoaded(function() { -// clickIfExists('#generatelink'); -// redirectIfExists('#gettinglink'); -// }) : null; + // hyp.sh - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/101 - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/158 - https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-12198432 + /hypershort.com/.test(url) ? afterDOMLoaded(function() { + clickIfExists('#generatelink'); + redirectIfExists('#gettinglink'); + }) : null; // render-state.to - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/108 /render-state.to\/download\/\?link=/.test(url) ? afterDOMLoaded(function() { @@ -2980,15 +2981,23 @@ Object.defineProperty(window, 'setInterval', {value: function(func, delay) {if (delay === 1000) {delay = 50;} return FsI.apply(this, arguments);}}); }; function boostTimers2() { - //based on nano-sib uBO Filter - https://github.com/gorhill/ublock/wiki/Resources-Library#adjust-setIntervaljs- - // Store the original setInterval function + // Store the original setInterval and setTimeout functions const originalSetInterval = window.setInterval; + const originalSetTimeout = window.setTimeout; + // Overwrite the setInterval function window.setInterval = function(func, delay, ...args) { // Modify the delay to 2% of its original value const newDelay = delay * 0.02; return originalSetInterval(func, newDelay, ...args); }; + + // Overwrite the setTimeout function + window.setTimeout = function(func, delay, ...args) { + // Modify the delay to 2% of its original value + const newDelay = delay * 0.02; + return originalSetTimeout(func, newDelay, ...args); + }; } // www.gtaall.com - https://github.com/FastForwardTeam/FastForward/issues/1348 @@ -3012,6 +3021,9 @@ //linkpays.in /((surfsees|travelagancy|venzoars|webbooki|pokoarcade).com|(fitnessholic|myindigocard).net|stockinsights.in|pandagamepad.co)(?!.*(safe\.php\?link=|&__cf_chl_tk=))/.test(url) ? boostTimers2() : null; + // hyp.sh hypershort + /hypershort.com/.test(url) ? boostTimers2() : null; + })(); // ----- ----- ----- diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 3e1e2de..6bb104c 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -229,6 +229,7 @@ // @include /mixrootmod.com/ // @include /zaku.pro/ // @include /aylink.co|cpmlink.pro/ +// @include /hypershort.com/ // @run-at document-start // ==/UserScript== @@ -1161,11 +1162,11 @@ clickIfNotDisabled('#gtelinkbtn'); }) : null; - // https://hyp.sh/Art07dr (hypershort) - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/101 - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/158 -// /jytechs.in|mi.miuiflash.com|hypershort.com|djxmaza.in|thecubexguide.com/.test(url) ? afterDOMLoaded(function() { -// clickIfExists('#generatelink'); -// redirectIfExists('#gettinglink'); -// }) : null; + // hyp.sh - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/101 - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/158 - https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-12198432 + /hypershort.com/.test(url) ? afterDOMLoaded(function() { + clickIfExists('#generatelink'); + redirectIfExists('#gettinglink'); + }) : null; // render-state.to - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/108 /render-state.to\/download\/\?link=/.test(url) ? afterDOMLoaded(function() { @@ -1388,15 +1389,23 @@ Object.defineProperty(window, 'setInterval', {value: function(func, delay) {if (delay === 1000) {delay = 50;} return FsI.apply(this, arguments);}}); }; function boostTimers2() { - //based on nano-sib uBO Filter - https://github.com/gorhill/ublock/wiki/Resources-Library#adjust-setIntervaljs- - // Store the original setInterval function + // Store the original setInterval and setTimeout functions const originalSetInterval = window.setInterval; + const originalSetTimeout = window.setTimeout; + // Overwrite the setInterval function window.setInterval = function(func, delay, ...args) { // Modify the delay to 2% of its original value const newDelay = delay * 0.02; return originalSetInterval(func, newDelay, ...args); }; + + // Overwrite the setTimeout function + window.setTimeout = function(func, delay, ...args) { + // Modify the delay to 2% of its original value + const newDelay = delay * 0.02; + return originalSetTimeout(func, newDelay, ...args); + }; } // www.gtaall.com - https://github.com/FastForwardTeam/FastForward/issues/1348 @@ -1420,5 +1429,8 @@ //linkpays.in /((surfsees|travelagancy|venzoars|webbooki|pokoarcade).com|(fitnessholic|myindigocard).net|stockinsights.in|pandagamepad.co)(?!.*(safe\.php\?link=|&__cf_chl_tk=))/.test(url) ? boostTimers2() : null; + // hyp.sh hypershort + /hypershort.com/.test(url) ? boostTimers2() : null; + })(); // ----- ----- ----- diff --git a/supported_sites.txt b/supported_sites.txt index 401b3d0..0ebc0dc 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -908,6 +908,7 @@ https://paster.so/* /mixrootmod.com/ /zaku.pro/ /aylink.co|cpmlink.pro/ +/hypershort.com/ /filecrypt.(cc|co)/ /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine|balatroltd|tenorminiuk|icryptowin|chronoat|ecoinfotec|bcsclass|mainitbd|newselab|dizok|uzaay|tophistoryview|9sblog|ubnem|techavash|6harfli|professionaley|playghub|apkvmod|apkallworld|techoflix|toplistee|games2mobile|nivtu|bflig|jplna|bilgilendirici|zoninews).com|(makego|sakazi|momge|englishgrammarpro|arab-plus).net|askerlikforum.com.tr|misterio.ro|(forp|bevery|fanuze).xyz|gamcabd.org|gamerking.shop)(\/.*)/ /(mega-enlace|acortados).com/ diff --git a/untouched_Bypass_All_Shortlinks_patched.user.js b/untouched_Bypass_All_Shortlinks_patched.user.js index 6aacc89..388aea9 100644 --- a/untouched_Bypass_All_Shortlinks_patched.user.js +++ b/untouched_Bypass_All_Shortlinks_patched.user.js @@ -37,7 +37,7 @@ // @namespace Violentmonkey Scripts // @run-at document-start // @author Bloggerpemula -// @version 93.7.14 +// @version 93.7.15 // @match *://*/* // @grant GM_setValue // @grant GM_getValue