Skip to content

Commit ea5032d

Browse files
committed
Version 1.5.0
1 parent abe2732 commit ea5032d

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ Version 1.3.1
5151

5252
Version 1.4.0
5353
- Added functionality to uncover article when a paywall should be shown.
54+
55+
Version 1.5.0
56+
- Remove the promo bar at the bottom of free articles.
57+
- Remove the dark background added to the paywall.

antimessaggero.js

+19
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function main () {
1313
removeBlurFilter();
1414
removeExcessSpacing();
1515
uncoverBodyText();
16+
removeStickyPromo();
1617
}
1718

1819
function removePaywall () {
@@ -42,6 +43,13 @@ function unlockArticle () {
4243
let paywallStripe = $('#paywall_strip');
4344
if (paywallStripe.length > 0) {
4445
paywallStripe[0].remove();
46+
}
47+
else {
48+
unlockArticle();
49+
}
50+
let paywallWrapper = $('#paywall_wrapper');
51+
if (paywallWrapper.length > 0) {
52+
paywallWrapper[0].remove();
4553
} else {
4654
unlockArticle();
4755
}
@@ -83,3 +91,14 @@ function uncoverBodyText () {
8391
}
8492
}, 100);
8593
}
94+
95+
function removeStickyPromo () {
96+
let stickyPromo = $('#mp_strip_sticky');
97+
setTimeout(function () {
98+
if (stickyPromo.length > 0) {
99+
stickyPromo[0].remove();
100+
} else {
101+
removeStickyPromo();
102+
}
103+
}, 100);
104+
}

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Anti-Messaggero",
4-
"version": "1.4.0",
4+
"version": "1.5.0",
55
"description": "Automatically remove the paywall that blocks a user from reading an article and the pop-up containing the video attached to it.",
66
"homepage_url": "https://github.com/lorenzodb1/anti-messaggero",
77
"icons": {

0 commit comments

Comments
 (0)