Fix-update Foreign Policy

This commit is contained in:
magnolia1234 2021-06-16 07:38:22 +02:00
parent ebdc468dd6
commit d32f66a847
4 changed files with 9 additions and 6 deletions

View File

@ -1361,6 +1361,8 @@ function remove_cookies_fn(domainVar, exclusions = false) {
currentWindow: true currentWindow: true
}, function (tabs) { }, function (tabs) {
if (tabs && tabs[0] && tabs[0].url.startsWith('http')) { if (tabs && tabs[0] && tabs[0].url.startsWith('http')) {
if (ext_api.runtime.lastError)
return;
let tabId = tabs[0].id; let tabId = tabs[0].id;
let storeId = '0'; let storeId = '0';
for (let store of cookieStores) { for (let store of cookieStores) {

View File

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release Post-release
Remove The Northern Star (obsolete) Remove The Northern Star (obsolete)
Fix-update Boston Globe (no opt-in) Fix-update Boston Globe (no opt-in)
Fix-update Foreign Policy
Fix-update The Spectator UK (amp) Fix-update The Spectator UK (amp)
* v2.2.5.0 (2021-06-13) * v2.2.5.0 (2021-06-13)

View File

@ -1863,11 +1863,11 @@ else if (matchDomain('foreignaffairs.com')) {
} }
else if (matchDomain('foreignpolicy.com')) { else if (matchDomain('foreignpolicy.com')) {
let placeholder = document.querySelector('div.loading-placeholder-smaller'); let content_ungated = document.querySelector('div.content-ungated');
removeDOMElement(placeholder); removeDOMElement(content_ungated);
let sub_content = document.querySelector('div.sub_content:not(style)'); let content_gated = document.querySelector('div.content-gated');
if (sub_content) if (content_gated)
sub_content.setAttribute('style', 'display:block !important;'); content_gated.classList.remove('content-gated');
} }
else if (matchDomain('ft.com')) { else if (matchDomain('ft.com')) {

View File

@ -525,5 +525,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.2.5.2" "version": "2.2.5.3"
} }