mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-02-09 08:38:40 +01:00
Fixed Bypass Read on Twitter bug
This commit is contained in:
parent
2fac3cb99f
commit
adb3db99c6
@ -224,6 +224,8 @@ async function init() {
|
|||||||
"theme",
|
"theme",
|
||||||
"applyThemeToSites",
|
"applyThemeToSites",
|
||||||
|
|
||||||
|
"bypassWatchOnTwitter",
|
||||||
|
|
||||||
"nitterNormalRedirectsChecks",
|
"nitterNormalRedirectsChecks",
|
||||||
"nitterNormalCustomRedirects",
|
"nitterNormalCustomRedirects",
|
||||||
|
|
||||||
|
@ -77,8 +77,6 @@ browser.webRequest.onBeforeRequest.addListener(
|
|||||||
|
|
||||||
if (BYPASSTABs.includes(details.tabId)) newUrl = null;
|
if (BYPASSTABs.includes(details.tabId)) newUrl = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (newUrl) {
|
if (newUrl) {
|
||||||
if (newUrl == 'CANCEL') {
|
if (newUrl == 'CANCEL') {
|
||||||
console.log(`Canceled ${url}`);
|
console.log(`Canceled ${url}`);
|
||||||
@ -108,7 +106,6 @@ browser.tabs.onRemoved.addListener((tabId) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
browser.tabs.onUpdated.addListener(
|
browser.tabs.onUpdated.addListener(
|
||||||
(tabId, changeInfo, _) => {
|
(tabId, changeInfo, _) => {
|
||||||
let url;
|
let url;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user