Bypassing homepage for quora, medium, imgur #327
This commit is contained in:
parent
cd285222c7
commit
f108cdbcbd
|
@ -105,6 +105,7 @@ function all() {
|
|||
|
||||
function redirect(url, type, initiator) {
|
||||
if (disableImgur) return;
|
||||
if (url.pathname == "/") return;
|
||||
if (!["main_frame", "sub_frame", "xmlhttprequest", "other", "image", "media",].includes(type)) return;
|
||||
if (initiator && (all().includes(initiator.origin) || targets.test(initiator.host))) return;
|
||||
if (!targets.test(url.href)) return;
|
||||
|
|
|
@ -89,6 +89,7 @@ browser.storage.onChanged.addListener(init)
|
|||
|
||||
function redirect(url, type, initiator) {
|
||||
if (disableMedium) return;
|
||||
if (url.pathname == "/") return;
|
||||
if (type != "main_frame" && "sub_frame" && "xmlhttprequest" && "other") return;
|
||||
if (initiator && (
|
||||
[
|
||||
|
|
|
@ -67,6 +67,7 @@ browser.storage.onChanged.addListener(init)
|
|||
|
||||
function redirect(url, type, initiator) {
|
||||
if (disableQuora) return;
|
||||
if (url.pathname == "/") return;
|
||||
if (type != "main_frame") return;
|
||||
const all = [
|
||||
...quoraRedirects.quetre.normal,
|
||||
|
|
Loading…
Reference in New Issue