diff --git a/src/main/index.js b/src/main/index.js index 1ff88842..093e9923 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -1,4 +1,4 @@ -import { app, BrowserWindow, Menu, ipcMain, screen } from 'electron' +import { app, BrowserWindow, Menu, ipcMain, session, screen } from 'electron' import { productName } from '../../package.json' import Datastore from 'nedb' @@ -248,6 +248,12 @@ function createWindow (useProxy = false, proxyUrl = '') { }) } + mainWindow.webContents.session.cookies.set({ + url: 'https://www.youtube.com', + name: 'CONSENT', + value: 'YES+' + }) + settingsDb.findOne({ _id: 'bounds' }, function (err, doc) {