File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ function runMedium(url) {
97
97
if (
98
98
ignoreURLs . indexOf ( u . pathname ) == - 1 &&
99
99
checkWildCardPaths ( u . pathname ) == false &&
100
+ checkUserProfile ( u . pathname ) == false &&
100
101
u . pathname . split ( "/" ) . filter ( ( e ) => e ) . length >= 1
101
102
) {
102
103
var leftDiv = document . createElement ( "div" ) ;
@@ -223,3 +224,14 @@ function checkWildCardPaths(currentPath) {
223
224
} ;
224
225
return ignoreURLs . some ( match ) ;
225
226
}
227
+
228
+ function checkUserProfile ( currentPath ) {
229
+ let splittedCurrentPath = currentPath . split ( "/" ) . filter ( ( e ) => e ) ;
230
+ if (
231
+ splittedCurrentPath [ 0 ] . startsWith ( "@" ) &&
232
+ splittedCurrentPath . length == 1
233
+ ) {
234
+ return true ;
235
+ }
236
+ return false ;
237
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 3 ,
3
3
"name" : " Medium parser" ,
4
- "version" : " 1.5.2 " ,
4
+ "version" : " 1.5.3 " ,
5
5
"description" : " Read Medium.com and medium.com based articles for free." ,
6
6
"icons" : {
7
7
"16" : " img/icon16.jpg" ,
You can’t perform that action at this time.
0 commit comments