Skip to content

Commit

Permalink
Merge pull request manojVivek#162 from Nikostito/master
Browse files Browse the repository at this point in the history
Major Update to manually activate addon on whichever site you want
  • Loading branch information
manojVivek authored Jul 6, 2021
2 parents 1703afa + 14f4fd3 commit c497eed
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 6 deletions.
14 changes: 11 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"name": "Medium Unlimited: Read paid content for free!",
"description": "Unlocks medium.com for unlimited reads, no membership required",
"short_name": "Medium Unlimited",
"version": "1.10.0",
"version": "1.20.0",
"manifest_version": 2,
"optional_permissions": [
"*://*/*"
],
"background": {
"scripts": ["background.bundle.js"]
"scripts": [
"background.bundle.js"
]
},
"browser_action": {
"default_icon": "static/logo_128.png",
Expand Down Expand Up @@ -88,6 +93,8 @@
"permissions": [
"webRequest",
"webRequestBlocking",
"contextMenus",
"activeTab",
"https://medium.com/*",
"https://towardsdatascience.com/*",
"https://hackernoon.com/*",
Expand Down Expand Up @@ -147,7 +154,8 @@
"https://bootcamp.uxdesign.cc/*",
"https://*.baos.pub/*",
"https://www.inbitcoinwetrust.net/*",
"https://blog.prototypr.io/*"
"https://blog.prototypr.io/*",
"https://blog.devgenius.io/*"
],
"web_accessible_resources": ["static/*"]
}
85 changes: 85 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"classnames": "^2.2.6",
"gh-pages": "^2.2.0",
"react": "^16.4.2",
"react-dom": "^16.4.2"
"react-dom": "^16.4.2",
"webext-domain-permission-toggle": "^2.1.0",
"webext-dynamic-content-scripts": "^7.1.2"
},
"devDependencies": {
"babel-core": "^6.26.3",
Expand Down
7 changes: 6 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import intercept from './request_interceptors'; //Importing just to make sure the interceptors are registered.
import {init} from './utils';
import 'webext-dynamic-content-scripts';
import addDomainPermissionToggle from 'webext-domain-permission-toggle';


//Initialize global handlers
init();

intercept();
intercept();

addDomainPermissionToggle();
2 changes: 1 addition & 1 deletion src/request_interceptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const urlsList = [
'https://*.baos.pub/*',
'https://www.inbitcoinwetrust.net/*',
'https://blog.prototypr.io/*',
'https://blog.devgenius.io/',
'https://blog.devgenius.io/*'
];

export default function intercept() {
Expand Down

0 comments on commit c497eed

Please sign in to comment.