more chromium purging

This commit is contained in:
eyedeekay
2025-05-20 20:22:52 -04:00
parent c8dd8625d1
commit 68c7274ffd
6 changed files with 10 additions and 221 deletions

View File

@ -25,7 +25,3 @@ ublock-origin
https://addons.mozilla.org/firefox/downloads/file/4492375/ublock_origin-1.64.0.xpi https://addons.mozilla.org/firefox/downloads/file/4492375/ublock_origin-1.64.0.xpi
``` ```
## Chromium
```md
```

206
build.xml
View File

@ -127,50 +127,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<redirector output="USAGE.md" append="true"/> <redirector output="USAGE.md" append="true"/>
<arg value="" /> <arg value="" />
</exec> </exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="Chromium in Persistent Mode" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="```sh" />
</exec>
<exec executable="cat">
<redirector output="USAGE.md" append="true"/>
<arg value="i2pchromium.cmd" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="```" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="Chromium in Private Browsing Mode" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="```sh" />
</exec>
<exec executable="cat">
<redirector output="USAGE.md" append="true"/>
<arg value="i2pchromium-private.cmd" />
</exec>
<exec executable="echo">
<redirector output="USAGE.md" append="true"/>
<arg value="```" />
</exec>
</target> </target>
<target name="jar" depends="versionMd,i2pFirefoxBaseProfileZip,i2pFirefoxUsabilityProfileZip"> <target name="jar" depends="versionMd,i2pFirefoxBaseProfileZip,i2pFirefoxUsabilityProfileZip">
@ -202,30 +158,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
</exec> </exec>
</target> </target>
<target name="i2pChromiumBaseProfileZip">
<exec executable="rm" failonerror="false" dir="src">
<arg value="-rf" />
<arg value="i2p.chromium.base.profile.zip" />
</exec>
<exec executable="dzip" failonerror="true" dir="src">
<arg value="-O"/>
<arg value="i2p.chromium.base.profile.zip"/>
<arg value="i2p.chromium.base.profile"/>
</exec>
</target>
<target name="i2pChromiumUsabilityProfileZip">
<exec executable="rm" failonerror="false" dir="src">
<arg value="-rf" />
<arg value="i2p.chromium.usability.profile.zip" />
</exec>
<exec executable="dzip" failonerror="true" dir="src">
<arg value="-O"/>
<arg value="i2p.chromium.usability.profile.zip"/>
<arg value="i2p.chromium.usability.profile"/>
</exec>
</target>
<target name="freeZip" depends="jar"> <target name="freeZip" depends="jar">
<exec executable="rm" failonerror="false" dir="src"> <exec executable="rm" failonerror="false" dir="src">
<arg value="-rf" /> <arg value="-rf" />
@ -492,10 +424,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<arg value="src/java/net/i2p/i2pfirefox/I2PBrowser.java"/> <arg value="src/java/net/i2p/i2pfirefox/I2PBrowser.java"/>
<arg value="src/plugin/net/i2p/i2pfirefox/plugin/plugin/I2PBrowserPlugin.java"/> <arg value="src/plugin/net/i2p/i2pfirefox/plugin/plugin/I2PBrowserPlugin.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java"/> <arg value="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PChromium.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefox.java"/> <arg value="src/java/net/i2p/i2pfirefox/I2PFirefox.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java"/> <arg value="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java"/>
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java"/> <arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java"/>
@ -516,10 +444,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<delete dir="i2p.firefox.usability.profile" /> <delete dir="i2p.firefox.usability.profile" />
<delete dir="i2p.firefox.profile" /> <delete dir="i2p.firefox.profile" />
<delete dir="src/i2p.firefox.profile.zip" /> <delete dir="src/i2p.firefox.profile.zip" />
<delete dir="i2p.chromium.base.profile" />
<delete dir="i2p.chromium.usability.profile" />
<delete dir="i2p.chromium.profile" />
<delete dir="src/i2p.chromium.profile.zip" />
<delete file="plugin/i2ptunnel.config" /> <delete file="plugin/i2ptunnel.config" />
<delete file="plugin/plugin.config" /> <delete file="plugin/plugin.config" />
<delete file="plugin/i2pfirefox.config" /> <delete file="plugin/i2pfirefox.config" />
@ -582,7 +506,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<arg value="--linux-deb-maintainer"/> <arg value="hankhill19580@gmail.com"/> <arg value="--linux-deb-maintainer"/> <arg value="hankhill19580@gmail.com"/>
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/> <arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
<arg value="--linux-app-category"/> <arg value="Network"/> <arg value="--linux-app-category"/> <arg value="Network"/>
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/> <arg value="--linux-package-deps"/> <arg value="firefox|firefox-esr|librewolf|icecat"/>
<arg value="--linux-shortcut"/> <arg value="--linux-shortcut"/>
<arg value="--license-file"/> <arg value="LICENSE.md"/> <arg value="--license-file"/> <arg value="LICENSE.md"/>
<arg value="--name"/> <arg value="i2pbrowser"/> <arg value="--name"/> <arg value="i2pbrowser"/>
@ -600,7 +524,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<arg value="--linux-deb-maintainer"/> <arg value="hankhill19580@gmail.com"/> <arg value="--linux-deb-maintainer"/> <arg value="hankhill19580@gmail.com"/>
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/> <arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
<arg value="--linux-app-category"/> <arg value="Network"/> <arg value="--linux-app-category"/> <arg value="Network"/>
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/> <arg value="--linux-package-deps"/> <arg value="firefox|firefox-esr|librewolf|icecat"/>
<arg value="--linux-shortcut"/> <arg value="--linux-shortcut"/>
<arg value="--license-file"/> <arg value="LICENSE.md"/> <arg value="--license-file"/> <arg value="LICENSE.md"/>
<arg value="--name"/> <arg value="i2pbrowser"/> <arg value="--name"/> <arg value="i2pbrowser"/>
@ -617,7 +541,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<arg value="--type"/> <arg value="rpm"/> <arg value="--type"/> <arg value="rpm"/>
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/> <arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
<arg value="--linux-app-category"/> <arg value="Network"/> <arg value="--linux-app-category"/> <arg value="Network"/>
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/> <arg value="--linux-package-deps"/> <arg value="firefox|firefox-esr|librewolf|icecat"/>
<arg value="--linux-shortcut"/> <arg value="--linux-shortcut"/>
<arg value="--license-file"/> <arg value="LICENSE.md"/> <arg value="--license-file"/> <arg value="LICENSE.md"/>
<arg value="--name"/> <arg value="i2pbrowser"/> <arg value="--name"/> <arg value="i2pbrowser"/>
@ -634,7 +558,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<arg value="--type"/> <arg value="rpm"/> <arg value="--type"/> <arg value="rpm"/>
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/> <arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
<arg value="--linux-app-category"/> <arg value="Network"/> <arg value="--linux-app-category"/> <arg value="Network"/>
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/> <arg value="--linux-package-deps"/> <arg value="firefox|firefox-esr|librewolf|icecat"/>
<arg value="--linux-shortcut"/> <arg value="--linux-shortcut"/>
<arg value="--license-file"/> <arg value="LICENSE.md"/> <arg value="--license-file"/> <arg value="LICENSE.md"/>
<arg value="--name"/> <arg value="i2pbrowser"/> <arg value="--name"/> <arg value="i2pbrowser"/>
@ -836,7 +760,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
</exec> </exec>
</target> </target>
<target name="versionMd" depends="i2pFirefoxBaseProfile, i2pFirefoxUsabilityProfile, i2pChromiumBaseProfile, i2pChromiumUsabilityProfile"> <target name="versionMd" depends="i2pFirefoxBaseProfile, i2pFirefoxUsabilityProfile">
<delete file="VERSION.md"></delete> <delete file="VERSION.md"></delete>
<exec executable="echo" failonerror="true"> <exec executable="echo" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector> <redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
@ -904,128 +828,8 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector> <redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value=""/> <arg value=""/>
</exec> </exec>
<exec executable="echo" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="## Chromium"/>
</exec>
<exec executable="echo" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value=""/>
</exec>
<exec executable="echo" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="```md"/>
</exec>
<!--<exec executable="manifest-json-version" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="-mf"/>
<arg value="src/i2p.chromium.base.profile/extensions/i2pchrome.js/manifest.json"/>
</exec>
<exec executable="manifest-json-version" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="-mf"/>
<arg value="src/i2p.chromium.base.profile/extensions/noscript.js/manifest.json"/>
</exec>
<exec executable="manifest-json-version" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="-mf"/>
<arg value="src/i2p.chromium.usability.profile/extensions/localcdn.js/manifest.json"/>
</exec>
<exec executable="manifest-json-version" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="-mf"/>
<arg value="src/i2p.chromium.usability.profile/extensions/ublock.js/manifest.json"/>
</exec>
<exec executable="manifest-json-version" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="-mf"/>
<arg value="src/i2p.chromium.usability.profile/extensions/jshelter.js/manifest.json"/>
</exec>-->
<exec executable="echo" failonerror="true">
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
<arg value="```"/>
</exec>
</target> </target>
<target name="i2pChromiumBaseProfile">
<mkdir dir="src/i2p.chromium.base.profile/extensions/" />
<!--<exec executable="crx3" failonerror="true">
<arg value="download"/>
<arg value="ikdjcmomgldfciocnpekfndklkfgglpe" />
<arg value="-u=true"/>
<arg value="-o" />
<arg value="src/i2p.chromium.base.profile/extensions/i2pchrome.js.crx" />
</exec>-->
<!--<exec executable="crx3" failonerror="true">
<arg value="download"/>
<arg value="doojmbjmlfjjnbmnoijecmcbfeoakpjm" />
<arg value="-u=true"/>
<arg value="-o" />
<arg value="src/i2p.chromium.base.profile/extensions/noscript.js.crx" />
</exec>-->
<exec executable="echo" failonerror="true" append="false" output="src/i2p.chromium.base.profile/version.md">
<arg value="Profile Version" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.base.profile/version.md">
<arg value="===============" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.base.profile/version.md">
<arg value="" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.base.profile/version.md">
<arg value="${release.number}-${build.number}" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.base.profile/version.md">
<arg value="" />
</exec>
</target>
<target name="i2pChromiumUsabilityProfile">
<mkdir dir="src/i2p.chromium.usability.profile/extensions/" />
<!--<exec executable="crx3" failonerror="true">
<arg value="download"/>
<arg value="ikdjcmomgldfciocnpekfndklkfgglpe" />
<arg value="-u=true"/>
<arg value="-o" />
<arg value="src/i2p.chromium.usability.profile/extensions/i2pchrome.js.crx" />
</exec>
<exec executable="crx3" failonerror="true">
<arg value="download"/>
<arg value="cjpalhdlnbpafiamejdnhcphjbkeiagm" />
<arg value="-u=true"/>
<arg value="-o" />
<arg value="src/i2p.chromium.usability.profile/extensions/ublock.js.crx" />
</exec>
<exec executable="crx3" failonerror="true">
<arg value="download"/>
<arg value="ammoloihpcbognfddfjcljgembpibcmb" />
<arg value="-u=true"/>
<arg value="-o" />
<arg value="src/i2p.chromium.usability.profile/extensions/jshelter.js.crx" />
</exec>
<exec executable="crx3" failonerror="true">
<arg value="download"/>
<arg value="njdfdhgcmkocbgbhcioffdbicglldapd" />
<arg value="-u=true"/>
<arg value="-o" />
<arg value="src/i2p.chromium.usability.profile/extensions/localcdn.js.crx" />
</exec>-->
<exec executable="echo" failonerror="true" append="false" output="src/i2p.chromium.usability.profile/version.md">
<arg value="Profile Version" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.usability.profile/version.md">
<arg value="===============" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.usability.profile/version.md">
<arg value="" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.usability.profile/version.md">
<arg value="${release.number}-${build.number}" />
</exec>
<exec executable="echo" failonerror="true" append="true" output="src/i2p.chromium.usability.profile/version.md">
<arg value="" />
</exec>
</target>
<target name="i2pFirefoxBaseProfile" depends="buildNum,i2pFirefoxBaseUserJs"> <target name="i2pFirefoxBaseProfile" depends="buildNum,i2pFirefoxBaseUserJs">
<mkdir dir="src/i2p.firefox.base.profile/extensions/" /> <mkdir dir="src/i2p.firefox.base.profile/extensions/" />
<copy file="src/prefs.js" tofile="src/i2p.firefox.base.profile/prefs.js" /> <copy file="src/prefs.js" tofile="src/i2p.firefox.base.profile/prefs.js" />

