aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml21
-rw-r--r--.github/workflows/codeql-analysis.yml70
-rw-r--r--README.md2
-rw-r--r--src/assets/images/libredirect.svg103
-rw-r--r--src/assets/javascripts/helpers/google-translate.js8
5 files changed, 181 insertions, 23 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index 7881def2..00000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-name: Builds, signs and publishes the WebExtension
-on:
- push:
- branches:
- - master
-
-jobs:
- publish-to-amo:
- name: Build and publish the extension
- runs-on: ubuntu-latest
- steps:
- - name: Pull and checkout source
- uses: actions/checkout@master
-
- - name: Sign the web-ext
- uses: saphareas/sign-web-extension-action@master
- with:
- web-ext-id: "{your extension uuid}"
- sign-listed: false
- amo-api-key: ${{ secrets.AMO_API_KEY }}
- amo-api-secret: ${{ secrets.AMO_API_SECRET }}
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 00000000..afed137e
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,70 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [ master ]
+ schedule:
+ - cron: '43 18 * * 3'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: [ 'javascript' ]
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v1
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
+ # If this step fails, then you should remove it and run the build manually (see below)
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v1
+
+ # â„šī¸ Command-line programs to run using the OS shell.
+ # 📚 https://git.io/JvXDl
+
+ # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines
+ # and modify them (or add more) to build your code if your project
+ # uses a compiled language
+
+ #- run: |
+ # make bootstrap
+ # make release
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v1
diff --git a/README.md b/README.md
index acd468e5..b215c3a6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# ![privacy-redirect](src/assets/images/logo-small.png)
+# ![privacy-redirect](src/assets/images/libredirect.svg)
[![Awesome Humane Tech](https://raw.githubusercontent.com/humanetech-community/awesome-humane-tech/main/humane-tech-badge.svg?sanitize=true)](https://github.com/humanetech-community/awesome-humane-tech)
diff --git a/src/assets/images/libredirect.svg b/src/assets/images/libredirect.svg
new file mode 100644
index 00000000..0eb5909f
--- /dev/null
+++ b/src/assets/images/libredirect.svg
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="333.36893mm"
+ height="333.3689mm"
+ viewBox="0 0 333.36893 333.3689"
+ version="1.1"
+ id="svg5"
+ inkscape:export-filename="/home/parsarch/bitmap.png"
+ inkscape:export-xdpi="4.8200002"
+ inkscape:export-ydpi="4.8200002"
+ inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
+ sodipodi:docname="libredirect.svg"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview
+ id="namedview7"
+ pagecolor="#272727"
+ bordercolor="#ffffff"
+ borderopacity="1"
+ inkscape:pageshadow="0"
+ inkscape:pageopacity="0"
+ inkscape:pagecheckerboard="false"
+ inkscape:document-units="mm"
+ showgrid="false"
+ inkscape:snap-bbox="true"
+ inkscape:bbox-paths="true"
+ inkscape:bbox-nodes="true"
+ inkscape:snap-bbox-edge-midpoints="true"
+ inkscape:snap-bbox-midpoints="true"
+ inkscape:snap-page="true"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0"
+ showborder="true"
+ inkscape:zoom="0.31892536"
+ inkscape:cx="-112.87907"
+ inkscape:cy="421.72876"
+ inkscape:window-width="1920"
+ inkscape:window-height="1080"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="layer2"
+ inkscape:snap-global="true"
+ showguides="true"
+ inkscape:guide-bbox="true"
+ inkscape:object-paths="true"
+ inkscape:snap-intersection-paths="true"
+ inkscape:snap-smooth-nodes="true" />
+ <defs
+ id="defs2" />
+ <g
+ inkscape:label="canvas"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(-5.29776,-1.5258789e-5)"
+ sodipodi:insensitive="true">
+ <rect
+ style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:5.29775;stop-color:#000000"
+ id="rect5300"
+ width="333.36893"
+ height="333.3689"
+ x="5.29776"
+ y="1.5258789e-05" />
+ </g>
+ <g
+ inkscape:groupmode="layer"
+ id="layer2"
+ inkscape:label="contents"
+ transform="translate(0,-1.5258789e-5)">
+ <rect
+ style="fill:#000000;fill-opacity:1;stroke-width:5.29904;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
+ id="rect15885"
+ width="333.36893"
+ height="333.3689"
+ x="0"
+ y="1.5258789e-05"
+ ry="0" />
+ <path
+ id="rect10261"
+ 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" />
+ <rect
+ style="fill:#fbc117;fill-opacity:1;stroke-width:9.25578;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
+ id="rect8504"
+ width="211.97903"
+ height="211.97903"
+ x="-105.98952"
+ y="129.73819"
+ transform="matrix(0.70710753,-0.70710617,0.70710753,0.70710617,0,0)"
+ ry="11.988618" />
+ <path
+ style="fill:#000000;fill-opacity:1;stroke-width:11.7733;stroke-linejoin:bevel;paint-order:stroke markers fill;stop-color:#000000"
+ 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" />
+ </g>
+</svg>
diff --git a/src/assets/javascripts/helpers/google-translate.js b/src/assets/javascripts/helpers/google-translate.js
index 98bd09d3..1fcd18b7 100644
--- a/src/assets/javascripts/helpers/google-translate.js
+++ b/src/assets/javascripts/helpers/google-translate.js
@@ -1,6 +1,12 @@
const targets = ["translate.google.com", "translate.google.no"];
-const redirects = ["https://translate.metalune.xyz"];
+const targets = [
+ "simplytranslate.org",
+ "st.alefvanoon.xyz",
+ "translate.josias.dev",
+ "translate.namazso.eu",
+ "translate.riverside.rocks",
+];
export default {
targets,