old stuff removed
This commit is contained in:
parent
a624e016aa
commit
e2cf0b8fdb
@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"manifest_version": 3,
|
|
||||||
"name": "reFilc.hu",
|
|
||||||
"version": "1.0",
|
|
||||||
"description": ":3",
|
|
||||||
"permissions": [
|
|
||||||
"scripting",
|
|
||||||
"activeTab",
|
|
||||||
"tabs",
|
|
||||||
"cookies",
|
|
||||||
"storage"
|
|
||||||
],
|
|
||||||
"host_permissions": [
|
|
||||||
"https://*.e-kreta.hu/*"
|
|
||||||
],
|
|
||||||
"background": {
|
|
||||||
"service_worker": "serviceWorker.js"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
const getCookies = async (url) => {
|
|
||||||
await new Promise((resolve, reject) => {
|
|
||||||
chrome.cookies.getAll({ url: url }, (cookies) => {
|
|
||||||
if (chrome.runtime.lastError) {
|
|
||||||
return reject(chrome.runtime.lastError)
|
|
||||||
}
|
|
||||||
resolve(cookies)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const sendMimicedRequest = async (
|
|
||||||
url,
|
|
||||||
headers,
|
|
||||||
) => {
|
|
||||||
let returnValue
|
|
||||||
|
|
||||||
if (url) {
|
|
||||||
returnValue = fetch(url, headers)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (returnValue) {
|
|
||||||
return returnValue
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user