Compare commits

...

7 commits

Author SHA1 Message Date
oneflux
9ba29bd17a remove conditional logic for other OSs 2025-04-23 18:43:23 -07:00
oneflux
ead21eb93e remove mac, windows fontconfigs 2025-04-23 18:30:20 -07:00
oneflux
f02099f214 remove mac, windows fonts 2025-04-23 18:27:15 -07:00
oneflux
0d591bc5a5 disable Firefox Monitor 2025-04-23 18:18:15 -07:00
oneflux
e443681c97 ensure HTTPS connection 2025-04-23 18:16:00 -07:00
oneflux
46744d89b8 clear cookies on shutdown 2025-04-23 18:13:52 -07:00
oneflux
b759f8c0a2 clean up config file 2025-04-23 18:11:43 -07:00
511 changed files with 21 additions and 357 deletions

View file

@ -1,154 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
**DO NOT EDIT THIS FILE!**
This file sets Tor Browser's bundled fonts as the only available system fonts
and standardizes rendering settings.
Any changes might deanonymize you, or expose you to fingerprinting vectors.
-->
<!--
Derived from fonts.conf.in of Fontconfig.
Copyright © 2000,2001,2002,2003,2004,2006,2007 Keith Packard
Copyright © 2005 Patrick Lam
Copyright © 2009 Roozbeh Pournader
Copyright © 2008,2009 Red Hat, Inc.
Copyright © 2008 Danilo Šegan
Copyright © 2012 Google, Inc.
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of the author(s) not be used in
advertising or publicity pertaining to distribution of the software without
specific, written prior permission. The authors make no
representations about the suitability of this software for any purpose. It
is provided "as is" without express or implied warranty.
THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
-->
<fontconfig>
<!-- Font directory list -->
<dir prefix="cwd">fonts</dir>
<!--
Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
<match target="pattern">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>monospace</string>
</edit>
</match>
<!--
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans serif</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>sans-serif</string>
</edit>
</match>
<!--
Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>sans-serif</string>
</edit>
</match>
<!--
Set our default generic families.
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Helvetica</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Times</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Menlo</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>cursive</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Apple Chancery</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>fantasy</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Zapfino</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>system-ui</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>System Font</string>
</edit>
</match>
<!-- Font cache directory list -->
<cachedir prefix="xdg">fontconfig</cachedir>
<config>
<!--
Rescan configuration every 30 seconds when FcFontSetList is called
-->
<rescan>
<int>30</int>
</rescan>
</config>
<!-- Standardize rendering settings. -->
<match target="pattern">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
<edit name="rgba" mode="assign"><const>none</const></edit>
</match>
</fontconfig>

View file

@ -1,139 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
**DO NOT EDIT THIS FILE!**
This file sets Tor Browser's bundled fonts as the only available system fonts
and standardizes rendering settings.
Any changes might deanonymize you, or expose you to fingerprinting vectors.
-->
<!--
Derived from fonts.conf.in of Fontconfig.
Copyright © 2000,2001,2002,2003,2004,2006,2007 Keith Packard
Copyright © 2005 Patrick Lam
Copyright © 2009 Roozbeh Pournader
Copyright © 2008,2009 Red Hat, Inc.
Copyright © 2008 Danilo Šegan
Copyright © 2012 Google, Inc.
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of the author(s) not be used in
advertising or publicity pertaining to distribution of the software without
specific, written prior permission. The authors make no
representations about the suitability of this software for any purpose. It
is provided "as is" without express or implied warranty.
THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
-->
<fontconfig>
<!-- Font directory list -->
<dir prefix="cwd">fonts</dir>
<!--
Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
<match target="pattern">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>monospace</string>
</edit>
</match>
<!--
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans serif</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>sans-serif</string>
</edit>
</match>
<!--
Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>sans-serif</string>
</edit>
</match>
<!--
Set our default generic families.
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Arial</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Times New Roman</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Consolas</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>system-ui</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Segoe UI</string>
</edit>
</match>
<!-- Font cache directory list -->
<cachedir prefix="xdg">fontconfig</cachedir>
<config>
<!--
Rescan configuration every 30 seconds when FcFontSetList is called
-->
<rescan>
<int>30</int>
</rescan>
</config>
<!-- Standardize rendering settings. -->
<match target="pattern">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
<edit name="rgba" mode="assign"><const>none</const></edit>
</match>
</fontconfig>

View file

@ -1,18 +0,0 @@
DO NOT MODIFY THE CONTENTS OF THIS DIRECTORY
Any adjustment to bundled fonts will result in an altered fingerprint. Font
fingerprinting is more than just detecting what fonts you have, it also includes
font fallbacks and characters (unicode code points) and any change in those can
be measured.
SOURCES:
- Linux fonts are from TOR Browser bundle
- Windows fonts are from Windows 11 22H2.
- Mac OS fonts are from macOS Sonoma.
Disclaimer:
This project utilizes copyrighted fonts solely for academic and research purposes. The fonts used in this project are the intellectual property of their respective owners. No commercial use or distribution of these fonts is intended or permitted. All rights to the fonts are retained by their respective copyright holders. If you wish to use these fonts for any other purpose, please contact the copyright owners for appropriate permissions. If you wish a font to be removed from this repository, please open an issue.

View file

@ -1,29 +0,0 @@
#!/bin/bash
# Simple bash script to reencode the font with fontforge
# Usage: <script> <fonts path>
# Path to the directory containing font files
FONT_DIR="$1"
# FontForge script to open and generate a new font file
FONTFORGE_SCRIPT=$(cat << 'EOF'
Open($1)
Generate($2)
Close()
EOF
)
# Loop through all .ttf and .otf files in the directory
for INPUT_FONT in "$FONT_DIR"/*.{ttf,otf}; do
# Check if the file exists to avoid errors if no .ttf or .otf files are found
if [[ -f "$INPUT_FONT" ]]; then
# Determine the output file name
OUTPUT_FONT="${INPUT_FONT%.*}_cleaned.${INPUT_FONT##*.}"
# Run the FontForge script
fontforge -lang=ff -c "$FONTFORGE_SCRIPT" "$INPUT_FONT" "$OUTPUT_FONT"
echo "Cleaned font generated: $OUTPUT_FONT"
fi
done

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more