This repository was archived by the owner on Nov 27, 2024. It is now read-only.
File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 2 ,
3
3
"name" : " Seeking Alpha Paywall Remover" ,
4
- "version" : " 1.3 " ,
4
+ "version" : " 1.4 " ,
5
5
"description" : " Removes the paywall from news and article pages on the seekingalpha.com website" ,
6
6
"icons" : {
7
7
"48" : " icons/48x48.png" ,
Original file line number Diff line number Diff line change 1
- const payWallSelector = 'div:has(> div[role="dialog"])' ;
1
+ const payWallSelector = "main + div > div + div" ;
2
+ const overlaySelector = "div.bg-black\\/30" ;
2
3
const contentWrapperSelector = "#content" ;
3
4
const articleSelector = "main article section" ;
4
5
@@ -28,9 +29,14 @@ new window.MutationObserver(function (mutations) {
28
29
} ) . observe ( document , { subtree : true , attributes : true } ) ;
29
30
30
31
function hidePayWall ( ) {
31
- const payWallOverlay = document . querySelector ( payWallSelector ) ;
32
- if ( payWallOverlay ) {
33
- payWallOverlay . setAttribute ( "style" , "display:none" ) ;
32
+ const payWallDialog = document . querySelector ( payWallSelector ) ;
33
+ if ( payWallDialog ) {
34
+ payWallDialog . setAttribute ( "style" , "display:none" ) ;
35
+ }
36
+
37
+ const overlay = document . querySelector ( overlaySelector ) ;
38
+ if ( overlay ) {
39
+ overlay . remove ( ) ;
34
40
}
35
41
}
36
42
You can’t perform that action at this time.
0 commit comments