mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Fix Medium (faster)
This commit is contained in:
parent
7508a2e4fc
commit
97671b3e07
@ -1135,7 +1135,10 @@ function remove_cookies_fn(domainVar, exclusions = false) {
|
||||
// remove cookies after page load
|
||||
ext_api.webRequest.onCompleted.addListener(function (details) {
|
||||
let domainVar = matchUrlDomain(remove_cookies, details.url);
|
||||
if (domainVar && ['main_frame', 'sub_frame', 'xmlhttprequest', 'other'].includes(details.type) && enabledSites.includes(domainVar)) {
|
||||
let types = ['main_frame', 'sub_frame', 'xmlhttprequest', 'other'];
|
||||
if (domainVar === 'medium.com')
|
||||
types = ['main_frame', 'image'];
|
||||
if (domainVar && types.includes(details.type) && enabledSites.includes(domainVar)) {
|
||||
remove_cookies_fn(domainVar, true);
|
||||
}
|
||||
}, {
|
||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Italian.tech
|
||||
Fix Medium (faster)
|
||||
|
||||
* v2.4.4.0 (2021-11-14)
|
||||
Fix Nikkei Asian Review (cookies)
|
||||
|
Loading…
Reference in New Issue
Block a user