1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-11 03:15:44 +02:00

...because I can't be bothered

This commit is contained in:
chylex 2018-05-29 15:34:02 +02:00
parent 0be9465dca
commit 03730fafb9
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ static class Arguments{
// public args
public const string ArgDataFolder = "-datafolder";
public const string ArgLogging = "-log";
public const string ArgIgnoreGDPR = "-nogdpr";
// internal args
public const string ArgRestart = "-restart";

View File

@ -4,6 +4,7 @@
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
using TweetDuck.Configuration;
using TweetDuck.Core.Bridge;
using TweetDuck.Core.Controls;
using TweetDuck.Core.Handling;
@ -154,6 +155,10 @@ private void browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e){
TweetDeckBridge.ResetStaticProperties();
if (Arguments.HasFlag(Arguments.ArgIgnoreGDPR)){
ScriptLoader.ExecuteScript(frame, @"TD.storage.Account.prototype.requiresConsent = function(){ return false; }", "gen:gdpr");
}
if (Program.UserConfig.FirstRun){
ScriptLoader.ExecuteFile(frame, "introduction.js", browser);
}