mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-13 23:50:12 +00:00
parent
c82e493628
commit
0d58ddaaa2
@ -208,6 +208,7 @@ function buildCookieLine(cookie) {
|
||||
|
||||
async function sendCookies() {
|
||||
console.log('function sendCookies');
|
||||
const acceptableDomains = ['.youtube.com', 'youtube.com', 'www.youtube.com'];
|
||||
|
||||
let cookieStores = await browserType.cookies.getAllCookieStores();
|
||||
let cookieLines = [
|
||||
@ -223,9 +224,11 @@ async function sendCookies() {
|
||||
});
|
||||
for (let j = 0; j < allCookiesStore.length; j++) {
|
||||
const cookie = allCookiesStore[j];
|
||||
if (acceptableDomains.includes(cookie.domain)) {
|
||||
cookieLines.push(buildCookieLine(cookie));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let response = cookieStr(cookieLines);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user