View File

@ -9,7 +9,7 @@ jpackage --verbose \
--type rpm \ --type rpm \
--linux-menu-group "Network;WebBrowser;P2P" \ --linux-menu-group "Network;WebBrowser;P2P" \
--linux-app-category "Network" \ --linux-app-category "Network" \
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \ --linux-package-deps "firefox|firefox-esr|librewolf|icecat" \
--linux-shortcut \ --linux-shortcut \
--license-file LICENSE.md \ --license-file LICENSE.md \
--name i2pbrowser \ --name i2pbrowser \

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Tue May 20 15:44:11 EDT 2025 #Tue May 20 20:19:14 EDT 2025
build.number=826 build.number=827

View File

@ -60,8 +60,6 @@
<jar destfile="build/i2pfirefox-plugin.jar" basedir="./build/obj" includes="**/*.class" > <jar destfile="build/i2pfirefox-plugin.jar" basedir="./build/obj" includes="**/*.class" >
<fileset file="i2p.firefox.base.profile.zip" /> <fileset file="i2p.firefox.base.profile.zip" />
<fileset file="i2p.firefox.usability.profile.zip" /> <fileset file="i2p.firefox.usability.profile.zip" />
<fileset file="i2p.chromium.base.profile.zip" />
<fileset file="i2p.chromium.usability.profile.zip" />
<fileset file="icon.png" /> <fileset file="icon.png" />
</jar> </jar>
</target> </target>
@ -70,8 +68,6 @@
<jar destfile="build/i2pfirefox.jar" basedir="./build/obj" includes="**/*.class" > <jar destfile="build/i2pfirefox.jar" basedir="./build/obj" includes="**/*.class" >
<fileset file="i2p.firefox.base.profile.zip" /> <fileset file="i2p.firefox.base.profile.zip" />
<fileset file="i2p.firefox.usability.profile.zip" /> <fileset file="i2p.firefox.usability.profile.zip" />
<fileset file="i2p.chromium.base.profile.zip" />
<fileset file="i2p.chromium.usability.profile.zip" />
<fileset file="icon.png" /> <fileset file="icon.png" />
</jar> </jar>
</target> </target>

