mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-10-31 21:20:11 +00:00
Fix support Brave Browser (synch Chrome)
This commit is contained in:
parent
15148e4ea4
commit
3436206279
@ -388,6 +388,9 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// fix brave browser
|
||||
if (!details.originUrl && !header_referer.includes(details.initiator))
|
||||
header_referer = details.initiator;
|
||||
|
||||
// remove cookies for sites medium platform (mainfest.json needs in permissions: <all_urls>)
|
||||
var medium_custom_domain = (isSiteEnabled({url: 'https://medium.com'}) && matchUrlDomain('cdn-client.medium.com', details.url) && !matchUrlDomain('medium.com', header_referer));
|
||||
|
Loading…
Reference in New Issue
Block a user