File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -51,3 +51,7 @@ Version 1.3.1
51
51
52
52
Version 1.4.0
53
53
- 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.
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ function main () {
13
13
removeBlurFilter ( ) ;
14
14
removeExcessSpacing ( ) ;
15
15
uncoverBodyText ( ) ;
16
+ removeStickyPromo ( ) ;
16
17
}
17
18
18
19
function removePaywall ( ) {
@@ -42,6 +43,13 @@ function unlockArticle () {
42
43
let paywallStripe = $ ( '#paywall_strip' ) ;
43
44
if ( paywallStripe . length > 0 ) {
44
45
paywallStripe [ 0 ] . remove ( ) ;
46
+ }
47
+ else {
48
+ unlockArticle ( ) ;
49
+ }
50
+ let paywallWrapper = $ ( '#paywall_wrapper' ) ;
51
+ if ( paywallWrapper . length > 0 ) {
52
+ paywallWrapper [ 0 ] . remove ( ) ;
45
53
} else {
46
54
unlockArticle ( ) ;
47
55
}
@@ -83,3 +91,14 @@ function uncoverBodyText () {
83
91
}
84
92
} , 100 ) ;
85
93
}
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
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 2 ,
3
3
"name" : " Anti-Messaggero" ,
4
- "version" : " 1.4 .0" ,
4
+ "version" : " 1.5 .0" ,
5
5
"description" : " Automatically remove the paywall that blocks a user from reading an article and the pop-up containing the video attached to it." ,
6
6
"homepage_url" : " https://github.com/lorenzodb1/anti-messaggero" ,
7
7
"icons" : {
You can’t perform that action at this time.
0 commit comments