View File

@ -24,10 +24,8 @@ public class I2PBrowser extends I2PGenericUnsafeBrowser {
private final I2PFirefox i2pFirefox = new I2PFirefox(); private final I2PFirefox i2pFirefox = new I2PFirefox();
private final I2PGenericUnsafeBrowser i2pGeneral = private final I2PGenericUnsafeBrowser i2pGeneral =
new I2PGenericUnsafeBrowser(); new I2PGenericUnsafeBrowser();
public boolean firefox = false; public boolean firefox = true;
public boolean chromium = false;
public boolean generic = false; public boolean generic = false;
public boolean chromiumFirst = false;
public boolean usability = false; public boolean usability = false;
public int privateBrowsing = 0; public int privateBrowsing = 0;
private boolean outputConfig = false; private boolean outputConfig = false;
@ -178,9 +176,6 @@ public class I2PBrowser extends I2PGenericUnsafeBrowser {
if (arg.equals("-private")) { if (arg.equals("-private")) {
this.privateBrowsing = 1; this.privateBrowsing = 1;
} }
if (arg.equals("-chromium")) {
this.chromium = true;
}
if (arg.equals("-firefox")) { if (arg.equals("-firefox")) {
this.firefox = true; this.firefox = true;
} }
@ -209,8 +204,6 @@ public class I2PBrowser extends I2PGenericUnsafeBrowser {
} }
} }
} }
if (!this.chromium)
this.firefox = true;
} }
return visitURL; return visitURL;
} }