mirror of
https://github.com/thebaer/MMRA
synced 2024-11-13 10:11:01 +00:00
Update manifest permissions to match medium url
This commit is contained in:
parent
bf85c8d383
commit
f64ca567bd
@ -63,8 +63,6 @@ var observer = new MutationObserver(function(mutations){
|
||||
|
||||
var config = {attributes: true};
|
||||
|
||||
// Only run this on Medium sites.
|
||||
if (document.querySelector('head meta[property="al:ios:app_name"][content="medium"]')) {
|
||||
makeReadable();
|
||||
shrinkHeaderImages();
|
||||
|
||||
@ -78,4 +76,3 @@ if (document.querySelector('head meta[property="al:ios:app_name"][content="mediu
|
||||
});
|
||||
|
||||
observer.observe(document.body, config);
|
||||
}
|
||||
|
@ -22,11 +22,11 @@
|
||||
"default_icon": "icon.png"
|
||||
},
|
||||
"permissions": [
|
||||
"storage", "https://*/*"
|
||||
"storage"
|
||||
],
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["https://*/*"],
|
||||
"matches": ["https://medium.com/*"],
|
||||
"js": ["content.js"]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user