mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 12:43:24 +00:00
Compare commits
6 Commits
1.1.3
...
3f33d9bc4a
Author | SHA1 | Date | |
---|---|---|---|
|
3f33d9bc4a | ||
|
86a659f478 | ||
|
dbdbf10c5d | ||
|
6fca55a6c3 | ||
|
50eadd3a14 | ||
|
b2ba74bd97 |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@movie-web/extension",
|
"name": "@movie-web/extension",
|
||||||
"displayName": "movie-web extension",
|
"displayName": "movie-web extension",
|
||||||
"version": "1.1.3",
|
"version": "1.1.4",
|
||||||
"description": "Enhance your movie-web experience with just one click",
|
"description": "Enhance your movie-web experience with just one click",
|
||||||
"author": "movie-web",
|
"author": "movie-web",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -53,6 +53,9 @@
|
|||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "{3fd86354-c73f-4395-9e26-2c5c984579bf}"
|
"id": "{3fd86354-c73f-4395-9e26-2c5c984579bf}"
|
||||||
|
},
|
||||||
|
"gecko_android": {
|
||||||
|
"id": "{3fd86354-c73f-4395-9e26-2c5c984579bf}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
|
@@ -9,6 +9,7 @@ export function SetupScreen() {
|
|||||||
const open = useCallback(() => {
|
const open = useCallback(() => {
|
||||||
const url = (chrome || browser).runtime.getURL(`/tabs/PermissionRequest.html`);
|
const url = (chrome || browser).runtime.getURL(`/tabs/PermissionRequest.html`);
|
||||||
(chrome || browser).tabs.create({ url });
|
(chrome || browser).tabs.create({ url });
|
||||||
|
window.close();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@@ -23,9 +23,9 @@ export function useDomainWhitelist() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function useToggleWhitelistDomain(domain: string) {
|
export function useToggleWhitelistDomain(domain: string | null) {
|
||||||
const { domainWhitelist, addDomain, removeDomain } = useDomainWhitelist();
|
const { domainWhitelist, addDomain, removeDomain } = useDomainWhitelist();
|
||||||
const isWhitelisted = domainWhitelist.includes(domain);
|
const isWhitelisted = domainWhitelist.includes(domain ?? '');
|
||||||
const { grantPermission } = usePermission();
|
const { grantPermission } = usePermission();
|
||||||
const iconPath = (chrome || browser).runtime.getURL(isWhitelisted ? 'assets/active.png' : 'assets/inactive.png');
|
const iconPath = (chrome || browser).runtime.getURL(isWhitelisted ? 'assets/active.png' : 'assets/inactive.png');
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ function IndexPopup() {
|
|||||||
) : (
|
) : (
|
||||||
<Frame>
|
<Frame>
|
||||||
<div className="popup">
|
<div className="popup">
|
||||||
{page === 'toggle' ? <ToggleButton active={isWhitelisted} onClick={toggle} domain={domain} /> : null}
|
{page === 'toggle' && domain ? <ToggleButton active={isWhitelisted} onClick={toggle} domain={domain} /> : null}
|
||||||
{page === 'disabled' ? <DisabledScreen /> : null}
|
{page === 'disabled' ? <DisabledScreen /> : null}
|
||||||
<BottomLabel />
|
<BottomLabel />
|
||||||
</div>
|
</div>
|
||||||
|
@@ -10,6 +10,10 @@ body {
|
|||||||
padding-bottom: 50px;
|
padding-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#__plasmo {
|
||||||
|
height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
.permission-request.container {
|
.permission-request.container {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 100px auto;
|
margin: 100px auto;
|
||||||
|
Reference in New Issue
Block a user