mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:17:46 +01:00
Fix support Brave Browser (synch Chrome)
This commit is contained in:
parent
15148e4ea4
commit
3436206279
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue