remove useless code and add note

This commit is contained in:
Amm0ni4 2024-09-24 12:05:04 +02:00
parent 4b72605749
commit e046bd6b81
5 changed files with 2 additions and 85 deletions

View file

@ -552,7 +552,6 @@
// @grant GM_getResourceText // @grant GM_getResourceText
// @match https://acortalink.me/* // @match https://acortalink.me/*
// @match https://paster.so/* // @match https://paster.so/*
// @include /(bypass.city|adbypass.org)\/bypass\?bypass=/
// @include /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/ // @include /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/
// @include /comohoy.com/ // @include /comohoy.com/
// @include /privatenudes.com\/model/ // @include /privatenudes.com\/model/

View file

@ -552,7 +552,6 @@
// @grant GM_getResourceText // @grant GM_getResourceText
// @match https://acortalink.me/* // @match https://acortalink.me/*
// @match https://paster.so/* // @match https://paster.so/*
// @include /(bypass.city|adbypass.org)\/bypass\?bypass=/
// @include /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/ // @include /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/
// @include /comohoy.com/ // @include /comohoy.com/
// @include /privatenudes.com\/model/ // @include /privatenudes.com\/model/
@ -1671,43 +1670,6 @@
})(); })();
// ----- ----- ----- // ----- ----- -----
// ----- bypass.city redirect helper -----
(function() {
'use strict';
let url = window.location.href;
const isValidUrl = url => { try { new URL(url); return true; } catch (error) { return false; } };
function makeUrlClickable(element) {
let initialUrl = element.textContent;
let url = element.textContent.replace('The resolved url is: ', '')
if (!url.startsWith('http')) {
url = 'https://' + url;
}
url = url.match(/(https?:\/\/\S+)/)[0];
if (url && isValidUrl(url) && !url.endsWith('...')) {
let link = document.createElement('a'); link.href = url; link.textContent = url;
element.innerHTML = 'The resolved url is: ' + element.innerHTML.replace(initialUrl, link.outerHTML);
return url;
}
}
if (/(bypass.city|adbypass.org)\/bypass\?bypass=/.test(url)){
window.addEventListener('load', function() { //After window loaded
let checkInterval = setInterval(function() { //Check every 0.5s if the link is available
let linkContainerElement = document.querySelector('div.mantine-fn96xv:nth-child(3)');
if (linkContainerElement) {
clearInterval(checkInterval);
let targetUrl = makeUrlClickable(linkContainerElement);
if (isValidUrl(targetUrl)) {
setTimeout(function() { window.location.assign(targetUrl); }, 4000);
}
}
}, 500);
});
}
})();
// ----- ----- -----
// ----- Extra bypasses ----- // ----- Extra bypasses -----
(function() { (function() {
'use strict'; 'use strict';
@ -2350,7 +2312,7 @@
clickIfExists('div.code-block:nth-child(4) > center:nth-child(1) > div:nth-child(2) > a:nth-child(1) > button:nth-child(1)'); clickIfExists('div.code-block:nth-child(4) > center:nth-child(1) > div:nth-child(2) > a:nth-child(1) > button:nth-child(1)');
}) : null; }) : null;
// publicearn.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99, https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161 // publicearn.com - https://t.me/edutechvn - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99, https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161
/thelatintwistcafe.com/.test(url) ? afterDOMLoaded(function() { /thelatintwistcafe.com/.test(url) ? afterDOMLoaded(function() {
count = 0; count = 0;
setTimeout(function() {document.querySelector('#tp98').click();}, 3000); setTimeout(function() {document.querySelector('#tp98').click();}, 3000);

View file

@ -1,43 +0,0 @@
// ==UserScript==
// @name bypass.city redirect helper
// @include /(bypass.city|adbypass.org)\/bypass\?bypass=/
// @run-at document-start
// @icon https://www.google.com/s2/favicons?sz=64&domain=bypass.city
// ==/UserScript==
// ----- bypass.city redirect helper -----
(function() {
'use strict';
let url = window.location.href;
const isValidUrl = url => { try { new URL(url); return true; } catch (error) { return false; } };
function makeUrlClickable(element) {
let initialUrl = element.textContent;
let url = element.textContent.replace('The resolved url is: ', '')
if (!url.startsWith('http')) {
url = 'https://' + url;
}
url = url.match(/(https?:\/\/\S+)/)[0];
if (url && isValidUrl(url) && !url.endsWith('...')) {
let link = document.createElement('a'); link.href = url; link.textContent = url;
element.innerHTML = 'The resolved url is: ' + element.innerHTML.replace(initialUrl, link.outerHTML);
return url;
}
}
if (/(bypass.city|adbypass.org)\/bypass\?bypass=/.test(url)){
window.addEventListener('load', function() { //After window loaded
let checkInterval = setInterval(function() { //Check every 0.5s if the link is available
let linkContainerElement = document.querySelector('div.mantine-fn96xv:nth-child(3)');
if (linkContainerElement) {
clearInterval(checkInterval);
let targetUrl = makeUrlClickable(linkContainerElement);
if (isValidUrl(targetUrl)) {
setTimeout(function() { window.location.assign(targetUrl); }, 4000);
}
}
}, 500);
});
}
})();
// ----- ----- -----

View file

@ -820,7 +820,7 @@
clickIfExists('div.code-block:nth-child(4) > center:nth-child(1) > div:nth-child(2) > a:nth-child(1) > button:nth-child(1)'); clickIfExists('div.code-block:nth-child(4) > center:nth-child(1) > div:nth-child(2) > a:nth-child(1) > button:nth-child(1)');
}) : null; }) : null;
// publicearn.com - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99, https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161 // publicearn.com - https://t.me/edutechvn - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/99, https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/161
/thelatintwistcafe.com/.test(url) ? afterDOMLoaded(function() { /thelatintwistcafe.com/.test(url) ? afterDOMLoaded(function() {
count = 0; count = 0;
setTimeout(function() {document.querySelector('#tp98').click();}, 3000); setTimeout(function() {document.querySelector('#tp98').click();}, 3000);

View file

@ -532,7 +532,6 @@ linksfly.top
playstore.pw playstore.pw
https://acortalink.me/* https://acortalink.me/*
https://paster.so/* https://paster.so/*
/(bypass.city|adbypass.org)\/bypass\?bypass=/
/(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/ /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/
/comohoy.com/ /comohoy.com/
/privatenudes.com\/model/ /privatenudes.com\/model/