diff --git a/manifest.json b/manifest.json index 590d6ba..6084e77 100755 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "News Paywall Blocker by OpenNews", - "version": "0.19", + "version": "0.19.1", "manifest_version": 2, "description": "Experience a brand new FREE browsing experience bypassing pesky cookie Paywalls!", "author": "Rushil Srivastava", @@ -21,10 +21,17 @@ ], "persistent": true }, - "content_scripts": [{ - "matches": ["https://cooking.nytimes.com/*"], - "css": ["src/css/nyt.css"] - }], + "content_scripts": [ + { + "matches": ["https://cooking.nytimes.com/*"], + "css": ["src/css/nyt.css"] + }, + { + "matches": ["https://www.ft.com/*"], + "css": ["src/css/ft.css"], + "js": ["src/js/ft.js"] + } + ], "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'", "permissions": [ "webRequest", diff --git a/src/css/ft.css b/src/css/ft.css new file mode 100644 index 0000000..cd0b513 --- /dev/null +++ b/src/css/ft.css @@ -0,0 +1,3 @@ +.n-messaging-slot .cookie-banner .variant-cookieConsentC [data-n-messaging-name="cookieConsentA"], [data-n-messaging-name="cookieConsentB"], [data-n-messaging-name="cookieConsentC"] { + display: none !important; +} \ No newline at end of file diff --git a/src/css/nyt.css b/src/css/nyt.css index 1511bbd..5f822db 100755 --- a/src/css/nyt.css +++ b/src/css/nyt.css @@ -3,6 +3,6 @@ html { overflow: scroll !important; } -.nytc---modal-window---windowContainer .nytc---shared---blackBG .nytc---modal-window---isShown #app-container div[role=dialog] { +#appContainer { display: none !important; } \ No newline at end of file diff --git a/src/js/ft.js b/src/js/ft.js new file mode 100644 index 0000000..0b67814 --- /dev/null +++ b/src/js/ft.js @@ -0,0 +1,6 @@ +window.onload = function () { + console.log("Disabling Paywall on FT.com"); + var disablePaywall = document.createElement("script"); + disablePaywall.innerHTML = "window.FT.flags[\"disablePaywall\"] = true;" + document.head.appendChild(disablePaywall); +} \ No newline at end of file