Skip to content

Commit

Permalink
Major Update to make addon activated manually on every site a user wants
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikostito committed Jun 29, 2021
1 parent 0d69a02 commit 3bb039f
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 7 deletions.
17 changes: 12 additions & 5 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 @@ -73,7 +78,8 @@
"https://bootcamp.uxdesign.cc/*",
"https://*.baos.pub/*",
"https://www.inbitcoinwetrust.net/*",
"https://blog.prototypr.io/*"
"https://blog.prototypr.io/*",
"https://blog.devgenius.io/*"
],
"js": ["main.bundle.js"]
}
Expand All @@ -87,6 +93,8 @@
"permissions": [
"webRequest",
"webRequestBlocking",
"contextMenus",
"activeTab",
"https://medium.com/*",
"https://towardsdatascience.com/*",
"https://hackernoon.com/*",
Expand Down Expand Up @@ -145,8 +153,7 @@
"https://medium.datadriveninvestor.com/*",
"https://bootcamp.uxdesign.cc/*",
"https://*.baos.pub/*",
"https://www.inbitcoinwetrust.net/*",
"https://blog.prototypr.io/*"
"https://www.inbitcoinwetrust.net/*"
],
"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
8 changes: 7 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
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';
import {getAdditionalPermissions, getManifestPermissions} from 'webext-additional-permissions';


//Initialize global handlers
init();

intercept();
intercept();

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

export default function intercept() {
Expand Down
1 change: 1 addition & 0 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ <h2 style="text-align:center">The browser extension/addon to access the medium.c
<li>https://*.baos.pub</li>
<li>https://www.inbitcoinwetrust.net</li>
<li>https://blog.prototypr.io</li>
<li>https://blog.devgenius.io/</li>
</ul>
<p>Please get in touch if you need any other custom medium domain supported.</p>

Expand Down

0 comments on commit 3bb039f

Please sign in to comment.