mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-02-07 18:34:09 +05:00
fix some linkvertise edge cases
https://discord.com/channels/876622516607656006/876622517115174934/1283259004134359050
This commit is contained in:
parent
50e242a330
commit
60de8aeccf
3 changed files with 12 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 92.7.2
|
// @version 92.7.3
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 92.7.2
|
// @version 92.7.3
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
@ -2673,7 +2673,11 @@
|
||||||
if (getTargetPageRequest.status !== 200) return;
|
if (getTargetPageRequest.status !== 200) return;
|
||||||
const targetPageResponse = await getTargetPageRequest.json();
|
const targetPageResponse = await getTargetPageRequest.json();
|
||||||
const targetPageURL = targetPageResponse['data']['getDetailPageTarget']['url'];
|
const targetPageURL = targetPageResponse['data']['getDetailPageTarget']['url'];
|
||||||
window.location.href = targetPageURL;
|
if (targetPageURL === null || !targetPageURL || targetPageURL.trim() === "") {
|
||||||
|
window.location.href = 'https://adbypass.org/bypass?bypass=' + window.location.href;
|
||||||
|
} else {
|
||||||
|
window.location.href = targetPageURL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,11 @@
|
||||||
if (getTargetPageRequest.status !== 200) return;
|
if (getTargetPageRequest.status !== 200) return;
|
||||||
const targetPageResponse = await getTargetPageRequest.json();
|
const targetPageResponse = await getTargetPageRequest.json();
|
||||||
const targetPageURL = targetPageResponse['data']['getDetailPageTarget']['url'];
|
const targetPageURL = targetPageResponse['data']['getDetailPageTarget']['url'];
|
||||||
window.location.href = targetPageURL;
|
if (targetPageURL === null || !targetPageURL || targetPageURL.trim() === "") {
|
||||||
|
window.location.href = 'https://adbypass.org/bypass?bypass=' + window.location.href;
|
||||||
|
} else {
|
||||||
|
window.location.href = targetPageURL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue