mirror of https://github.com/shuang854/Turtle
started browser extension
parent
da49b2268b
commit
ee0a83e19d
@ -0,0 +1,10 @@
|
||||
const IFRAME_HEADERS = ['content-security-policy', 'x-frame-options'];
|
||||
const isFirefox = navigator.userAgent.includes('Firefox');
|
||||
|
||||
chrome.webRequest.onHeadersReceived.addListener(
|
||||
(details) => ({
|
||||
responseHeaders: details.responseHeaders.filter((header) => !IFRAME_HEADERS.includes(header.name.toLowerCase())),
|
||||
}),
|
||||
{ urls: ['<all_urls>'] },
|
||||
['blocking', 'responseHeaders']
|
||||
);
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Turtle",
|
||||
"description": "Allows syncing shows/movies of subscription services",
|
||||
"background": {
|
||||
"scripts": ["background.js"]
|
||||
},
|
||||
"permissions": ["webRequest", "webRequestBlocking", "<all_urls>"],
|
||||
"version": "1.0",
|
||||
"icons": {
|
||||
"48": "icon_48.png"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue