mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-28 16:03:01 +05:00
remove useless code and add note
This commit is contained in:
parent
4b72605749
commit
e046bd6b81
5 changed files with 2 additions and 85 deletions
|
@ -552,7 +552,6 @@
|
|||
// @grant GM_getResourceText
|
||||
// @match https://acortalink.me/*
|
||||
// @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 /comohoy.com/
|
||||
// @include /privatenudes.com\/model/
|
||||
|
|
|
@ -552,7 +552,6 @@
|
|||
// @grant GM_getResourceText
|
||||
// @match https://acortalink.me/*
|
||||
// @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 /comohoy.com/
|
||||
// @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 -----
|
||||
(function() {
|
||||
'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)');
|
||||
}) : 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() {
|
||||
count = 0;
|
||||
setTimeout(function() {document.querySelector('#tp98').click();}, 3000);
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
})();
|
||||
// ----- ----- -----
|
|
@ -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)');
|
||||
}) : 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() {
|
||||
count = 0;
|
||||
setTimeout(function() {document.querySelector('#tp98').click();}, 3000);
|
||||
|
|
|
@ -532,7 +532,6 @@ linksfly.top
|
|||
playstore.pw
|
||||
https://acortalink.me/*
|
||||
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)/
|
||||
/comohoy.com/
|
||||
/privatenudes.com\/model/
|
||||
|
|
Loading…
Reference in a new issue