Skip to content

Commit

Permalink
make redgif permission more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
yereter committed Oct 19, 2023
1 parent 03f10cd commit a490799
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chrome/beta/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"https://accounts.google.com/signin/oauth",
"https://www.dropbox.com/oauth2/authorize",
"https://login.live.com/oauth20_authorize.srf",
"https://*.redgifs.com/*"
"https://api.redgifs.com/v2/*"
],
"web_accessible_resources": [
"{{../../lib/environment/background/permissions/prompt.html}}",
Expand Down
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"https://accounts.google.com/signin/oauth",
"https://www.dropbox.com/oauth2/authorize",
"https://login.live.com/oauth20_authorize.srf",
"https://*.redgifs.com/*"
"https://api.redgifs.com/v2/*"
],
"web_accessible_resources": [
"{{../lib/environment/background/permissions/prompt.html}}",
Expand Down
2 changes: 1 addition & 1 deletion firefox/beta/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"https://www.googleapis.com/drive/v3/*",
"https://*.redd.it/*",
"https://www.flickr.com/services/oembed",
"https://*.redgifs.com/*"
"https://api.redgifs.com/v2/*"
],
"web_accessible_resources": [
"{{../../lib/environment/background/permissions/prompt.html}}",
Expand Down
2 changes: 1 addition & 1 deletion firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"https://www.googleapis.com/drive/v3/*",
"https://*.redd.it/*",
"https://www.flickr.com/services/oembed",
"https://*.redgifs.com/*"
"https://api.redgifs.com/v2/*"
],
"web_accessible_resources": [
"{{../lib/environment/background/permissions/prompt.html}}",
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/hosts/redgifs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ajax } from '../../environment';
export default new Host('redgifs', {
name: 'redgifs',
domains: ['redgifs.com'],
permissions: ['https://*.redgifs.com/*'],
permissions: ['https://api.redgifs.com/v2/*'],
logo: 'https://redgifs.com/assets/favicon.ico',
detect: ({ pathname }) => (/^\/(?:(?:ifr|watch|i)\/)(\w+)/i).exec(pathname),
async handleLink(href, [, id]) {
Expand Down

0 comments on commit a490799

Please sign in to comment.