From 39486bd6720cfd6d22e63c6d00d12ccfd1603329 Mon Sep 17 00:00:00 2001 From: idk Date: Sat, 6 Mar 2021 19:27:00 +0000 Subject: [PATCH] add the userChrome to the configuring profile on Windows --- README | 2 ++ src/nsis/i2pbrowser-installer.nsi | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/README b/README index 079ebd4..6a53e0f 100644 --- a/README +++ b/README @@ -36,3 +36,5 @@ HTTPS Everywhere is developed on Github by the EFF: I2P in Private Browsing is developed on Gitlab and Github by idk and the community: - https://i2pgit.org/idk/I2P-in-Private-Browsing-Mode-Firefox - https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox + + diff --git a/src/nsis/i2pbrowser-installer.nsi b/src/nsis/i2pbrowser-installer.nsi index 97364d0..95e663f 100644 --- a/src/nsis/i2pbrowser-installer.nsi +++ b/src/nsis/i2pbrowser-installer.nsi @@ -274,6 +274,11 @@ Section Install File profile/extensions/https-everywhere-eff@eff.org.xpi File profile/extensions/i2ppb@eyedeekay.github.io.xpi + # Install the config userChrome + createDirectory "$LOCALAPPDATA\${APPNAME}\firefox.profile.config.i2p\chrome" + SetOutPath "$LOCALAPPDATA\${APPNAME}\firefox.profile.config.i2p\chrome" + File profile/chrome/userChrome.css + SetOutPath "$INSTDIR" createDirectory "$SMPROGRAMS\${APPNAME}" CreateShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pbrowser.bat$\" ${CONSOLE_URL}" "$INSTDIR\ui2pbrowser_icon.ico" @@ -340,6 +345,8 @@ Section "uninstall" Delete "$LOCALAPPDATA\${APPNAME}\firefox.profile.config.i2p\extensions\https-everywhere-eff@eff.org.xpi" Delete "$LOCALAPPDATA\${APPNAME}\firefox.profile.config.i2p\extensions\i2ppb@eyedeekay.github.io.xpi" + Delete "$LOCALAPPDATA\${APPNAME}\firefox.profile.config.i2p\config\userChrome.css" + # Remove shortcuts and folders Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" Delete "$SMPROGRAMS\${APPNAME}\Private Browsing-${APPNAME}.lnk"