added bypass for spaste from pahe

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
This commit is contained in:
Amm0ni4 2024-10-22 00:24:45 +02:00
parent 897b0ecbc7
commit 926240fc6c
4 changed files with 50 additions and 2 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 92.8.36
// @version 92.8.37
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -751,6 +751,7 @@
// @include /golink.bloggerishyt.in/
// @include /skillheadlines.in/
// @include /psccapk.in|secure.bgmiupdate.com.in/
// @include /www.spaste.com/
// @include /filecrypt.(cc|co)/
// @include /(mega-enlace|acortados).com/
// @include /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine).com|(makego|sakazi).net|askerlikforum.com.tr)(\/.*)/

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 92.8.36
// @version 92.8.37
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -751,6 +751,7 @@
// @include /golink.bloggerishyt.in/
// @include /skillheadlines.in/
// @include /psccapk.in|secure.bgmiupdate.com.in/
// @include /www.spaste.com/
// @include /filecrypt.(cc|co)/
// @include /(mega-enlace|acortados).com/
// @include /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine).com|(makego|sakazi).net|askerlikforum.com.tr)(\/.*)/
@ -2585,6 +2586,28 @@
// https://f.technicalatg.in/6iTpuM1 - https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-10954732
/skillheadlines.in/.test(url) ? afterDOMLoaded(function() { redirect(atob(document.querySelector('#wpsafe-link > a:nth-child(1)').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1].split('safelink_redirect=')[1]).match(/"safelink":"(.*?)"/)[1]);}) : null;
// spaste.com use in pahe.ink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
function checkHCaptchaSolved() {
if (document.querySelector('.h-captcha')) {
return window.hcaptcha.getResponse().length !== 0;
}
return true;
}
function clickIfHCaptchaSolved(selector) {
let intervalId = setInterval(() => {
if (checkHCaptchaSolved()) {
clearInterval(intervalId);
document.querySelector(selector).click();
}
}, 1000);
}
/www.spaste.com\/site\/checkPasteUrl\?c=/.test(url) ? afterDOMLoaded(function() {
clickIfHCaptchaSolved('#template-contactform-submit');
} ) : null;
/www.spaste.com\/p\?c=/.test(url) ? afterDOMLoaded(function() {
redirectIfExists('#template-contactform-message > a:nth-child(3)');
}) : null;
})();
(function() {

View file

@ -196,6 +196,7 @@
// @include /golink.bloggerishyt.in/
// @include /skillheadlines.in/
// @include /psccapk.in|secure.bgmiupdate.com.in/
// @include /www.spaste.com/
// @run-at document-start
// ==/UserScript==
@ -1034,6 +1035,28 @@
// https://f.technicalatg.in/6iTpuM1 - https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-10954732
/skillheadlines.in/.test(url) ? afterDOMLoaded(function() { redirect(atob(document.querySelector('#wpsafe-link > a:nth-child(1)').getAttribute('onclick').match(/'(https:\/\/[^']+)'/)[1].split('safelink_redirect=')[1]).match(/"safelink":"(.*?)"/)[1]);}) : null;
// spaste.com use in pahe.ink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
function checkHCaptchaSolved() {
if (document.querySelector('.h-captcha')) {
return window.hcaptcha.getResponse().length !== 0;
}
return true;
}
function clickIfHCaptchaSolved(selector) {
let intervalId = setInterval(() => {
if (checkHCaptchaSolved()) {
clearInterval(intervalId);
document.querySelector(selector).click();
}
}, 1000);
}
/www.spaste.com\/site\/checkPasteUrl\?c=/.test(url) ? afterDOMLoaded(function() {
clickIfHCaptchaSolved('#template-contactform-submit');
} ) : null;
/www.spaste.com\/p\?c=/.test(url) ? afterDOMLoaded(function() {
redirectIfExists('#template-contactform-message > a:nth-child(3)');
}) : null;
})();
(function() {

View file

@ -732,6 +732,7 @@ https://paster.so/*
/golink.bloggerishyt.in/
/skillheadlines.in/
/psccapk.in|secure.bgmiupdate.com.in/
/www.spaste.com/
/filecrypt.(cc|co)/
/(mega-enlace|acortados).com/
/^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine).com|(makego|sakazi).net|askerlikforum.com.tr)(\/.*)/