Clean up various minor issues (#506)

* Fix spelling and capitalisation errors

Suggested-by: codespell & spellintian

* Drop inkscape:export-filename attributes from svg elements in SVG files

These paths represent privacy leaks and are incorrect on other systems.
This commit is contained in:
Paul Wise 2022-10-26 04:00:31 +08:00 committed by GitHub
parent 9d3239c81f
commit ac9190cf3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 7 additions and 25 deletions

View File

@ -27,6 +27,6 @@ Libredirect version:
<!--Just drag and drop any screenshots or videos you have of the issue below-->
<br>
<!--Put an "x" inbetween the brackets to confirm-->
<!--Put an "x" between the brackets to confirm-->
- [ ] I have checked on codeberg and github and can confirm this issue is not a duplicate.

View File

@ -5,11 +5,11 @@ labels:
- "Kind: Feature"
---
## Describe your current issue/inconvinience
## Describe your current issue/inconvenience
## Explain how this new feature will solve this
<br>
<!--Put an "x" inbetween the brackets to confirm-->
<!--Put an "x" between the brackets to confirm-->
- [ ] I have checked on codeberg and github and can confirm this issue is not a duplicate.

View File

@ -6,7 +6,7 @@
OpenStreetMap (OSM) reverse geocoding, done via the [OSM Nomantim API](https://nominatim.org/release-docs/develop/api/Overview/),
used as part of OSM redirects, which can be disabled by toggling the OSM redirects.
- It also connects to [this url](https://raw.githubusercontent.com/libredirect/libredirect/master/src/instances/data.json) to update the Instances List. Though this only gets triggered when the user presses the `Update Instances` button.
- For bibliogram instances. To set a cookie you should send an http request to the server as the server stores settings values itself and gives you a token to access them.
- For bibliogram instances. To set a cookie you should send an HTTP request to the server as the server stores settings values itself and gives you a token to access them.
## Future Changes

View File

@ -70,7 +70,7 @@ npm update
npm install
```
To generate html that uses `config.json` (needed to develop/build the extention), run:
To generate HTML that uses `config.json` (needed to develop/build the extension), run:
```
npm run ejs
@ -78,7 +78,7 @@ npm run ejs
Afterwards, you will need to run it if you modify `config.json` or any files ending with .ejs.
### Build the extention zip archive:
### Build the extension zip archive:
```
npm run build

View File

@ -3,7 +3,7 @@
- Download the latest `.crx` file: [libredirect-2.3.4.crx](https://github.com/libredirect/libredirect/releases/download/v2.3.4/libredirect-2.3.4.crx)
- Open `chrome://extensions`
- Enable `dev mode`
- Rerfesh the page
- Refresh the page
- Drag and drop the `.crx` file to the page
Updates are automatic

View File

@ -7,7 +7,6 @@
viewBox="0 0 60.519775 21.431252"
version="1.1"
id="svg5"
inkscape:export-filename="/home/esmail/Desktop/badge-chromium.png"
inkscape:export-xdpi="128"
inkscape:export-ydpi="128"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
@ -103,7 +102,6 @@
y="151.16965"
rx="2.0848312"
ry="2.0902083"
inkscape:export-filename="/home/esmail/Desktop/rect26364.png"
inkscape:export-xdpi="115.2"
inkscape:export-ydpi="115.2" />
<image
@ -114,13 +112,11 @@
id="image832"
x="137.35938"
y="151.16965"
inkscape:export-filename="/home/esmail/Desktop/rect26364.png"
inkscape:export-xdpi="115.2"
inkscape:export-ydpi="115.2" />
<g
id="g872"
transform="matrix(0.03495208,0,0,0.03504223,193.54644,152.64989)"
inkscape:export-filename="/home/esmail/Desktop/rect26364.png"
inkscape:export-xdpi="115.2"
inkscape:export-ydpi="115.2"
style="stroke-width:0.760472">
@ -172,7 +168,6 @@
x="214.87363"
y="159.88052"
id="text5452"
inkscape:export-filename="/home/esmail/Desktop/rect26364.png"
inkscape:export-xdpi="115.2"
inkscape:export-ydpi="115.2"
transform="scale(0.99871289,1.0012888)"><tspan
@ -187,7 +182,6 @@
x="214.51498"
y="166.31212"
id="text5746"
inkscape:export-filename="/home/esmail/Desktop/rect26364.png"
inkscape:export-xdpi="115.2"
inkscape:export-ydpi="115.2"
transform="scale(0.99871289,1.0012888)"><tspan

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -7,7 +7,6 @@
viewBox="0 0 423.33333 105.83333"
version="1.1"
id="svg5"
inkscape:export-filename="/home/esmail/Desktop/libredirect-cover-photo.png"
inkscape:export-xdpi="115.2"
inkscape:export-ydpi="115.2"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"

Before

Width:  |  Height:  |  Size: 527 KiB

After

Width:  |  Height:  |  Size: 527 KiB

View File

@ -7,7 +7,6 @@
viewBox="0 0 1701.7863 333.36884"
version="1.1"
id="svg5"
inkscape:export-filename="/home/parsarch/bitmap.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
@ -78,14 +77,12 @@
style="fill:#000000;fill-opacity:1;stroke-width:10.6446;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
d="m 166.68447,1.5258789e-5 c -3.52434,0 -7.04775,1.350880241211 -9.74829,4.051407541211 L 4.050805,156.93523 c -5.4010733,5.40105 -5.4010733,14.09797 0,19.49903 l 152.885375,152.8838 c 5.40106,5.40105 14.09676,5.40105 19.49783,0 l 152.88412,-152.8838 c 5.40106,-5.40106 5.40106,-14.09798 0,-19.49903 L 176.43401,4.0514228 C 173.73349,1.3508955 170.2088,1.5258789e-5 166.68447,1.5258789e-5 Z"
sodipodi:nodetypes="sccccccscs"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<path
id="path1147"
style="fill:#fbc118;fill-opacity:1;stroke-width:10.6446;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
d="m 166.68447,1.5258789e-5 c -3.52434,0 -7.04775,1.350880241211 -9.74829,4.051407541211 L 4.050805,156.93523 c -5.4010733,5.40105 -5.4010733,14.09797 0,19.49903 l 152.885375,152.8838 c 5.40106,5.40105 14.09676,5.40105 19.49783,0 l 152.88412,-152.8838 c 5.40106,-5.40106 5.40106,-14.09798 0,-19.49903 L 176.43401,4.0514228 C 173.73349,1.3508955 170.2088,1.5258789e-5 166.68447,1.5258789e-5 Z m 0,10.719943741211 c 3.2977,0 6.5954,1.263101 9.12228,3.78996 L 318.85962,157.56247 c 5.05373,5.05374 5.05373,13.1908 0,18.24454 L 175.80675,318.85957 c -5.05375,5.05374 -13.19085,5.05374 -18.24457,0 L 14.509325,175.80701 c -5.0537517,-5.05374 -5.0537517,-13.1908 0,-18.24454 L 157.56218,14.509919 c 2.52687,-2.526859 5.82459,-3.78996 9.12229,-3.78996 z"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<rect
@ -97,7 +94,6 @@
y="129.73819"
transform="matrix(0.70710753,-0.70710617,0.70710753,0.70710617,0,0)"
ry="11.988618"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<path
@ -105,7 +101,6 @@
d="m 184.9484,150.31257 c -47.94368,20.63825 -46.95176,86.74351 -46.95176,86.74351 l -33.49195,2e-5 c 0,0 -0.43631,-96.71487 73.1579,-116.43438 -6.91258,-13.8541 -10.36137,-19.42664 -5.93301,-21.619621 5.93589,-2.939527 68.02199,11.715951 70.34687,20.392521 2.28516,8.52832 -46.82723,53.14308 -53.65602,53.14308 -5.85198,0 -4.22909,-7.02227 -3.47216,-22.22513 z"
id="path983"
sodipodi:nodetypes="ccccssscc"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<g

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -7,7 +7,6 @@
viewBox="0 0 23.940294 8.4666664"
version="1.1"
id="svg5"
inkscape:export-filename="/mnt/main_storage/Git/libredirect/img/patreon.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -7,7 +7,6 @@
viewBox="0 0 333.36893 333.3689"
version="1.1"
id="svg5"
inkscape:export-filename="/home/parsarch/bitmap.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997"
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
@ -78,14 +77,12 @@
style="fill:#000000;fill-opacity:1;stroke-width:10.6446;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
d="m 166.68447,1.5258789e-5 c -3.52434,0 -7.04775,1.350880241211 -9.74829,4.051407541211 L 4.050805,156.93523 c -5.4010733,5.40105 -5.4010733,14.09797 0,19.49903 l 152.885375,152.8838 c 5.40106,5.40105 14.09676,5.40105 19.49783,0 l 152.88412,-152.8838 c 5.40106,-5.40106 5.40106,-14.09798 0,-19.49903 L 176.43401,4.0514228 C 173.73349,1.3508955 170.2088,1.5258789e-5 166.68447,1.5258789e-5 Z"
sodipodi:nodetypes="sccccccscs"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<path
id="path1147"
style="fill:#fbc118;fill-opacity:1;stroke-width:10.6446;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
d="m 166.68447,1.5258789e-5 c -3.52434,0 -7.04775,1.350880241211 -9.74829,4.051407541211 L 4.050805,156.93523 c -5.4010733,5.40105 -5.4010733,14.09797 0,19.49903 l 152.885375,152.8838 c 5.40106,5.40105 14.09676,5.40105 19.49783,0 l 152.88412,-152.8838 c 5.40106,-5.40106 5.40106,-14.09798 0,-19.49903 L 176.43401,4.0514228 C 173.73349,1.3508955 170.2088,1.5258789e-5 166.68447,1.5258789e-5 Z m 0,10.719943741211 c 3.2977,0 6.5954,1.263101 9.12228,3.78996 L 318.85962,157.56247 c 5.05373,5.05374 5.05373,13.1908 0,18.24454 L 175.80675,318.85957 c -5.05375,5.05374 -13.19085,5.05374 -18.24457,0 L 14.509325,175.80701 c -5.0537517,-5.05374 -5.0537517,-13.1908 0,-18.24454 L 157.56218,14.509919 c 2.52687,-2.526859 5.82459,-3.78996 9.12229,-3.78996 z"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<rect
@ -97,7 +94,6 @@
y="129.73819"
transform="matrix(0.70710753,-0.70710617,0.70710753,0.70710617,0,0)"
ry="11.988618"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
<path
@ -105,7 +101,6 @@
d="m 184.9484,150.31257 c -47.94368,20.63825 -46.95176,86.74351 -46.95176,86.74351 l -33.49195,2e-5 c 0,0 -0.43631,-96.71487 73.1579,-116.43438 -6.91258,-13.8541 -10.36137,-19.42664 -5.93301,-21.619621 5.93589,-2.939527 68.02199,11.715951 70.34687,20.392521 2.28516,8.52832 -46.82723,53.14308 -53.65602,53.14308 -5.85198,0 -4.22909,-7.02227 -3.47216,-22.22513 z"
id="path983"
sodipodi:nodetypes="ccccssscc"
inkscape:export-filename="/home/parsarch/path983.png"
inkscape:export-xdpi="78.019997"
inkscape:export-ydpi="78.019997" />
</g>

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB