Bypassing homepage for quora, medium, imgur #327

This commit is contained in:
ManeraKai 2022-06-12 11:55:27 +03:00
parent cd285222c7
commit f108cdbcbd
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
3 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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 && (
[

View File

@ -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,