43 Commits

Author SHA1 Message Date
Thomas Rientjes
6d6a7b68ad Bump version to 2.0.2 2018-01-09 01:38:08 -03:00
Thomas Rientjes
74e6c6fa98 Refactor options page logic 2018-01-08 02:31:18 -03:00
Thomas Rientjes
440def810d Remove unused code segment 2018-01-08 00:00:01 -03:00
Thomas Rientjes
cd0c06c5bc Update temporary list of tainted domains 2018-01-07 22:41:28 -03:00
Thomas Rientjes
be533e8953 Update internal helper module 2018-01-07 22:22:23 -03:00
Thomas Rientjes
7ec143efbf Refactor options page logic 2018-01-07 22:17:37 -03:00
Thomas Rientjes
bce5e9f58e Refactor popup panel logic 2018-01-07 21:06:49 -03:00
Thomas Rientjes
3b941ed077 Update manifest.json 2018-01-07 19:27:20 -03:00
Thomas Rientjes
449bf8c064 Remove unused code segments 2017-12-10 23:15:59 -03:00
Thomas Rientjes
861ba95dee Improve cross-browser compatibility 2017-12-10 18:27:21 -03:00
Thomas Rientjes
b3931febc2 Improve domain parsing logic 2017-12-10 18:17:11 -03:00
Thomas Rientjes
391eb4e6d2 Add internal API wrapper module 2017-12-10 17:58:09 -03:00
Thomas Rientjes
91f32afa59 Upgrade existing modules 2017-12-10 17:54:03 -03:00
Thomas Rientjes
7883d5f2c7 Add support for Korean 2017-11-30 17:35:22 -03:00
Thomas Rientjes
62bd811bbf Update existing localizations 2017-11-30 17:27:07 -03:00
Thomas Rientjes
c9c2d4ddc1 Bump version to 2.0.1 2017-11-15 17:25:58 -03:00
Thomas Rientjes
208a17e30d Merge pull request #219 from da2x/master
Further optimize application icon compression
2017-11-13 18:43:03 -03:00
Thomas Rientjes
5ed5765f29 Update temporary list of tainted domains 2017-11-13 15:34:01 -03:00
Thomas Rientjes
cd67505cbb Update existing localizations 2017-11-13 15:28:31 -03:00
Thomas Rientjes
040fd8f9bd Add support for Serbian (Cyrillic) 2017-11-13 15:27:35 -03:00
Thomas Rientjes
e33f5c85f4 Add support for Brazilian Portuguese 2017-11-13 15:25:25 -03:00
Thomas Rientjes
edff269b25 Update release notes system 2017-11-09 15:28:00 -03:00
Thomas Rientjes
87bf73f97b Fix #227 by revising request sanitation logic 2017-11-07 22:16:55 -03:00
Thomas Rientjes
51183abe58 Fix #214 by revising popup panel logic 2017-11-07 20:20:00 -03:00
Thomas Rientjes
4e9dcea6ab Update audit script ESLint configuration file 2017-11-06 00:49:45 -03:00
Thomas Rientjes
2b67d92140 Refactor existing codebase 2017-11-06 00:04:30 -03:00
Thomas Rientjes
009902d692 Update temporary list of tainted domains 2017-11-04 15:04:26 -03:00
Thomas Rientjes
cc928e3148 Add ESLint configuration files 2017-11-02 22:29:14 -03:00
Thomas Rientjes
7186599ff7 Apply minor changes to audit script 2017-11-02 19:27:22 -03:00
Thomas Rientjes
bda683e584 Refactor existing codebase 2017-11-02 18:36:39 -03:00
Daniel Aleksandersen
27ad608d91 Optimize PNG compression
Apply Zopfli lossless compression (`zopflipng -m`).
2017-10-23 16:06:13 +02:00
Thomas Rientjes
770e6fb54d Bump version to 2.0.0 2017-10-12 16:14:47 -03:00
Thomas Rientjes
2bf0bfe669 Improve request sanitation mechanism 2017-10-12 14:57:09 -03:00
Thomas Rientjes
4b8167686d Implement release notes system 2017-10-12 14:50:56 -03:00
Thomas Rientjes
280cd3f105 Implement extension version label 2017-10-08 00:11:16 -03:00
Thomas Rientjes
906ba1ffd9 Update existing localizations 2017-10-08 00:00:06 -03:00
Thomas Rientjes
45824cb25b Merge pull request #205 from borsothy/HungarianSupport
Add support for Hungarian
2017-10-07 23:54:15 -03:00
Thomas Rientjes
e3d9163ff9 Implement a temporary list of tainted domains 2017-10-07 22:55:50 -03:00
Gergely Borsothy-Gaal
5e4dbe4a74 Added support for Hungarian. 2017-10-07 23:15:24 +02:00
Thomas Rientjes
deed173dd1 Add support for Estonian 2017-09-30 01:56:22 -04:00
Thomas Rientjes
295a545a65 Update the Indonesian localization 2017-09-30 01:49:26 -04:00
Thomas Rientjes
5399d86af7 Merge pull request #203 from jomo/fix-popup-width
Fix #202 by allowing variable popup widths
2017-09-28 16:25:51 -04:00
jomo
87b2f51e00 fix #202
Popup width is fixed to 320px when the extension
is pinned to overflow menu. The fixed width might
change in the future, but the popup is responsive
so we're only setting a max-width rather than a
fixed width.
2017-09-28 06:29:50 +02:00
59 changed files with 2668 additions and 1456 deletions

6
.eslintignore Normal file
View File

@@ -0,0 +1,6 @@
_locales
audit
icons
modules/*
!modules/internal
resources

166
.eslintrc Normal file
View File

@@ -0,0 +1,166 @@
{
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"extends": "eslint:recommended",
"globals": {
"Address": true,
"files": true,
"helpers": true,
"interceptor": true,
"mappings": true,
"requestAnalyzer": true,
"Resource": true,
"resources": true,
"Setting": true,
"stateManager": true,
"WebRequest": true,
"Whitelist": true,
"wrappers": true
},
"overrides": {
"files": [
"core/constants.js",
"core/files.js",
"core/mappings.js",
"core/resources.js"
],
"rules": {
"no-unused-vars": "off"
}
},
"rules": {
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"camelcase": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"consistent-this": "error",
"curly": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"function-paren-newline": "error",
"generator-star-spacing": "error",
"indent": [
"error",
4
],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": [
"error",
"unix"
],
"new-cap": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-confusing-arrow": "error",
"no-continue": "error",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": [
"error", {
"max": 1,
"maxEOF": 1,
"maxBOF": 0
}
],
"max-len": [
"error", {
"code": 120
}
],
"no-negated-condition": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-tabs": "error",
"no-ternary": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-void": "error",
"no-warning-comments": "warn",
"no-whitespace-before-property": "error",
"no-with": "error",
"object-curly-spacing": "error",
"object-shorthand": [
"error",
"consistent-as-needed"
],
"operator-assignment": "error",
"operator-linebreak": "error",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"quote-props": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quotes": [
"error",
"single"
],
"rest-spread-spacing": "error",
"require-await": "error",
"semi": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"strict": [
"error",
"global"
],
"switch-colon-spacing": "error",
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": "error",
"vars-on-top": "error",
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": "error"
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Beskytter dig imod sporing af \"gratis\", centraliserede indholdsleverandører.",
"description":"Extension description."
"extensionDescription": {
"message": "Beskytter dig imod sporing af \"gratis\", centraliserede indholdsleverandører.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Deaktiver beskyttelse for dette websted",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Deaktiver beskyttelse for dette websted",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Aktiver beskyttelse",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Aktiver beskyttelse",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Optælling af lokalt leverede ressourcer",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Optælling af lokalt leverede ressourcer",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Antal injektioner af lokale ressourcer siden installation.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Antal injektioner af lokale ressourcer siden installation.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Indstillinger",
"description":"Options title."
"optionsTitle": {
"message": "Indstillinger",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Vis antal af injektioner på ikon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Vis antal af injektioner på ikon",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Viser antallet af injicerede ressourcer på udvidelsens ikon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Viser antallet af injicerede ressourcer på udvidelsens ikon.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Bloker forespørgsler efter manglende ressourcer",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Bloker forespørgsler efter manglende ressourcer",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Annullerer en forespørgsel hvis den forespurgte ressource ikke findes lokalt.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Annullerer en forespørgsel hvis den forespurgte ressource ikke findes lokalt.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Deaktiver forhåndshentning af link",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Deaktiver forhåndshentning af link",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Forhindrer ikke-tilladte forespørgsler i at blive lækket til indholdsleverandør-netværk (CDN).",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Forhindrer ikke-tilladte forespørgsler i at blive lækket til leverandør-netværk.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Fjern metadata fra tilladte forespørgsler",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Fjern metadata fra tilladte forespørgsler",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Sletter følsomme data fra tilladte CDN-forespørgsler for at mindste eksponeringen.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Sletter følsomme data fra tilladte CDN-forespørgsler for at mindste eksponeringen.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Udeluk disse domæner fra inspektion",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Udeluk disse domæner fra inspektion",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Tilføj domæner der ikke skal inspiceres. Separer flere med semikolon (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Tilføj domæner der ikke skal inspiceres. Separer flere med semikolon (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Avanceret",
"description":"Advanced label."
"advancedLabel": {
"message": "Avanceret",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Schützt vor Tracking durch \"gratis\", zentralisiertes, Abliefern von Content.",
"description":"Extension description."
"extensionDescription": {
"message": "Schützt vor Tracking durch \"gratis\", zentralisiertes, Abliefern von Content.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Schutz für diese Seite deaktivieren",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Schutz für diese Seite deaktivieren",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Schutz aktivieren",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Schutz aktivieren",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Zähler für lokal injizierte Ressourcen",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Zähler für lokal injizierte Ressourcen",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Anzahl der lokalen Injektionen von den CDN-Ressourcen seit der Installation.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Anzahl der lokalen Injektionen von den CDN-Ressourcen seit der Installation.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Einstellungen",
"description":"Options title."
"optionsTitle": {
"message": "Einstellungen",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Zeige Anzahl der Injektionen am Icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Zeige Anzahl der Injektionen am Icon",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Zeige die Anzahl der injizierten Ressourcen im Erweiterungs-Icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Zeige die Anzahl der injizierten Ressourcen im Erweiterungs-Icon.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Blockiere Anfordern fehlender Inhalte",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Blockiere Anfordern fehlender Inhalte",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Abgefangene Anforderung unterbinden, falls angeforderte Datei nicht lokal verfügbar ist.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Abgefangene Anforderung unterbinden, falls angeforderte Datei nicht lokal verfügbar ist.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Deaktiviere link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Deaktiviere link prefetching",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Verhindere, dass unerlaubte Anfragen an die CDNs durchsickern.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Verhindere, dass unerlaubte Anfragen an die CDNs durchsickern.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Entferne Metadaten von erlaubten Anfragen",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Entferne Metadaten von erlaubten Anfragen",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Lösche sensible Daten aus erlaubten CDN-Anfragen zur Verbesserung des Datenschutzes.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Lösche sensible Daten aus erlaubten CDN-Anfragen zur Verbesserung des Datenschutzes.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Domains von Prüfung ausschließen",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Domains von Prüfung ausschließen",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Gebe zu ignorierende Domains an. Trenne mehrere Einträge durch Semikolons (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Gebe zu ignorierende Domains an. Trenne mehrere Einträge durch Semikolons (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Erweitert",
"description":"Advanced label."
"advancedLabel": {
"message": "Erweitert",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Προστατεύει από παρακολούθηση μέσω \"δωρεάν\" διανομής περιεχόμενου.",
"description":"Extension description."
"extensionDescription": {
"message": "Προστατεύει από παρακολούθηση μέσω \"δωρεάν\" διανομής περιεχόμενου.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Απενεργοποίηση προστασίας για αυτή τη σελίδα",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Απενεργοποίηση προστασίας για αυτή τη σελίδα",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Ενεργοποίηση προστασίας",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Ενεργοποίηση προστασίας",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Μετρητής εμβόλιμων τοπικών πόρων",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Μετρητής εμβόλιμων τοπικών πόρων",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Ποσοστό εμβόλιμων τοπικών πόρων Δικτύων Παροχής Περιεχομένου από την στιγμή της εγκατάστασης.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Ποσοστό εμβόλιμων τοπικών πόρων Δικτύων Παροχής Περιεχομένου από την στιγμή της εγκατάστασης.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Επιλογές",
"description":"Options title."
"optionsTitle": {
"message": "Επιλογές",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Προβολή αριθμού εμβόλιμων πόρων στο εικονίδιο",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Προβολή του αριθμού των εμβόλιμων πόρων στο εικονίδιο του πρόσθετου.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Μπλοκ αιτήσεων για ανύπαρκτους πόρους",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Μπλοκ αιτήσεων για ανύπαρκτους πόρους",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Ακύρωση απομακρυσμένης αίτησης, αν ο απαιτούμενος πόρος δεν είναι τοπικά διαθέσιμος.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Ακύρωση απομακρυσμένης αίτησης, αν ο απαιτούμενος πόρος δεν είναι τοπικά διαθέσιμος.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Απενεργοποίηση πρόωρης φόρτωσης συνδέσμου",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Αποτροπή διαρροής αποκλεισμένων κλήσεων προς δίκτυα διανομής.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Διαγραφή μεταδεδομένων από επιτρεπόμενες κλήσεις",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Διαγραφή ευαίσθητων δεδομένων από CDN αιτήσεις για ενίσχυση ασφάλειας.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Εξαίρεση διευθύνσεων από επιθεωρήσεις",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Εξαίρεση διευθύνσεων από επιθεωρήσεις",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Εισαγωγή διευθύνσεων στις επιτρεπόμενες. Διαχωρίστε πολλαπλές καταχωρήσεις με ερωτηματικά (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Εισαγωγή διευθύνσεων στις επιτρεπόμενες. Διαχωρίστε πολλαπλές καταχωρήσεις με ερωτηματικά (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Για προχωρημένους",
"description":"Advanced label."
"advancedLabel": {
"message": "Για προχωρημένους",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Protects you against tracking through \"free\", centralized, content delivery.",
"description":"Extension description."
"extensionDescription": {
"message": "Protects you against tracking through \"free\", centralized, content delivery.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Disable protection for this site",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Disable protection for this site",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Enable protection",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Enable protection",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Counter for locally injected resources",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Counter for locally injected resources",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Amount of local Content Delivery Network resource injections since installation.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Amount of local Content Delivery Network resource injections since installation.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Options",
"description":"Options title."
"optionsTitle": {
"message": "Options",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Display injection counts on icon",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Show the number of injected resources on the extension icon.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Block requests for missing resources",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Block requests for missing resources",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Cancel intercepted request if the required resource is not locally available.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Cancel intercepted request if the required resource is not locally available.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Disable link prefetching",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Prevent disallowed requests from leaking out to delivery networks.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Strip metadata from allowed requests",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Erase sensitive data from allowed CDN requests for improved privacy.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Exclude domains from inspections",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Exclude domains from inspections",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Enter domains to whitelist them. Separate multiple entries with semi-colons (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Enter domains to whitelist them. Separate multiple entries with semi-colons (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Advanced",
"description":"Advanced label."
"advancedLabel": {
"message": "Advanced",
"description": "Advanced label."
}
}

70
_locales/et/messages.json Normal file
View File

@@ -0,0 +1,70 @@
{
"extensionDescription":{
"message":"Kaitseb sind \"tasuta\", tsentraliseeritud sisu edastamisest tuleneva jälitamise vastu.",
"description":"Extension description."
},
"disableProtectionTitle":{
"message":"Keela kaitse sellel saidil",
"description":"Disable protection title."
},
"enableProtectionTitle":{
"message":"Luba kaitse",
"description":"Enable protection title."
},
"amountInjectedTitle":{
"message":"Kohalikult sisestatud ressursside loendur",
"description":"Amount injected title."
},
"amountInjectedDescription":{
"message":"Kohalike sisuedastusvõrkude ressursisisestuste arv alates installimisest.",
"description":"Amount injected description."
},
"optionsTitle":{
"message":"Valikud",
"description":"Options title."
},
"showIconBadgeTitle":{
"message":"Kuva sisestuste arvu ikoonil",
"description":"Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Kuva sisestatud ressursside arvu laienduse ikoonil.",
"description":"Show icon badge description."
},
"blockMissingTitle":{
"message":"Blokeeri puuduvate ressursside taotlused",
"description":"Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Tühista kinnipüütud taotlus, kui vajaminev ressurss ei ole kohalikult saadaval.",
"description":"Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Keela lingi eellaadimine",
"description":"Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Väldi keelatud taotluste väljalekkimist edastusvõrkudele.",
"description":"Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Eemalda lubatud taotlustelt metaandmed",
"description":"Strip metadata title."
},
"stripMetadataDescription":{
"message":"Kustuta tundlikud andmed lubatud sisuedastusvõrkude taotlustest parema privaatsuse saamiseks.",
"description":"Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Välista uuritavaid domeene",
"description":"Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Sisesta domeenid, et lisada need valgesse nimekirja. Eralda mitu üksust semikoolonitega (;).",
"description":"Whitelisted domains description."
},
"advancedLabel":{
"message":"Edasijõudnuile",
"description":"Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Suojaa sinua \"ilmaisten\" keskitettyjen sisällön jakeluverkkojen jäljitykseltä.",
"description":"Extension description."
"extensionDescription": {
"message": "Suojaa sinua \"ilmaisten\" keskitettyjen sisällön jakeluverkkojen jäljitykseltä.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Poista suojaus tältä sivustolta",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Poista suojaus tältä sivustolta",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Ota suojaus käyttöön",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Ota suojaus käyttöön",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Korvatut pyynnöt",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Korvatut pyynnöt",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Korvatut sisältöpyynnöt lisäosan asennuksen jälkeen.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Korvatut sisältöpyynnöt lisäosan asennuksen jälkeen.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Asetukset",
"description":"Options title."
"optionsTitle": {
"message": "Asetukset",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Näytä kohteiden määrä kuvakkeessa",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Näytä kohteiden määrä kuvakkeessa",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Näyttää turvattujen kohteiden määrän lisäosan kuvakkeessa.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Näyttää turvattujen kohteiden määrän lisäosan kuvakkeessa.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Estä pyynnöt puuttuviin resursseihin",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Estä pyynnöt puuttuviin resursseihin",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Estää pyynnöt jos paikallista sisältöä ei ole saatavilla.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Estää pyynnöt jos paikallista sisältöä ei ole saatavilla.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Estä linkkien esihaku",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Estä linkkien esihaku",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Estä kiellettyjä sisältöpyyntöjä vuotamasta keskitettyihin jakeluverkkoihin.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Estä kiellettyjä sisältöpyyntöjä vuotamasta keskitettyihin jakeluverkkoihin.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Poista metatiedot sallituista sisältöpyynnöistä",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Poista metatiedot sallituista sisältöpyynnöistä",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Poista arkaluontoiset tiedot jakeluverkkojen sisältöpyynnöistä yksityisyyden parantamiseksi.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Poista arkaluontoiset tiedot jakeluverkkojen sisältöpyynnöistä yksityisyyden parantamiseksi.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Poissulje verkkotunnukset",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Poissulje verkkotunnukset",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Lisää verkkotunnus jottei sitä korvata. Erota rivit puolipisteellä (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Lisää verkkotunnus jottei sitä korvata. Erota rivit puolipisteellä (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Yksityiskohdat",
"description":"Advanced label."
"advancedLabel": {
"message": "Edistynyt",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"מגן עליך מפני מעקב המבוצע דרך רשתות אספקת תוכן ריכוזיות ו\"חינמיות\".",
"description":"Extension description."
"extensionDescription": {
"message": "מגן עליך מפני מעקב המבוצע דרך רשתות אספקת תוכן ריכוזיות ו\"חינמיות\".",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"נטרול ההגנה עבור אתר זה",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "נטרול ההגנה עבור אתר זה",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"הפעלת הגנה",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "הפעלת הגנה",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"מונה משאבים מקומיים שהוזרקו",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "מונה משאבים מקומיים שהוזרקו",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"כמות תוכן מקומי שהוזרק במקום רשתות אספקת תוכן מאז התקנת התוכנה.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "כמות תוכן מקומי שהוזרק במקום רשתות אספקת תוכן מאז התקנת התוכנה.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"אפשרויות",
"description":"Options title."
"optionsTitle": {
"message": "אפשרויות",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"הצג מונה הזרקות תוכן על סמל התכנה",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "הצג מונה הזרקות תוכן על סמל התכנה",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"הצג את מספר התכנים המוזרקים על סמלון התוספת.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "הצג את מספר התכנים המוזרקים על סמלון התוספת.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"חסום בקשות למשאבים חסרים",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "חסום בקשות למשאבים חסרים",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"בטל בקשה מיורטת, אם המשאב הדרוש אינו זמין באופן מקומי.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "בטל בקשה מיורטת, אם המשאב הדרוש אינו זמין באופן מקומי.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"בטל הורדה-מוקדמת של לינקים",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "בטל הורדה-מוקדמת של לינקים",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"מנע הדלפה של בקשות לא-מאושרות לתוך רשתות אספקת תכנים.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "מנע הדלפה של בקשות לא-מאושרות לתוך רשתות אספקת תכנים.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"מחק מטא-דאטה מבקשות שאושרו",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "מחק מטא-דאטה מבקשות שאושרו",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"להגברת הפרטיות, מחק מידע רגיש מבקשות מאושרות לרשתות אספקת תוכן.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "להגברת הפרטיות, מחק מידע רגיש מבקשות מאושרות לרשתות אספקת תוכן.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"אל תכלול דומיינים כחלק מהבדיקה",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "אל תכלול דומיינים כחלק מהבדיקה",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"הזן דומיינים שברצונך להוסיף לרשימת התרים. הפרד ערכים מרובים באמצעות נקודה-פסיק (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "הזן דומיינים שברצונך להוסיף לרשימת התרים. הפרד ערכים מרובים באמצעות נקודה-פסיק (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"מתקדם",
"description":"Advanced label."
"advancedLabel": {
"message": "מתקדם",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Protects you against tracking through \"free\", centralized, content delivery.",
"message":"Védelem az \"ingyenes\" centralizált content delivery hálózatok megfigyelésétől.",
"description":"Extension description."
},
"disableProtectionTitle":{
"message":"Disable protection for this site",
"message":"Védelem kikapcsolása ezen az oldalon",
"description":"Disable protection title."
},
"enableProtectionTitle":{
"message":"Enable protection",
"message":"Védelem bekapcsolása",
"description":"Enable protection title."
},
"amountInjectedTitle":{
"message":"Counter for locally injected resources",
"message":"Helyből beszúrt erőforrások számlálója",
"description":"Amount injected title."
},
"amountInjectedDescription":{
"message":"Amount of local Content Delivery Network resource injections since installation.",
"message":"Telepítés óta beszúrt helyi Content Delivery Network erőforrások száma.",
"description":"Amount injected description."
},
"optionsTitle":{
"message":"Options",
"message":"Beállítások",
"description":"Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"message":"Beszúrások számlálójának megjelenítése az ikonon",
"description":"Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"message":"A beszúrt erőforrások számának megjelenítése a bővítmény ikonján.",
"description":"Show icon badge description."
},
"blockMissingTitle":{
"message":"Block requests for missing resources",
"message":"Hiányzó erőforrások blokkolása",
"description":"Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Cancel intercepted request if the required resource is not locally available.",
"message":"Megszakított kérések blokkolása, amennyiben a kért erőforrás nem érhető el helyben.",
"description":"Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"message":"Link prefetching letiltása",
"description":"Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"message":"Letiltott kérések kiszivárgásának megakadályozása.",
"description":"Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"message":"Metaadatok törlése az engedélyezett kérésekből",
"description":"Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"message":"Érzékeny adatok törlése az engedélyezett CDN kérésekből.",
"description":"Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Exclude domains from inspections",
"message":"Domainek vizsgálatának elhagyása",
"description":"Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Enter domains to whitelist them. Separate multiple entries with semi-colons (;).",
"message":"Írj be domaineket, amik ne legyenek megvizsgálva. Az egyes elemeket pontosvesszővel (;) kell elválasztani.",
"description":"Whitelisted domains description."
},
"advancedLabel":{
"message":"Advanced",
"message":"Speciális",
"description":"Advanced label."
}
}

View File

@@ -1,6 +1,6 @@
{
"extensionDescription":{
"message":"Melindungi dari pelacakan melalui distribusi konten yang bebas dan terpusat.",
"message":"Melindungi Anda dari pelacakan distribusi konten \"gratis\" dan terpusat.",
"description":"Extension description."
},
"disableProtectionTitle":{

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Protegge dal tracciamento tramite i CDN centralizzati \"gratuiti\".",
"description":"Extension description."
"extensionDescription": {
"message": "Protegge dal tracciamento tramite i CDN centralizzati \"gratuiti\".",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Disattiva protezione per questo sito",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Disattiva protezione per questo sito",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Attiva protezione",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Attiva protezione",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Contatore per risorse iniettate localmente",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Contatore per risorse iniettate localmente",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Quantità di iniezioni di risorse dalla Rete di Distribuzione di Contenuti locale sin dall'installazione.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Quantità di iniezioni di risorse dalla Rete di Distribuzione di Contenuti locale sin dall'installazione.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Opzioni",
"description":"Options title."
"optionsTitle": {
"message": "Opzioni",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Mostra il numero di iniezioni sull'icona",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Mostra il numero di risorse iniettate sull'icona dell'estensione.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Bloccare richieste di risorse mancanti",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Bloccare richieste di risorse mancanti",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Annulla la richiesta intercettata se la risorsa necessaria non è disponibile localmente.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Annulla la richiesta intercettata se la risorsa necessaria non è disponibile localmente.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Disabilita il prefetching dei link",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Impedisci alle richieste vietate di informare le reti di consegna.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Elimina i metadata dalle richieste consentite",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Cancella i dati sensibili dalle richieste CDN consentite per una migliore privacy.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Escludere domini dalle ispezioni",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Escludere domini dalle ispezioni",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Inserire domini nella whitelist per escluderli. Separare voci multiple con punti e virgola (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Inserire domini nella whitelist per escluderli. Separare voci multiple con punti e virgola (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Avanzate",
"description":"Advanced label."
"advancedLabel": {
"message": "Avanzate",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"「無料」と称してあなたを追跡する大規模なCDNを迂回して、プライバシーを守ります。",
"description":"Extension description."
"extensionDescription": {
"message": "「無料」と称してあなたを追跡する大規模なCDNを迂回して、プライバシーを守ります。",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"このサイトでは保護を無効にする",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "このサイトでは保護を無効にする",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"保護を有効にする",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "保護を有効にする",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"ローカルのリソースを使用した回数",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "ローカルのリソースを使用した回数",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"インストール後にローカルのCDNリソースを使用した回数です。",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "インストール後にローカルのCDNリソースを使用した回数です。",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"オプション",
"description":"Options title."
"optionsTitle": {
"message": "オプション",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "ローカルのリソースを使用した回数をアイコンに表示する",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "拡張機能のアイコンに、ローカルのリソースを使用した回数を表示します。",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"アドオンに含まれないリソースへのリクエストをブロックする",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "アドオンに含まれないリソースへのリクエストをブロックする",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"必要なリソースがローカルで利用できない場合、リクエストを取り消します。",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "必要なリソースがローカルで利用できない場合、リクエストを取り消します。",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "リンクプリフェッチを無効にする",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "配信ネットワークに許可されていないリクエストの漏れから予防する。",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "許可されていたるリクエストからメタデータを取り除く",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "プライバシー向上のために許可されたCDNリクエストから機密データを消去する。",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"保護から除外するドメイン",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "保護から除外するドメイン",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"ホワイトリストに登録したいドメインを入力してください。エントリが複数ある場合、セミコロン (;) で区切ってください。",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "ホワイトリストに登録したいドメインを入力してください。エントリが複数ある場合、セミコロン (;) で区切ってください。",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"エラー内容",
"description":"Advanced label."
"advancedLabel": {
"message": "エラー内容",
"description": "Advanced label."
}
}

70
_locales/ko/messages.json Normal file
View File

@@ -0,0 +1,70 @@
{
"extensionDescription": {
"message": "\"무료\"라는 미끼로 당신을 추적하는 대규모 CDN을 사용하지 않음으로써 개인 정보를 지킵니다.",
"description": "Extension description."
},
"disableProtectionTitle": {
"message": "이 사이트의 보호 비활성화",
"description": "Disable protection title."
},
"enableProtectionTitle": {
"message": "보호 활성화",
"description": "Enable protection title."
},
"amountInjectedTitle": {
"message": "로컬 리소스로 대체한 요청 횟수",
"description": "Amount injected title."
},
"amountInjectedDescription": {
"message": "Decentraleyes를 설치한 뒤, CDN에서 다운로드 하는 대신 로컬 자원을 사용한 횟수입니다.",
"description": "Amount injected description."
},
"optionsTitle": {
"message": "옵션",
"description": "Options title."
},
"showIconBadgeTitle": {
"message": "차단한 횟수를 아이콘에 표시",
"description": "Show icon badge title."
},
"showIconBadgeDescription": {
"message": "로컬 리소스로 대체한 요청 수를 확장 기능 아이콘에 표시합니다.",
"description": "Show icon badge description."
},
"blockMissingTitle": {
"message": "존재하지 않는 리소스에 대한 요청을 차단",
"description": "Block requests for missing resources title."
},
"blockMissingDescription": {
"message": "리소스를 로컬에서 가져올 수 없다면 리소스 요청을 취소합니다.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle": {
"message": "링크 프리페치를 비활성화",
"description": "Disable prefetch title."
},
"disablePrefetchDescription": {
"message": "허가되지 않은 요청이 전달 네트워크(DN)로 전송되는 것을 차단합니다.",
"description": "Disable prefetch description."
},
"stripMetadataTitle": {
"message": "허용된 요청에서 메타데이터를 제거",
"description": "Strip metadata title."
},
"stripMetadataDescription": {
"message": "프라이버시 보호를 위해 허가된 CDN 요청에서 민감한 데이터를 지웁니다.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle": {
"message": "Decentraleyes를 사용하지 않을 도메인",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription": {
"message": "화이트 리스트에 등록할 도메인을 입력하세요. 여러 개를 입력할 경우 세미콜론 (;) 을 이용해 구분합니다.",
"description": "Whitelisted domains description."
},
"advancedLabel": {
"message": "고급",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Beschermt tegen tracking via het \"gratis\", gecentraliseerd, verzorgen van content.",
"description":"Extension description."
"extensionDescription": {
"message": "Beschermt tegen tracking via het \"gratis\", gecentraliseerd, verzorgen van content.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Bescherming voor deze website uitschakelen",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Bescherming voor deze website uitschakelen",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Bescherming inschakelen",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Bescherming inschakelen",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Teller voor lokaal geïnjecteerde bestanden",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Teller voor lokaal geïnjecteerde bestanden",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Aantal lokale Content Delivery Network-bestandsinjecties sinds installatie.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Aantal lokale Content Delivery Network-bestandsinjecties sinds installatie.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Opties",
"description":"Options title."
"optionsTitle": {
"message": "Opties",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Getelde injecties op icoon weergeven",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Getelde injecties op icoon weergeven",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Toon het aantal geïnjecteerde bestanden op het extensie-icoon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Toon het aantal geïnjecteerde bestanden op het extensie-icoon.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Verzoeken voor ontbrekende items blokkeren",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Verzoeken voor ontbrekende items blokkeren",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Annuleer een onderschept verzoek wanneer het bestand niet lokaal beschikbaar is.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Annuleer een onderschept verzoek wanneer het bestand niet lokaal beschikbaar is.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Link prefetching uitschakelen",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Link prefetching uitschakelen",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Voorkom dat geweigerde verzoeken naar afleveringsnetwerken uitlekken.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Voorkom dat geweigerde verzoeken naar afleveringsnetwerken uitlekken.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Metadata uit toegestane verzoeken verwijderen",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Metadata uit toegestane verzoeken verwijderen",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Wis gevoelige gegevens uit toegestane CDN-verzoeken voor verbeterde privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Wis gevoelige gegevens uit toegestane CDN-verzoeken voor verbeterde privacy.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Sluit domeinen uit van inspecties",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Sluit domeinen uit van inspecties",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Voer de te negeren domeinen in. Scheid de waarden met puntkomma's (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Voer de te negeren domeinen in. Scheid de waarden met puntkomma's (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Geavanceerd",
"description":"Advanced label."
"advancedLabel": {
"message": "Geavanceerd",
"description": "Advanced label."
}
}

View File

@@ -0,0 +1,70 @@
{
"extensionDescription": {
"message": "Lhe protege de rastreamento feito usando centrais de disponibilização de conteúdo \"gratuitas\".",
"description": "Extension description."
},
"disableProtectionTitle": {
"message": "Desabilitar a proteção neste site",
"description": "Disable protection title."
},
"enableProtectionTitle": {
"message": "Habilitar proteção",
"description": "Enable protection title."
},
"amountInjectedTitle": {
"message": "Contador de recursos injetados localmente",
"description": "Amount injected title."
},
"amountInjectedDescription": {
"message": "Total de injeções locais de recursos de Redes de Distribuição de Conteúdo desde a instalação.",
"description": "Amount injected description."
},
"optionsTitle": {
"message": "Opções",
"description": "Options title."
},
"showIconBadgeTitle": {
"message": "Exibir total de injeções no ícone",
"description": "Show icon badge title."
},
"showIconBadgeDescription": {
"message": "Mostra o total de injeções de recursos no ícone do complemento.",
"description": "Show icon badge description."
},
"blockMissingTitle": {
"message": "Bloquear requisições a recursos faltosos",
"description": "Block requests for missing resources title."
},
"blockMissingDescription": {
"message": "Cancela requisições interceptadas se o recurso necessário não está disponível localmente.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle": {
"message": "Desabilitar pré-carregamento de links",
"description": "Disable prefetch title."
},
"disablePrefetchDescription": {
"message": "Impede que requisições não permitidas vazem para as redes de distribuição de conteúdo.",
"description": "Disable prefetch description."
},
"stripMetadataTitle": {
"message": "Remover metadados de requisições permitidas",
"description": "Strip metadata title."
},
"stripMetadataDescription": {
"message": "Apaga dados sensíveis de requisições à CDNs permitidas visando melhorar a privacidade.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle": {
"message": "Remover domínios das inspeções",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription": {
"message": "Digite os domínios que não devem ser analisados. Separe múltiplos domínios com ponto e vírgula (;).",
"description": "Whitelisted domains description."
},
"advancedLabel": {
"message": "Avançado",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Защищает Вас от отслеживания через «бесплатные», централизованные CDN.",
"description":"Extension description."
"extensionDescription": {
"message": "Защищает Вас от отслеживания через «бесплатные», централизованные CDN.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Отключить защиту для этого сайта",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Отключить защиту для этого сайта",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Включить защиту",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Включить защиту",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Счётчик файлов «доставленных» локально",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Счётчик файлов «доставленных» локально",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Количество локально «доставленных» файлов с момента установки.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Количество локально «доставленных» файлов с момента установки.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Настройки",
"description":"Options title."
"optionsTitle": {
"message": "Настройки",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Показывать количество инъекций на значке",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Показывать количество «доставленных» локально ресурсов на значке расширения.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Блокировать запросы недостающих ресурсов",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Блокировать запросы недостающих ресурсов",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Отменить перехваченный запрос, если требуемый ресурс не доступен локально (может «ломать» сайты).",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Отменить перехваченный запрос, если требуемый ресурс не доступен локально (может «ломать» сайты).",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Отключить предвыборку ссылок",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Не давать запрещенным запросам выходить за сети доставки.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Удалить метаданные из допущенных запросов",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Очистить дополнительные данные из разрешенных CDN запросов, для усиления приватности.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Исключить домены из проверки",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Исключить домены из проверки",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"«Белый список» доменов. Контент, расположенный на них не будет фильтроваться. Записи (при количестве более одной) разделяются точкой с запятой (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "«Белый список» доменов. Контент, расположенный на них не будет фильтроваться. Записи (при количестве более одной) разделяются точкой с запятой (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Дополнительно",
"description":"Advanced label."
"advancedLabel": {
"message": "Дополнительно",
"description": "Advanced label."
}
}

70
_locales/sr/messages.json Normal file
View File

@@ -0,0 +1,70 @@
{
"extensionDescription": {
"message": "Штити вас од праћења преко „бесплатних“, централизованих достава садржаја.",
"description": "Extension description."
},
"disableProtectionTitle": {
"message": "Онемогући заштиту на овом сајту",
"description": "Disable protection title."
},
"enableProtectionTitle": {
"message": "Омогући заштиту",
"description": "Enable protection title."
},
"amountInjectedTitle": {
"message": "Бројач локално убризганих ресурса",
"description": "Amount injected title."
},
"amountInjectedDescription": {
"message": "Број локално убризганих ресурса са мрежа за доставу садржаја од инсталације.",
"description": "Amount injected description."
},
"optionsTitle": {
"message": "Опције",
"description": "Options title."
},
"showIconBadgeTitle": {
"message": "Прикажи број убризгавања на иконици",
"description": "Show icon badge title."
},
"showIconBadgeDescription": {
"message": "Прикажи број убризганих ресурса на иконици проширења.",
"description": "Show icon badge description."
},
"blockMissingTitle": {
"message": "Блокирај захтеве ка недостајућим ресурсима",
"description": "Block requests for missing resources title."
},
"blockMissingDescription": {
"message": "Откажи пресретнути захтев ако потребни ресурс није локално доступан.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle": {
"message": "Откажи преучитавање везе",
"description": "Disable prefetch title."
},
"disablePrefetchDescription": {
"message": "Спречи цурење недозвољених захтева ка мрежама за доставу.",
"description": "Disable prefetch description."
},
"stripMetadataTitle": {
"message": "Скини мета-податке са дозвољених захтева",
"description": "Strip metadata title."
},
"stripMetadataDescription": {
"message": "Обриши осетљиве податке са дозвољених CDN захтева зарад веће приватности.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle": {
"message": "Прескочи домене приликом провере",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription": {
"message": "Унесите домене да их ставите на бели списак. Више одвојених ставки са тачка-запетама (;).",
"description": "Whitelisted domains description."
},
"advancedLabel": {
"message": "Напредно",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"Skyddar dig mot att spåras av \"gratis\", centraliserat, innehållsleverans.",
"description":"Extension description."
"extensionDescription": {
"message": "Skyddar dig mot att spåras av \"gratis\", centraliserad, innehållsleverans.",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"Inaktivera skydd för den här sidan",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "Inaktivera skydd för den här sidan",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"Aktivera skydd",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "Aktivera skydd",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"Räknare för lokalt insatta resurser",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "Räknare för lokalt insatta resurser",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"Antalet insatta Content Delivery Network-resurser sedan installationen.",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "Antalet insatta Content Delivery Network-resurser sedan installationen.",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"Inställningar",
"description":"Options title."
"optionsTitle": {
"message": "Inställningar",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"Display injection counts on icon",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "Visa insättningsantal på ikonen",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"Show the number of injected resources on the extension icon.",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "Visa antalet insatta resurser på tilläggsikonen.",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"Blockera förfrågningar när resurs saknas",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "Blockera förfrågningar när resurs saknas",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"Avbryt uppsnappning om resurs inte finns lokalt.",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "Avbryt avlyssnad begäran om den begärda resursen inte finns lokalt.",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"Disable link prefetching",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "Inaktivera länkförhandshämtning",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"Prevent disallowed requests from leaking out to delivery networks.",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "Förhindra otillåtna förfrågningar från att läcka ut till leveransnätverk.",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"Strip metadata from allowed requests",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "Skala bort metadata från tillåtna förfrågningar",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"Erase sensitive data from allowed CDN requests for improved privacy.",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "Radera känslig data från tillåtna CDN-förfrågningar för förbättrad integritet.",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"Utelämna domäner från uppsnappningar",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "Exkludera domäner från inspektioner",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"Ange domäner för vitlistning. Separera flera domänposter med semikolon (;).",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "Ange domäner för vitlistning. Separera flera domänposter med semikolon (;).",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"Avancerad",
"description":"Advanced label."
"advancedLabel": {
"message": "Avancerad",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"保护您免受集中式的内容交付网络CDN的跟踪。",
"description":"Extension description."
"extensionDescription": {
"message": "保护您免受集中式的内容交付网络CDN的跟踪。",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"在此网站上禁用保护",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "在此网站上禁用保护",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"启用保护",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "启用保护",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"本地发送资源的计数器",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "本地发送资源的计数器",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"自安装以来,从本地的“内容交付网络”发送的资源总量。",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "自安装以来,从本地的“内容交付网络”发送的资源总量。",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"选项",
"description":"Options title."
"optionsTitle": {
"message": "选项",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"在图标上显示注入数量",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "在图标上显示注入数量",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"在扩展图标上显示已注入资源的数量。",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "在扩展图标上显示已注入资源的数量。",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"阻止缺失资源的请求",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "阻止缺失资源的请求",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"取消被拦截的请求,如果请求的资源在本地不可用。",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "取消被拦截的请求,如果请求的资源在本地不可用。",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"禁用链接预读取",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "禁用链接预读取",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"避免本应禁止的请求发到网络。",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "避免本应禁止的请求发到网络。",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"允许的请求剥去元数据",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "允许的请求剥去元数据",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"被允许的 CDN 请求剥去敏感数据以保护隐私。",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "被允许的 CDN 请求剥去敏感数据以保护隐私。",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"排除要检查的域名",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "排除要检查的域名",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"输入白名单的域名。用分号 (;) 分隔多项。",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "输入白名单的域名。用分号 (;) 分隔多项。",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"高级",
"description":"Advanced label."
"advancedLabel": {
"message": "高级",
"description": "Advanced label."
}
}

View File

@@ -1,70 +1,70 @@
{
"extensionDescription":{
"message":"保護您不受「免費」、中心化的內容傳遞網路CDN的追蹤。",
"description":"Extension description."
"extensionDescription": {
"message": "保護您不受「免費」、中心化的內容傳遞網路CDN的追蹤。",
"description": "Extension description."
},
"disableProtectionTitle":{
"message":"為此網站停用保護",
"description":"Disable protection title."
"disableProtectionTitle": {
"message": "為此網站停用保護",
"description": "Disable protection title."
},
"enableProtectionTitle":{
"message":"啟用保護",
"description":"Enable protection title."
"enableProtectionTitle": {
"message": "啟用保護",
"description": "Enable protection title."
},
"amountInjectedTitle":{
"message":"由本機提供的資源計數器",
"description":"Amount injected title."
"amountInjectedTitle": {
"message": "由本機提供的資源計數器",
"description": "Amount injected title."
},
"amountInjectedDescription":{
"message":"安裝以來,由本機檔案所取代的 CDN 資源數量。",
"description":"Amount injected description."
"amountInjectedDescription": {
"message": "安裝以來,由本機檔案所取代的 CDN 資源數量。",
"description": "Amount injected description."
},
"optionsTitle":{
"message":"選項",
"description":"Options title."
"optionsTitle": {
"message": "選項",
"description": "Options title."
},
"showIconBadgeTitle":{
"message":"在圖示上顯示被取代的資源數量",
"description":"Show icon badge title."
"showIconBadgeTitle": {
"message": "在圖示上顯示被取代的資源數量",
"description": "Show icon badge title."
},
"showIconBadgeDescription":{
"message":"在擴充套件圖示上,顯示被取代的資源數量。",
"description":"Show icon badge description."
"showIconBadgeDescription": {
"message": "在擴充套件圖示上,顯示被取代的資源數量。",
"description": "Show icon badge description."
},
"blockMissingTitle":{
"message":"封鎖缺少資源時的連線請求",
"description":"Block requests for missing resources title."
"blockMissingTitle": {
"message": "封鎖缺少資源時的連線請求",
"description": "Block requests for missing resources title."
},
"blockMissingDescription":{
"message":"若本機沒有所請求的資源,就取消該請求。",
"description":"Block requests for missing resources description."
"blockMissingDescription": {
"message": "若本機沒有所請求的資源,就取消該請求。",
"description": "Block requests for missing resources description."
},
"disablePrefetchTitle":{
"message":"停用連結預讀功能",
"description":"Disable prefetch title."
"disablePrefetchTitle": {
"message": "停用連結預讀功能",
"description": "Disable prefetch title."
},
"disablePrefetchDescription":{
"message":"防止發出不被允許的請求到 CDN 網路。",
"description":"Disable prefetch description."
"disablePrefetchDescription": {
"message": "防止發出不被允許的請求到 CDN 網路。",
"description": "Disable prefetch description."
},
"stripMetadataTitle":{
"message":"移除放行請求當中的後設資料",
"description":"Strip metadata title."
"stripMetadataTitle": {
"message": "移除放行請求當中的後設資料",
"description": "Strip metadata title."
},
"stripMetadataDescription":{
"message":"清除放行的 CDN 請求當中的敏感資料,以保護隱私權。",
"description":"Strip metadata description."
"stripMetadataDescription": {
"message": "清除放行的 CDN 請求當中的敏感資料,以保護隱私權。",
"description": "Strip metadata description."
},
"whitelistedDomainsTitle":{
"message":"要排除檢查的網域",
"description":"Whitelisted domains title."
"whitelistedDomainsTitle": {
"message": "要排除檢查的網域",
"description": "Whitelisted domains title."
},
"whitelistedDomainsDescription":{
"message":"輸入網域即可將其加入白名單。使用分號(;)分隔多個網域。",
"description":"Whitelisted domains description."
"whitelistedDomainsDescription": {
"message": "輸入網域即可將其加入白名單。使用分號(;)分隔多個網域。",
"description": "Whitelisted domains description."
},
"advancedLabel":{
"message":"進階",
"description":"Advanced label."
"advancedLabel": {
"message": "進階",
"description": "Advanced label."
}
}

136
audit/.eslintrc Normal file
View File

@@ -0,0 +1,136 @@
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"array-bracket-newline": "error",
"array-bracket-spacing": "error",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"camelcase": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"consistent-this": "error",
"curly": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"function-paren-newline": "error",
"generator-star-spacing": "error",
"indent": [
"error",
4
],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": [
"error",
"unix"
],
"new-cap": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-confusing-arrow": "error",
"no-console": "off",
"no-continue": "error",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": [
"error", {
"max": 1,
"maxEOF": 1,
"maxBOF": 0
}
],
"no-negated-condition": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-tabs": "error",
"no-ternary": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-use-before-define": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-void": "error",
"no-warning-comments": "warn",
"no-whitespace-before-property": "error",
"no-with": "error",
"object-curly-spacing": "error",
"object-shorthand": [
"error",
"consistent-as-needed"
],
"operator-assignment": "error",
"operator-linebreak": "error",
"prefer-numeric-literals": "error",
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quote-props": "error",
"quotes": [
"error",
"single"
],
"require-await": "error",
"rest-spread-spacing": "error",
"semi": "error",
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"strict": [
"error",
"global"
],
"switch-colon-spacing": "error",
"symbol-description": "error",
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": "error",
"wrap-regex": "error",
"yield-star-spacing": "error",
"yoda": "error"
}
}

View File

@@ -15,12 +15,11 @@
* Imports
*/
var fileSystem, crypto, http, path, sourceMappingURL;
var fileSystem, crypto, https, sourceMappingURL;
fileSystem = require('fs');
crypto = require('crypto');
https = require('https');
path = require('path');
sourceMappingURL = require('source-map-url');
@@ -38,11 +37,11 @@ var resourceAmount = 0;
* Functions
*/
function _fetchLocalResourcePaths(folderPath) {
function _fetchLocalResourcePaths (folderPath) {
fileSystem.readdirSync(folderPath).forEach(function (resourceName) {
var resourcePath = folderPath + '/' + resourceName;
var resourcePath = `${folderPath}/${resourceName}`;
var resourceStatistics = fileSystem.statSync(resourcePath);
if (resourceStatistics && resourceStatistics.isDirectory()) {
@@ -56,7 +55,7 @@ function _fetchLocalResourcePaths(folderPath) {
return localResourcePaths;
}
function _getLocalResourceContents(fileLocation, callback) {
function _getLocalResourceContents (fileLocation, callback) {
fileSystem.exists(fileLocation, function (exists) {
@@ -82,16 +81,16 @@ function _getLocalResourceContents(fileLocation, callback) {
});
}
function _getRemoteResourceContents(remoteResourceRoute, callback) {
function _getRemoteResourceContents (remoteResourceRoute, callback) {
var resourceURL = 'https://ajax.googleapis.com/ajax/libs/' + remoteResourceRoute;
var resourceURL = `https://ajax.googleapis.com/ajax/libs/${remoteResourceRoute}`;
https.get(resourceURL, function (response) {
var resourceContents = '';
response.on('data', function (chunk) {
resourceContents = resourceContents + chunk;
resourceContents += chunk;
});
response.on('end', function () {
@@ -102,20 +101,20 @@ function _getRemoteResourceContents(remoteResourceRoute, callback) {
} else {
resourceURL = 'https://cdnjs.cloudflare.com/ajax/libs/' + remoteResourceRoute;
resourceURL = `https://cdnjs.cloudflare.com/ajax/libs/${remoteResourceRoute}`;
https.get(resourceURL, function (response) {
resourceContents = '';
response.on('data', function (chunk) {
resourceContents = resourceContents + chunk;
resourceContents += chunk;
});
response.on('end', function () {
if (response.statusCode !== 200) {
throw 'Error: Resource ' + remoteResourceRoute + ' could not be fetched.';
throw `Error: Resource ${remoteResourceRoute} could not be fetched.`;
}
callback(resourceContents, resourceURL);
@@ -130,7 +129,7 @@ function _getRemoteResourceContents(remoteResourceRoute, callback) {
});
}
function _hashFileContents(fileContents) {
function _hashFileContents (fileContents) {
var hash;
@@ -143,7 +142,27 @@ function _hashFileContents(fileContents) {
return hash.read();
}
function _compareResources(localResourceContents, remoteResourceContents, URL) {
function _showCompletedMessage () {
console.log();
console.log(' *** FILE INTEGRITY CHECKS COMPLETED');
console.log(` *** ${resourceAmount}/${resourceAmount} RESOURCES WERE ANALYZED`);
console.log();
}
function _incrementComparedResourceAmount () {
comparedResourceAmount++;
if (comparedResourceAmount === resourceAmount) {
setTimeout(function () {
_showCompletedMessage();
}, 500);
}
}
function _compareResources (localResourceContents, remoteResourceContents, URL) {
var hasSourceMappingURL = sourceMappingURL.existsIn(remoteResourceContents);
var sourceMappingNotice = '[ ] REMOTE RESOURCE HAD SOURCE MAPPING URL';
@@ -156,8 +175,8 @@ function _compareResources(localResourceContents, remoteResourceContents, URL) {
var localResourceHash = _hashFileContents(localResourceContents);
var remoteResourceHash = _hashFileContents(remoteResourceContents);
console.log('RESOURCE HASH (SHA512): ' + localResourceHash);
console.log('RESOURCE HASH (SHA512): ' + remoteResourceHash);
console.log(`RESOURCE HASH (SHA512): ${localResourceHash}`);
console.log(`RESOURCE HASH (SHA512): ${remoteResourceHash}`);
var fileHashesMatch = (localResourceHash === remoteResourceHash);
@@ -174,26 +193,6 @@ function _compareResources(localResourceContents, remoteResourceContents, URL) {
_incrementComparedResourceAmount();
}
function _showCompletedMessage() {
console.log();
console.log(' *** FILE INTEGRITY CHECKS COMPLETED');
console.log(' *** ' + resourceAmount + '/' + resourceAmount + ' RESOURCES WERE ANALYZED');
console.log();
}
function _incrementComparedResourceAmount() {
comparedResourceAmount++;
if (comparedResourceAmount === resourceAmount) {
setTimeout(function () {
_showCompletedMessage();
}, 500);
}
}
/**
* Initializations
*/
@@ -205,7 +204,7 @@ resourceAmount = localResourcePaths.length;
* Script
*/
localResourcePaths.forEach(function (resourcePath, index) {
localResourcePaths.forEach(function (resourcePath) {
var resourceRoute = resourcePath.substr(localResourceLocationLength + 1);
resourceRoute = resourceRoute.substring(0, resourceRoute.length - 4);

56
core/constants.js Normal file
View File

@@ -0,0 +1,56 @@
/**
* Global Constants
* Belongs to Decentraleyes.
*
* @author Thomas Rientjes
* @since 2017-10-27
* @license MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
/**
* Constants
*/
const Address = {
'ANY': '*://*/*',
'ANY_PATH': '/*',
'ANY_PROTOCOL': '*://',
'EXAMPLE': 'example.org',
'HTTP': 'http:',
'HTTPS': 'https:',
'WWW_PREFIX': 'www.'
};
const Resource = {
'MAPPING_EXPRESSION': /\.map$/i,
'VERSION_EXPRESSION': /(?:\d{1,2}\.){1,3}\d{1,2}/,
'VERSION_PLACEHOLDER': '{version}'
};
const Setting = {
'AMOUNT_INJECTED': 'amountInjected',
'BLOCK_MISSING': 'blockMissing',
'DISABLE_PREFETCH': 'disablePrefetch',
'SHOW_ICON_BADGE': 'showIconBadge',
'STRIP_METADATA': 'stripMetadata',
'WHITELISTED_DOMAINS': 'whitelistedDomains'
};
const WebRequest = {
'GET': 'GET',
'BLOCKING': 'blocking',
'HEADERS': 'requestHeaders',
'ORIGIN_HEADER': 'Origin',
'REFERER_HEADER': 'Referer'
};
const Whitelist = {
'TRIM_EXPRESSION': /^;+|;+$/g,
'VALUE_SEPARATOR': ';'
};

View File

@@ -19,19 +19,13 @@
var interceptor = {};
/**
* Constants
*/
const HTTP_EXPRESSION = /^http?:\/\//;
/**
* Public Methods
*/
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
let validCandidate, targetDetails, targetPath;
let validCandidate, tabDomain, targetDetails, targetPath;
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
@@ -42,6 +36,37 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
};
}
tabDomain = helpers.extractDomainFromUrl(tab.url, true);
if (tabDomain === null) {
tabDomain = Address.EXAMPLE;
}
// Temporary list of undetectable tainted domains.
let undetectableTaintedDomains = {
'10fastfingers.com': true,
'cdnjs.com': true,
'dropbox.com': true,
'glowing-bear.org': true,
'minigames.mail.ru': true,
'miniquadtestbench.com': true,
'qwertee.com': true,
'report-uri.io': true,
'scotthelme.co.uk': true,
'securityheaders.io': true,
'stefansundin.github.io': true,
'udacity.com': true,
'yadi.sk': true,
'yourvotematters.co.uk': true
};
if (undetectableTaintedDomains[tabDomain] || (/yandex\./).test(tabDomain)) {
if (tabDomain !== 'yandex.ru') {
return interceptor._handleMissingCandidate(requestDetails.url);
}
}
targetDetails = requestAnalyzer.getLocalTarget(requestDetails);
targetPath = targetDetails.path;
@@ -54,8 +79,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
}
stateManager.requests[requestDetails.requestId] = {
'tabIdentifier': tabIdentifier,
'targetDetails': targetDetails
tabIdentifier, targetDetails
};
return {
@@ -76,9 +100,12 @@ interceptor._handleMissingCandidate = function (requestUrl) {
};
}
if (requestUrl.match(HTTP_EXPRESSION)) {
let requestUrlSegments = new URL(requestUrl);
requestUrl = requestUrl.replace(HTTP_EXPRESSION, 'https://');
if (requestUrlSegments.protocol === Address.HTTP) {
requestUrlSegments.protocol = Address.HTTPS;
requestUrl = requestUrlSegments.toString();
return {
'redirectUrl': requestUrl
@@ -94,7 +121,7 @@ interceptor._handleMissingCandidate = function (requestUrl) {
interceptor._handleStorageChanged = function (changes) {
if ('blockMissing' in changes) {
if (Setting.BLOCK_MISSING in changes) {
interceptor.blockMissing = changes.blockMissing.newValue;
}
};
@@ -106,7 +133,7 @@ interceptor._handleStorageChanged = function (changes) {
interceptor.amountInjected = 0;
interceptor.blockMissing = false;
chrome.storage.local.get(['amountInjected', 'blockMissing'], function (items) {
chrome.storage.local.get([Setting.AMOUNT_INJECTED, Setting.BLOCK_MISSING], function (items) {
interceptor.amountInjected = items.amountInjected || 0;
interceptor.blockMissing = items.blockMissing || false;

View File

@@ -50,30 +50,46 @@ main._initializeOptions = function () {
});
};
main._showReleaseNotes = function (details) {
let location, previousVersion;
location = chrome.extension.getURL('pages/welcome/welcome.html');
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL ||
details.reason === chrome.runtime.OnInstalledReason.UPDATE) {
previousVersion = details.previousVersion;
if (previousVersion && previousVersion.charAt(0) === '2') {
return; // Do not show release notes after minor updates.
}
if (details.temporary !== true) {
chrome.storage.local.get({
'showReleaseNotes': true
}, function (options) {
if (options.showReleaseNotes === true) {
chrome.tabs.create({
'url': location,
'active': false
});
}
});
}
}
};
/**
* Initializations
*/
chrome.runtime.onInstalled.addListener(main._showReleaseNotes);
main._initializeOptions();
chrome.runtime.getPlatformInfo(function (information) {
main.operatingSystem = information.os;
});
if (typeof chrome.browserAction.setBadgeBackgroundColor !== 'function') {
chrome.browserAction.setBadgeBackgroundColor = function () {};
chrome.browserAction.setBadgeText = function () {};
chrome.browserAction.onClicked.addListener(function () {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/popup/popup.html'),
'active': false
});
});
}
chrome.browserAction.setBadgeBackgroundColor({
wrappers.setBadgeBackgroundColor({
'color': [74, 130, 108, 255]
});

View File

@@ -37,40 +37,40 @@ var mappings = {
// Common Shorthand Notations [Deprecated]
'dojo/1/dojo/dojo.': {
path: 'resources/dojo/1.6.1/dojo/dojo.js.dec',
type: 'application/javascript'
'path': 'resources/dojo/1.6.1/dojo/dojo.js.dec',
'type': 'application/javascript'
},
'jquery/1/jquery.': {
path: 'resources/jquery/1.11.1/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.11.1/jquery.min.js.dec',
'type': 'application/javascript'
},
'jqueryui/1/jquery-ui.js': {
path: 'resources/jqueryui/1.10.4/jquery-ui.min.js.dec',
type: 'application/javascript'
'path': 'resources/jqueryui/1.10.4/jquery-ui.min.js.dec',
'type': 'application/javascript'
},
'jqueryui/1/jquery-ui.min.js': {
path: 'resources/jqueryui/1.10.4/jquery-ui.min.js.dec',
type: 'application/javascript'
'path': 'resources/jqueryui/1.10.4/jquery-ui.min.js.dec',
'type': 'application/javascript'
},
'mootools/1/mootools-yui-compressed.': {
path: 'resources/mootools/1.1.2/mootools-yui-compressed.js.dec',
type: 'application/javascript'
'path': 'resources/mootools/1.1.2/mootools-yui-compressed.js.dec',
'type': 'application/javascript'
},
'prototype/1/prototype.': {
path: 'resources/prototype/1.7.1.0/prototype.js.dec',
type: 'application/javascript'
'path': 'resources/prototype/1.7.1.0/prototype.js.dec',
'type': 'application/javascript'
},
'scriptaculous/1/scriptaculous.': {
path: 'resources/scriptaculous/1.9.0/scriptaculous.js.dec',
type: 'application/javascript'
'path': 'resources/scriptaculous/1.9.0/scriptaculous.js.dec',
'type': 'application/javascript'
},
'swfobject/2/swfobject.': {
path: 'resources/swfobject/2.2/swfobject.js.dec',
type: 'application/javascript'
'path': 'resources/swfobject/2.2/swfobject.js.dec',
'type': 'application/javascript'
},
'webfont/1/webfont.': {
path: 'resources/webfont/1.5.18/webfont.js.dec',
type: 'application/javascript'
'path': 'resources/webfont/1.5.18/webfont.js.dec',
'type': 'application/javascript'
}
}
},
@@ -118,52 +118,52 @@ var mappings = {
// Common Shorthand Notations [Deprecated]
'jquery-latest.': {
path: 'resources/jquery/1.11.1/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.11.1/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery.': {
path: 'resources/jquery/1.11.1/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.11.1/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.3.min.js': {
path: 'resources/jquery/1.3.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.3.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.3.js': {
path: 'resources/jquery/1.3.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.3.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.4.min.js': {
path: 'resources/jquery/1.4.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.4.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.4.js': {
path: 'resources/jquery/1.4.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.4.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.5.min.js': {
path: 'resources/jquery/1.5.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.5.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.5.js': {
path: 'resources/jquery/1.5.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.5.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.6.min.js': {
path: 'resources/jquery/1.6.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.6.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.6.js': {
path: 'resources/jquery/1.6.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.6.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.7.min.js': {
path: 'resources/jquery/1.7.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.7.0/jquery.min.js.dec',
'type': 'application/javascript'
},
'jquery-1.7.js': {
path: 'resources/jquery/1.7.0/jquery.min.js.dec',
type: 'application/javascript'
'path': 'resources/jquery/1.7.0/jquery.min.js.dec',
'type': 'application/javascript'
}
}
},

View File

@@ -19,51 +19,44 @@
var requestAnalyzer = {};
/**
* Constants
*/
const MAPPING_FILE_EXPRESSION = new RegExp('\.map$', 'i');
const VERSION_EXPRESSION = /(?:\d{1,2}\.){1,3}\d{1,2}/;
const VERSION_PLACEHOLDER = '{version}';
const WEB_DOMAIN_EXPRESSION = /:\/\/(.[^\/]+)(.*)/;
const WEB_PREFIX_VALUE = 'www.';
const WEB_PREFIX_LENGTH = WEB_PREFIX_VALUE.length;
/**
* Public Methods
*/
requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
let initiatorHost;
let initiatorDomain, isWhitelisted;
try {
initiatorHost = tabDetails.url.match(WEB_DOMAIN_EXPRESSION)[1];
} catch (exception) {
initiatorHost = 'example.org';
initiatorDomain = helpers.extractDomainFromUrl(tabDetails.url, true);
if (initiatorDomain === null) {
initiatorDomain = Address.EXAMPLE;
}
if (initiatorHost && requestAnalyzer.whitelistedDomains[requestAnalyzer._normalizeDomain(initiatorHost)]) {
isWhitelisted = requestAnalyzer.whitelistedDomains[initiatorDomain];
if (isWhitelisted) {
return false;
}
// Only requests of type GET can be valid candidates.
return requestDetails.method === 'GET';
return requestDetails.method === WebRequest.GET;
};
requestAnalyzer.getLocalTarget = function (requestDetails) {
let destinationHost, destinationPath, hostMappings, basePath, resourceMappings;
let destinationUrl, destinationHost, destinationPath, hostMappings, basePath, resourceMappings;
destinationHost = requestDetails.url.match(WEB_DOMAIN_EXPRESSION)[1];
destinationPath = requestDetails.url.match(WEB_DOMAIN_EXPRESSION)[2];
destinationUrl = new URL(requestDetails.url);
destinationHost = destinationUrl.host;
destinationPath = destinationUrl.pathname;
// Use the proper mappings for the targeted host.
hostMappings = mappings[destinationHost];
// Resource mapping files are never locally available.
if (MAPPING_FILE_EXPRESSION.test(destinationPath)) {
if (Resource.MAPPING_EXPRESSION.test(destinationPath)) {
return false;
}
@@ -96,12 +89,12 @@ requestAnalyzer._matchBasePath = function (hostMappings, channelPath) {
requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channelHost, channelPath) {
var resourcePath, versionNumber, resourcePattern;
let resourcePath, versionNumber, resourcePattern;
resourcePath = channelPath.replace(basePath, '');
versionNumber = resourcePath.match(VERSION_EXPRESSION);
resourcePattern = resourcePath.replace(versionNumber, VERSION_PLACEHOLDER);
versionNumber = resourcePath.match(Resource.VERSION_EXPRESSION);
resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER);
for (let resourceMold of Object.keys(resourceMappings)) {
@@ -110,15 +103,15 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
let targetPath, version;
targetPath = resourceMappings[resourceMold].path;
targetPath = targetPath.replace(VERSION_PLACEHOLDER, versionNumber);
targetPath = targetPath.replace(Resource.VERSION_PLACEHOLDER, versionNumber);
version = versionNumber && versionNumber[0] || targetPath.match(VERSION_EXPRESSION);
version = versionNumber && versionNumber[0] || targetPath.match(Resource.VERSION_EXPRESSION);
// Prepare and return a local target.
return {
source: channelHost,
version: version,
path: targetPath
'source': channelHost,
'version': version,
'path': targetPath
};
}
}
@@ -128,23 +121,11 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
requestAnalyzer._applyWhitelistedDomains = function () {
//noinspection JSUnresolvedVariable
chrome.storage.local.get('whitelistedDomains', function (items) {
chrome.storage.local.get(Setting.WHITELISTED_DOMAINS, function (items) {
requestAnalyzer.whitelistedDomains = items.whitelistedDomains || {};
});
};
requestAnalyzer._normalizeDomain = function (domain) {
domain = domain.toLowerCase().trim();
if (domain.startsWith(WEB_PREFIX_VALUE)) {
domain = domain.slice(WEB_PREFIX_LENGTH);
}
return domain;
};
/**
* Initializations
*/

View File

@@ -20,73 +20,73 @@
var resources = {
// AngularJS
angular: {
path: 'resources/angularjs/{version}/angular.min.js.dec',
type: 'application/javascript'
'angular': {
'path': 'resources/angularjs/{version}/angular.min.js.dec',
'type': 'application/javascript'
},
// Backbone.js
backbone: {
path: 'resources/backbone.js/{version}/backbone-min.js.dec',
type: 'application/javascript'
'backbone': {
'path': 'resources/backbone.js/{version}/backbone-min.js.dec',
'type': 'application/javascript'
},
// Dojo
dojo: {
path: 'resources/dojo/{version}/dojo/dojo.js.dec',
type: 'application/javascript'
'dojo': {
'path': 'resources/dojo/{version}/dojo/dojo.js.dec',
'type': 'application/javascript'
},
// Ember.js
ember: {
path: 'resources/ember.js/{version}/ember.min.js.dec',
type: 'application/javascript'
'ember': {
'path': 'resources/ember.js/{version}/ember.min.js.dec',
'type': 'application/javascript'
},
// Ext Core
extCore: {
path: 'resources/ext-core/{version}/ext-core.js.dec',
type: 'application/javascript'
'extCore': {
'path': 'resources/ext-core/{version}/ext-core.js.dec',
'type': 'application/javascript'
},
// jQuery
jQuery: {
path: 'resources/jquery/{version}/jquery.min.js.dec',
type: 'application/javascript'
'jQuery': {
'path': 'resources/jquery/{version}/jquery.min.js.dec',
'type': 'application/javascript'
},
// jQuery UI
jQueryUI: {
path: 'resources/jqueryui/{version}/jquery-ui.min.js.dec',
type: 'application/javascript'
'jQueryUI': {
'path': 'resources/jqueryui/{version}/jquery-ui.min.js.dec',
'type': 'application/javascript'
},
// Modernizr
modernizr: {
path: 'resources/modernizr/{version}/modernizr.min.js.dec',
type: 'application/javascript'
'modernizr': {
'path': 'resources/modernizr/{version}/modernizr.min.js.dec',
'type': 'application/javascript'
},
// MooTools
mootools: {
path: 'resources/mootools/{version}/mootools-yui-compressed.js.dec',
type: 'application/javascript'
'mootools': {
'path': 'resources/mootools/{version}/mootools-yui-compressed.js.dec',
'type': 'application/javascript'
},
// Prototype
prototypeJS: {
path: 'resources/prototype/{version}/prototype.js.dec',
type: 'application/javascript'
'prototypeJS': {
'path': 'resources/prototype/{version}/prototype.js.dec',
'type': 'application/javascript'
},
// Scriptaculous
scriptaculous: {
path: 'resources/scriptaculous/{version}/scriptaculous.js.dec',
type: 'application/javascript'
'scriptaculous': {
'path': 'resources/scriptaculous/{version}/scriptaculous.js.dec',
'type': 'application/javascript'
},
// SWFObject
swfobject: {
path: 'resources/swfobject/{version}/swfobject.js.dec',
type: 'application/javascript'
'swfobject': {
'path': 'resources/swfobject/{version}/swfobject.js.dec',
'type': 'application/javascript'
},
// Underscore.js
underscore: {
path: 'resources/underscore.js/{version}/underscore-min.js.dec',
type: 'application/javascript'
'underscore': {
'path': 'resources/underscore.js/{version}/underscore-min.js.dec',
'type': 'application/javascript'
},
// Web Font Loader
webfont: {
path: 'resources/webfont/{version}/webfont.js.dec',
type: 'application/javascript'
'webfont': {
'path': 'resources/webfont/{version}/webfont.js.dec',
'type': 'application/javascript'
}
};

View File

@@ -19,15 +19,6 @@
var stateManager = {};
/**
* Constants
*/
const BLOCKING_ACTION = 'blocking';
const HOST_PREFIX = '*://';
const HOST_SUFFIX = '/*';
const REQUEST_HEADERS = 'requestHeaders';
/**
* Public Methods
*/
@@ -46,23 +37,23 @@ stateManager.registerInjection = function (tabIdentifier, injection) {
if (injectionCount > 0) {
chrome.browserAction.setBadgeText({
tabId: tabIdentifier,
text: injectionCount.toString()
wrappers.setBadgeText({
'tabId': tabIdentifier,
'text': injectionCount.toString()
});
} else {
chrome.browserAction.setBadgeText({
tabId: tabIdentifier,
text: ''
wrappers.setBadgeText({
'tabId': tabIdentifier,
'text': ''
});
}
}
if (isNaN(interceptor.amountInjected)) {
chrome.storage.local.get('amountInjected', function (items) {
chrome.storage.local.get(Setting.AMOUNT_INJECTED, function (items) {
interceptor.amountInjected = items.amountInjected;
@@ -123,14 +114,10 @@ stateManager._createTab = function (tab) {
chrome.webRequest.onBeforeRequest.addListener(function (requestDetails) {
return new Promise((resolve) => {
let tab = stateManager.tabs[tabIdentifier].details || {};
return interceptor.handleRequest(requestDetails, tabIdentifier, tab);
browser.tabs.get(tabIdentifier).then(function (tab) {
resolve(interceptor.handleRequest(requestDetails, tabIdentifier, tab));
});
});
}, requestFilters, [BLOCKING_ACTION]);
}, requestFilters, [WebRequest.BLOCKING]);
};
stateManager._removeTab = function (tabIdentifier) {
@@ -150,9 +137,9 @@ stateManager._updateTab = function (details) {
if (stateManager.showIconBadge === true) {
chrome.browserAction.setBadgeText({
tabId: tabIdentifier,
text: ''
wrappers.setBadgeText({
'tabId': tabIdentifier,
'text': ''
});
}
@@ -165,10 +152,10 @@ stateManager._stripMetadata = function (requestDetails) {
for (let i = 0; i < requestDetails.requestHeaders.length; ++i) {
if (requestDetails.requestHeaders[i].name === 'Origin') {
requestDetails.requestHeaders.splice(i, 1);
} else if (requestDetails.requestHeaders[i].name === 'Referer') {
requestDetails.requestHeaders.splice(i, 1);
if (requestDetails.requestHeaders[i].name === WebRequest.ORIGIN_HEADER) {
requestDetails.requestHeaders.splice(i--, 1);
} else if (requestDetails.requestHeaders[i].name === WebRequest.REFERER_HEADER) {
requestDetails.requestHeaders.splice(i--, 1);
}
}
@@ -180,7 +167,7 @@ stateManager._stripMetadata = function (requestDetails) {
stateManager._handleStorageChanged = function (changes) {
if ('showIconBadge' in changes) {
stateManager.showIconBadge = changes.showIconBadge.newValue;
if (changes.showIconBadge.newValue !== true) {
@@ -199,22 +186,22 @@ stateManager._handleStorageChanged = function (changes) {
onBeforeSendHeaders.removeListener(stateManager._stripMetadata, {
'urls': stateManager.validHosts
}, [BLOCKING_ACTION, REQUEST_HEADERS]);
}, [WebRequest.BLOCKING, WebRequest.HEADERS]);
if (changes.stripMetadata.newValue !== false) {
onBeforeSendHeaders.addListener(stateManager._stripMetadata, {
'urls': stateManager.validHosts
}, [BLOCKING_ACTION, REQUEST_HEADERS]);
}, [WebRequest.BLOCKING, WebRequest.HEADERS]);
}
}
};
stateManager._removeIconBadgeFromTab = function (tab) {
chrome.browserAction.setBadgeText({
tabId: tab.id,
text: ''
wrappers.setBadgeText({
'tabId': tab.id,
'text': ''
});
};
@@ -228,11 +215,7 @@ stateManager.validHosts = [];
for (let mapping in mappings) {
if (!mappings.hasOwnProperty(mapping)) {
continue;
}
let supportedHost = HOST_PREFIX + mapping + HOST_SUFFIX;
let supportedHost = Address.ANY_PROTOCOL + mapping + Address.ANY_PATH;
stateManager.validHosts.push(supportedHost);
}
@@ -251,8 +234,19 @@ chrome.storage.local.get('showIconBadge', function (items) {
chrome.tabs.onCreated.addListener(stateManager._createTab);
chrome.tabs.onRemoved.addListener(stateManager._removeTab);
chrome.webRequest.onBeforeRequest.addListener(function (requestDetails) {
if (requestDetails.tabId !== -1) {
stateManager.tabs[requestDetails.tabId].details = {
'url': requestDetails.url
};
}
}, {'types': ['main_frame'], 'urls': [Address.ANY]});
chrome.webNavigation.onCommitted.addListener(stateManager._updateTab, {
url: [{urlContains: ':'}]
'url': [{'urlContains': ':'}]
});
chrome.webRequest.onErrorOccurred.addListener(function (requestDetails) {
@@ -261,7 +255,7 @@ chrome.webRequest.onErrorOccurred.addListener(function (requestDetails) {
delete stateManager.requests[requestDetails.requestId];
}
}, {'urls': ['*://*/*']});
}, {'urls': [Address.ANY]});
chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
@@ -273,10 +267,16 @@ chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
delete stateManager.requests[requestDetails.requestId];
}
}, {'urls': ['*://*/*']});
}, {'urls': [Address.ANY]});
chrome.webRequest.onBeforeSendHeaders.addListener(stateManager._stripMetadata, {
'urls': stateManager.validHosts
}, [BLOCKING_ACTION, REQUEST_HEADERS]);
chrome.storage.local.get({'stripMetadata': true}, function (options) {
if (options === null || options.stripMetadata !== false) {
chrome.webRequest.onBeforeSendHeaders.addListener(stateManager._stripMetadata, {
'urls': stateManager.validHosts
}, [WebRequest.BLOCKING, WebRequest.HEADERS]);
}
});
chrome.storage.onChanged.addListener(stateManager._handleStorageChanged);

View File

@@ -11,6 +11,7 @@
"da": "da"
"de": "de"
"el": "el"
"et": "et"
"eo": "eo"
"es-ES": "es"
"fi": "fi"
@@ -21,9 +22,11 @@
"is": "is"
"it": "it"
"ja": "ja"
"ko": "ko"
"nl": "nl"
"pl": "pl"
"ro": "ro"
"ru": "ru"
"sr": "sr"
"sv-SE": "sv"
"tr": "tr"

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 925 B

After

Width:  |  Height:  |  Size: 671 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 B

After

Width:  |  Height:  |  Size: 713 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 608 B

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Decentraleyes",
"version": "2.0.0beta3",
"version": "2.0.2",
"author": "Thomas Rientjes",
@@ -39,19 +39,18 @@
"38": "icons/action/icon38.png",
"64": "icons/action/icon64.png"
},
"default_popup": "pages/popup/popup.html",
"browser_style": false
"default_popup": "pages/popup/popup.html",
"browser_style": false
},
"options_ui": {
"page": "pages/options/options.html",
"browser_style": false
"page": "pages/options/options.html"
},
"applications": {
"gecko": {
"id": "jid1-BoFifL9Vbdl2zQ@jetpack",
"strict_min_version": "56.0a1"
"id": "jid1-BoFifL9Vbdl2zQ@jetpack",
"strict_min_version": "56.0a1"
}
},

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

211
modules/internal/helpers.js Normal file
View File

@@ -0,0 +1,211 @@
/**
* Internal Helper Module
* Belongs to Decentraleyes.
*
* @author Thomas Rientjes
* @since 2017-10-26
* @license MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
/**
* Helpers
*/
var helpers = {};
/**
* Public Methods
*/
helpers.insertI18nContentIntoDocument = function (document) {
let scriptDirection, i18nElements;
scriptDirection = helpers.determineScriptDirection(navigator.language);
i18nElements = document.querySelectorAll('[data-i18n-content]');
i18nElements.forEach(function (i18nElement) {
let i18nMessageName = i18nElement.getAttribute('data-i18n-content');
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
i18nElement.setAttribute('dir', scriptDirection);
});
};
helpers.insertI18nTitlesIntoDocument = function (document) {
let scriptDirection, i18nElements;
scriptDirection = helpers.determineScriptDirection(navigator.language);
i18nElements = document.querySelectorAll('[data-i18n-title]');
i18nElements.forEach(function (i18nElement) {
let i18nMessageName = i18nElement.getAttribute('data-i18n-title');
i18nElement.setAttribute('title', chrome.i18n.getMessage(i18nMessageName));
i18nElement.setAttribute('dir', scriptDirection);
});
};
helpers.languageIsFullySupported = function (language) {
let languageSupported, supportedLanguages;
languageSupported = false;
supportedLanguages = [
'ar', 'bg', 'zh', 'da', 'nl', 'en', 'et', 'fi', 'fr', 'de', 'el', 'is',
'id', 'it', 'ja', 'ko', 'pl', 'pt', 'ro', 'ru', 'es', 'sv', 'tr'
];
for (let supportedLanguage of supportedLanguages) {
if (language.search(supportedLanguage) !== -1) {
languageSupported = true;
}
}
return languageSupported;
};
helpers.normalizeDomain = function (domain) {
domain = domain.toLowerCase().trim();
if (domain.startsWith(Address.WWW_PREFIX)) {
domain = domain.slice(Address.WWW_PREFIX.length);
}
return domain;
};
helpers.extractDomainFromUrl = function (url, normalize) {
let extractedDomain;
try {
extractedDomain = new URL(url).host;
} catch (exception) {
extractedDomain = null;
}
if (extractedDomain === '') {
extractedDomain = null;
}
if (extractedDomain !== null && normalize === true) {
extractedDomain = helpers.normalizeDomain(extractedDomain);
}
return extractedDomain;
};
helpers.extractFilenameFromPath = function (path) {
let pathSegments, filename;
pathSegments = path.split('/');
filename = pathSegments[pathSegments.length - 1];
return filename;
};
helpers.determineCdnName = function (domainName) {
switch (domainName) {
case 'ajax.googleapis.com':
return 'Google Hosted Libraries';
case 'ajax.aspnetcdn.com':
return 'Microsoft Ajax CDN';
case 'ajax.microsoft.com':
return 'Microsoft Ajax CDN [Deprecated]';
case 'cdnjs.cloudflare.com':
return 'CDNJS (Cloudflare)';
case 'code.jquery.com':
return 'jQuery CDN (MaxCDN)';
case 'cdn.jsdelivr.net':
return 'jsDelivr (MaxCDN)';
case 'yastatic.net':
return 'Yandex CDN';
case 'yandex.st':
return 'Yandex CDN [Deprecated]';
case 'libs.baidu.com':
return 'Baidu CDN';
case 'lib.sinaapp.com':
return 'Sina Public Resources';
case 'upcdn.b0.upaiyun.com':
return 'UpYun Library';
default:
return 'Unknown';
}
};
helpers.determineResourceName = function (filename) {
switch (filename) {
case 'angular.min.js.dec':
return 'AngularJS';
case 'backbone-min.js.dec':
return 'Backbone.js';
case 'dojo.js.dec':
return 'Dojo';
case 'ember.min.js.dec':
return 'Ember.js';
case 'ext-core.js.dec':
return 'Ext Core';
case 'jquery.min.js.dec':
return 'jQuery';
case 'jquery-ui.min.js.dec':
return 'jQuery UI';
case 'modernizr.min.js.dec':
return 'Modernizr';
case 'mootools-yui-compressed.js.dec':
return 'MooTools';
case 'prototype.js.dec':
return 'Prototype';
case 'scriptaculous.js.dec':
return 'Scriptaculous';
case 'swfobject.js.dec':
return 'SWFObject';
case 'underscore-min.js.dec':
return 'Underscore.js';
case 'webfont.js.dec':
return 'Web Font Loader';
default:
return 'Unknown';
}
};
helpers.determineScriptDirection = function (language) {
let rightToLeftLanguages, scriptDirection;
rightToLeftLanguages = ['ar', 'he'];
if (rightToLeftLanguages.indexOf(language) === -1) {
scriptDirection = 'ltr';
} else {
scriptDirection = 'rtl';
}
return scriptDirection;
};
helpers.formatVersion = function (version) {
if (version.indexOf('beta') === -1) {
return version;
} else {
return 'BETA';
}
};

View File

@@ -0,0 +1,38 @@
/**
* Internal API Wrapper Module
* Belongs to Decentraleyes.
*
* @author Thomas Rientjes
* @since 2017-12-03
* @license MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict';
/**
* Wrappers
*/
var wrappers = {};
/**
* Public Methods
*/
wrappers.setBadgeBackgroundColor = function (details) {
if (chrome.browserAction.setBadgeBackgroundColor !== undefined) {
chrome.browserAction.setBadgeBackgroundColor(details);
}
};
wrappers.setBadgeText = function (details) {
if (chrome.browserAction.setBadgeText !== undefined) {
chrome.browserAction.setBadgeText(details);
}
};

View File

@@ -10,6 +10,10 @@
<body>
<script src="../../modules/internal/wrappers.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<script src="../../core/constants.js"></script>
<script src="../../core/files.js"></script>
<script src="../../core/resources.js"></script>
<script src="../../core/mappings.js"></script>

View File

@@ -11,13 +11,16 @@
<link rel="stylesheet" type="text/css" href="options.css">
<script defer src="../../modules/fontawesome/packs/solid.js"></script>
<script defer src="../../modules/fontawesome/fontawesome.js"></script>
<script defer src="../../modules/fontawesome/icon-bundle.min.js"></script>
<script defer src="../../modules/fontawesome/fontawesome.min.js"></script>
</head>
<body>
<script src="../../core/constants.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<script src="options.js"></script>
<section class="option">
@@ -106,7 +109,7 @@
<div class="notice-body" dir="ltr">
<i class="fas fa-exclamation-triangle icon"></i>
<i class="fai fa-exclamation-triangle icon"></i>
Your preferred language is not yet fully supported.
<a class="link-text" href="https://crowdin.com/project/decentraleyes" target="_blank">
Help Translate

View File

@@ -19,175 +19,175 @@
var options = {};
/**
* Constants
*/
const WEB_PREFIX_VALUE = 'www.';
const WEB_PREFIX_LENGTH = WEB_PREFIX_VALUE.length;
const VALUE_SEPARATOR = ';';
/**
* Private Methods
*/
options._determineScriptDirection = function (language) {
options._renderContents = function () {
let rightToLeftLanguages, scriptDirection;
document.body.setAttribute('dir', options._scriptDirection);
helpers.insertI18nContentIntoDocument(document);
rightToLeftLanguages = ['ar', 'he'];
if (rightToLeftLanguages.indexOf(language) !== -1) {
scriptDirection = 'rtl';
} else {
scriptDirection = 'ltr';
}
return scriptDirection;
options._determineOptionValues()
.then(options._renderOptionsPanel);
};
options._languageIsFullySupported = function (language) {
options._renderOptionsPanel = function () {
let languageSupported, supportedLanguages;
let whitelistedDomains, domainWhitelist, elements;
languageSupported = false;
whitelistedDomains = options._optionValues.whitelistedDomains;
domainWhitelist = options._serializeWhitelistedDomains(whitelistedDomains);
supportedLanguages = ['ar', 'bg', 'zh-CN', 'zh-TW', 'nl', 'en', 'fi', 'fr',
'de', 'he', 'is', 'id', 'pl', 'pt-PT', 'ro', 'es', 'tr'];
elements = options._optionElements;
for (let supportedLanguage of supportedLanguages) {
elements.showIconBadge.checked = options._optionValues.showIconBadge;
elements.blockMissing.checked = options._optionValues.blockMissing;
elements.disablePrefetch.checked = options._optionValues.disablePrefetch;
elements.stripMetadata.checked = options._optionValues.stripMetadata;
elements.whitelistedDomains.value = domainWhitelist;
if (language.search(supportedLanguage) !== -1) {
languageSupported = true;
}
options._registerOptionChangedEventListeners(elements);
if (options._languageSupported === false) {
options._renderLocaleNotice();
}
};
return languageSupported;
options._renderLocaleNotice = function () {
let localeNoticeElement = document.getElementById('notice-locale');
localeNoticeElement.setAttribute('class', 'notice');
};
options._registerOptionChangedEventListeners = function (elements) {
elements.showIconBadge.addEventListener('change', options._onOptionChanged);
elements.blockMissing.addEventListener('change', options._onOptionChanged);
elements.disablePrefetch.addEventListener('change', options._onOptionChanged);
elements.stripMetadata.addEventListener('change', options._onOptionChanged);
elements.whitelistedDomains.addEventListener('keyup', options._onOptionChanged);
};
options._determineOptionValues = function () {
return new Promise((resolve) => {
let optionKeys = Object.keys(options._optionElements);
chrome.storage.local.get(optionKeys, function (items) {
options._optionValues = items;
resolve();
});
});
};
options._getOptionElement = function (optionKey) {
return document.querySelector('[data-option=' + optionKey + ']');
return document.querySelector(`[data-option=${optionKey}]`);
};
options._getOptionElements = function () {
let optionElements = {
'showIconBadge': options._getOptionElement(Setting.SHOW_ICON_BADGE),
'blockMissing': options._getOptionElement(Setting.BLOCK_MISSING),
'disablePrefetch': options._getOptionElement(Setting.DISABLE_PREFETCH),
'stripMetadata': options._getOptionElement(Setting.STRIP_METADATA),
'whitelistedDomains': options._getOptionElement(Setting.WHITELISTED_DOMAINS)
};
return optionElements;
};
options._configureLinkPrefetching = function (value) {
if (value === false) {
// Restore default values of related preference values.
chrome.privacy.network.networkPredictionEnabled.clear({});
} else {
chrome.privacy.network.networkPredictionEnabled.set({
'value': false
});
}
};
options._serializeWhitelistedDomains = function (whitelistedDomains) {
let domainWhitelist, whitelistedDomainKeys;
whitelistedDomainKeys = Object.keys(whitelistedDomains);
domainWhitelist = '';
whitelistedDomainKeys.forEach(function (domain) {
domainWhitelist = `${domainWhitelist}${domain};`;
});
domainWhitelist = domainWhitelist.slice(0, -1);
domainWhitelist = domainWhitelist.replace(Whitelist.TRIM_EXPRESSION, '');
return domainWhitelist;
};
options._parseDomainWhitelist = function (domainWhitelist) {
let whitelistedDomains = {};
domainWhitelist.split(Whitelist.VALUE_SEPARATOR).forEach(function (domain) {
whitelistedDomains[helpers.normalizeDomain(domain)] = true;
});
return whitelistedDomains;
};
/**
* Event Handlers
*/
options._onDocumentLoaded = function () {
let language = navigator.language;
options._optionElements = options._getOptionElements();
options._languageSupported = helpers.languageIsFullySupported(language);
options._scriptDirection = helpers.determineScriptDirection(language);
options._renderContents();
};
options._onOptionChanged = function ({target}) {
let optionKey, optionType, optionValue;
optionKey = target.getAttribute('data-option');
optionType = target.getAttribute('type');
switch (optionType) {
case 'checkbox':
optionValue = target.checked;
break;
default:
optionValue = target.value;
}
if (optionKey === Setting.DISABLE_PREFETCH) {
options._configureLinkPrefetching(optionValue);
}
if (optionKey === Setting.WHITELISTED_DOMAINS) {
optionValue = options._parseDomainWhitelist(optionValue);
}
chrome.storage.local.set({
[optionKey]: optionValue
});
};
/**
* Initializations
*/
document.addEventListener('DOMContentLoaded', function () {
let i18nElements, scriptDirection, languageSupported, optionElements;
i18nElements = document.querySelectorAll('[data-i18n-content]');
scriptDirection = options._determineScriptDirection(navigator.language);
document.body.setAttribute('dir', scriptDirection);
languageSupported = options._languageIsFullySupported(navigator.language);
if (languageSupported === false) {
let localeNoticeElement = document.getElementById('notice-locale');
localeNoticeElement.setAttribute('class', 'notice');
}
i18nElements.forEach(function (i18nElement) {
let i18nMessageName = i18nElement.getAttribute('data-i18n-content');
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
});
optionElements = {
'showIconBadge': options._getOptionElement('showIconBadge'),
'blockMissing': options._getOptionElement('blockMissing'),
'disablePrefetch': options._getOptionElement('disablePrefetch'),
'stripMetadata': options._getOptionElement('stripMetadata'),
'whitelistedDomains': options._getOptionElement('whitelistedDomains')
};
chrome.storage.local.get(Object.keys(optionElements), function (items) {
let whitelistedDomains, domainWhitelist;
whitelistedDomains = items.whitelistedDomains;
domainWhitelist = '';
Object.keys(whitelistedDomains).forEach(function (domain) {
domainWhitelist = domainWhitelist + domain + ';';
});
domainWhitelist = domainWhitelist.slice(0, -1);
domainWhitelist = domainWhitelist.replace(/^;+|;+$/g, '');
optionElements.showIconBadge.checked = items.showIconBadge;
optionElements.blockMissing.checked = items.blockMissing;
optionElements.disablePrefetch.checked = items.disablePrefetch;
optionElements.stripMetadata.checked = items.stripMetadata;
optionElements.whitelistedDomains.value = domainWhitelist;
});
let optionChangedHandler = function ({target}) {
let optionKey, optionType, optionValue;
optionKey = target.getAttribute('data-option');
optionType = target.getAttribute('type');
switch (optionType) {
case 'checkbox':
optionValue = target.checked;
break;
default:
optionValue = target.value;
}
if (optionKey === 'disablePrefetch') {
if (optionValue === false) {
// Restore default values of related preference values.
chrome.privacy.network.networkPredictionEnabled.clear({});
} else {
chrome.privacy.network.networkPredictionEnabled.set({
'value': false
});
}
}
if (optionKey === 'whitelistedDomains') {
let domainWhitelist = optionValue;
optionValue = {};
domainWhitelist.split(VALUE_SEPARATOR).forEach(function (domain) {
optionValue[_normalizeDomain(domain)] = true;
});
}
chrome.storage.local.set({
[optionKey]: optionValue
});
};
optionElements.showIconBadge.addEventListener('change', optionChangedHandler);
optionElements.blockMissing.addEventListener('change', optionChangedHandler);
optionElements.disablePrefetch.addEventListener('change', optionChangedHandler);
optionElements.stripMetadata.addEventListener('change', optionChangedHandler);
optionElements.whitelistedDomains.addEventListener('keyup', optionChangedHandler);
});
/**
* Private Methods
*/
function _normalizeDomain(domain) {
domain = domain.toLowerCase().trim();
if (domain.startsWith(WEB_PREFIX_VALUE)) {
domain = domain.slice(WEB_PREFIX_LENGTH);
}
return domain;
}
document.addEventListener('DOMContentLoaded', options._onDocumentLoaded);

View File

@@ -11,7 +11,7 @@ body {
margin: 0 auto;
overflow: hidden;
padding: 0;
width: 348px;
max-width: 348px;
}
header {
@@ -228,7 +228,7 @@ footer {
display: none;
}
.label-beta {
.label-version {
color: #6aac91;
font-size: 9px;
}
@@ -247,3 +247,14 @@ footer {
font-style: italic;
font-weight: 400;
}
/**
* Compatibility
*/
@media screen and (-webkit-min-device-pixel-ratio: 0) {
body {
width: 348px;
}
}

View File

@@ -2,71 +2,74 @@
<html>
<head>
<head>
<title>Decentraleyes Popup</title>
<title>Decentraleyes Popup</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="popup.css">
<link rel="stylesheet" type="text/css" href="popup.css">
<script defer src="../../modules/fontawesome/packs/solid.js"></script>
<script defer src="../../modules/fontawesome/fontawesome.js"></script>
<script defer src="../../modules/fontawesome/icon-bundle.min.js"></script>
<script defer src="../../modules/fontawesome/fontawesome.min.js"></script>
</head>
</head>
<body>
<body>
<script src="popup.js"></script>
<script src="../../core/constants.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<header>
<script src="popup.js"></script>
<img class="icon-logo" src="icon.svg" alt="Extension Icon">
<div class="heading">Decentraleyes <sup class="label-beta">BETA</sup></div>
<header>
</header>
<img class="icon-logo" src="icon.svg" alt="Extension Icon">
<div class="heading">Decentraleyes <sup id="version-label" class="label-version"></sup></div>
<section class="content">
</header>
<div id="website-context" class="panel hidden">
<section class="content">
<div class="subpanel">
<div id="website-context" class="panel hidden">
<div id="protection-toggle-button" class="button button-toggle active">
<i class="fas fa-power-off" data-fa-transform="grow-2"></i>
</div>
<div class="subpanel">
<div id="protection-toggle-button" class="button button-toggle active">
<i class="fai fa-power-off" data-fa-transform="grow-2 down-.5"></i>
</div>
<div class="label-domain">
<i class="icon fai fa-globe fa-lg" data-fa-transform="down-1"></i>
<span id="domain-indicator"></span>
</div>
<div class="label-domain">
<i class="icon fas fa-globe fa-lg" data-fa-transform="down-1"></i>
<span id="domain-indicator"></span>
</div>
</div>
</div>
<div id="extension-context" class="panel">
<div id="extension-context" class="panel">
<div id="injection-counter" class="counter">0</div>
<div id="injection-counter" class="counter">0</div>
<div class="subheading" data-i18n-content="amountInjectedTitle"></div>
<div class="description" data-i18n-content="amountInjectedDescription"></div>
<div class="subheading" data-i18n-content="amountInjectedTitle"></div>
<div class="description" data-i18n-content="amountInjectedDescription"></div>
</div>
</div>
</section>
</section>
<footer>
<footer>
<span id="testing-utility-link" class="link-text">decentraleyes.org/test</span>
<span id="testing-utility-link" class="link-text">decentraleyes.org/test</span>
<div id="options-button" class="button" data-i18n-title="optionsTitle">
<i class="fai fa-cog" data-fa-transform="grow-2 down-.5"></i>
</div>
<div id="options-button" class="button">
<i class="fas fa-cog" data-fa-transform="grow-2"></i>
</div>
</footer>
</footer>
</body>
</body>
</html>

View File

@@ -19,350 +19,315 @@
var popup = {};
/**
* Constants
*/
const WEB_DOMAIN_EXPRESSION = /:\/\/(.[^\/]+)(.*)/;
const WEB_PREFIX_VALUE = 'www.';
const WEB_PREFIX_LENGTH = WEB_PREFIX_VALUE.length;
/**
* Private Methods
*/
popup._determineScriptDirection = function (language) {
popup._renderContents = function () {
let rightToLeftLanguages, scriptDirection;
helpers.insertI18nContentIntoDocument(document);
helpers.insertI18nTitlesIntoDocument(document);
rightToLeftLanguages = ['ar', 'he'];
popup._renderNonContextualContents();
if (rightToLeftLanguages.indexOf(language) !== -1) {
scriptDirection = 'rtl';
} else {
scriptDirection = 'ltr';
if (popup._backgroundPage !== null) {
popup._determineTargetTab()
.then(popup._renderContextualContents);
}
};
popup._renderNonContextualContents = function () {
let versionLabelElement, counterElement, testingUtilityLinkElement, optionsButtonElement;
versionLabelElement = document.getElementById('version-label');
counterElement = document.getElementById('injection-counter');
testingUtilityLinkElement = document.getElementById('testing-utility-link');
optionsButtonElement = document.getElementById('options-button');
versionLabelElement.innerText = popup._version;
counterElement.innerText = popup._amountInjected;
testingUtilityLinkElement.addEventListener('mouseup', popup._onTestingUtilityLinkClicked);
optionsButtonElement.addEventListener('mouseup', popup._onOptionsButtonClicked);
};
popup._renderContextualContents = function () {
let injections, groupedInjections;
popup._domain = helpers.extractDomainFromUrl(popup._targetTab.url);
popup._requestAnalyzer = popup._backgroundPage.requestAnalyzer;
popup._stateManager = popup._backgroundPage.stateManager;
if (popup._domain !== null) {
popup._domain = helpers.normalizeDomain(popup._domain);
popup._renderDomainWhitelistPanel();
}
return scriptDirection;
injections = popup._stateManager.tabs[popup._targetTab.id].injections;
groupedInjections = popup._groupResourceInjections(injections);
if (Object.keys(groupedInjections).length > 0) {
popup._renderInjectionPanel(groupedInjections);
}
};
popup._renderDomainWhitelistPanel = function () {
let websiteContextElement, protectionToggleElement, domainIndicatorElement;
websiteContextElement = document.getElementById('website-context');
protectionToggleElement = document.getElementById('protection-toggle-button');
domainIndicatorElement = document.getElementById('domain-indicator');
protectionToggleElement.setAttribute('dir', popup._scriptDirection);
domainIndicatorElement.innerText = popup._domain;
if (popup._requestAnalyzer.whitelistedDomains[popup._domain]) {
let enableProtectionTitle = chrome.i18n.getMessage('enableProtectionTitle');
protectionToggleElement.setAttribute('class', 'button button-toggle');
protectionToggleElement.addEventListener('click', popup._enableProtection);
protectionToggleElement.setAttribute('title', enableProtectionTitle);
} else {
let disableProtectionTitle = chrome.i18n.getMessage('disableProtectionTitle');
protectionToggleElement.setAttribute('class', 'button button-toggle active');
protectionToggleElement.addEventListener('click', popup._disableProtection);
protectionToggleElement.setAttribute('title', disableProtectionTitle);
}
websiteContextElement.setAttribute('class', 'panel');
};
popup._renderInjectionPanel = function (groupedInjections) {
let websiteContextElement, injectionOverviewElement;
websiteContextElement = document.getElementById('website-context');
injectionOverviewElement = popup._createInjectionOverviewElement(groupedInjections);
websiteContextElement.append(injectionOverviewElement);
};
popup._enableProtection = function () {
popup._stateManager.deleteDomainFromWhitelist(popup._domain)
.then(popup._onProtectionToggled);
};
popup._disableProtection = function () {
popup._stateManager.addDomainToWhitelist(popup._domain)
.then(popup._onProtectionToggled);
};
popup._determineBackgroundPage = function () {
return new Promise((resolve) => {
chrome.runtime.getBackgroundPage(function (backgroundPage) {
popup._backgroundPage = backgroundPage;
resolve();
});
});
};
popup._determineTargetTab = function () {
return new Promise((resolve) => {
chrome.tabs.query({'active': true, 'currentWindow': true}, function (tabs) {
popup._targetTab = tabs[0];
resolve();
});
});
};
popup._determineAmountInjected = function () {
return new Promise((resolve) => {
chrome.storage.local.get('amountInjected', function (items) {
popup._amountInjected = items.amountInjected || 0;
resolve();
});
});
};
popup._groupResourceInjections = function (injections) {
let groupedInjections = {};
for (let index in injections) {
let {source} = injections[index];
groupedInjections[source] = groupedInjections[source] || [];
groupedInjections[source].push(injections[index]);
}
return groupedInjections;
};
popup._createInjectionOverviewElement = function (groupedInjections) {
let injectionOverviewElement = document.createElement('ul');
injectionOverviewElement.setAttribute('class', 'list');
for (let source in groupedInjections) {
let injectionGroupHeaderElement, injectionGroupElement, cdn;
cdn = groupedInjections[source];
injectionGroupHeaderElement = popup._createInjectionGroupHeaderElement(source, cdn);
injectionGroupElement = popup._createInjectionGroupElement(source, cdn);
injectionOverviewElement.appendChild(injectionGroupHeaderElement);
injectionOverviewElement.appendChild(injectionGroupElement);
}
return injectionOverviewElement;
};
popup._createInjectionGroupHeaderElement = function (source, cdn) {
let injectionGroupHeaderElement, badgeElement, badgeTextNode, cdnNameTextNode;
injectionGroupHeaderElement = document.createElement('li');
injectionGroupHeaderElement.setAttribute('class', 'list-item');
badgeElement = document.createElement('span');
badgeElement.setAttribute('class', 'badge');
badgeTextNode = document.createTextNode(cdn.length);
badgeElement.appendChild(badgeTextNode);
cdnNameTextNode = document.createTextNode(helpers.determineCdnName(source));
injectionGroupHeaderElement.appendChild(badgeElement);
injectionGroupHeaderElement.appendChild(cdnNameTextNode);
return injectionGroupHeaderElement;
};
popup._createInjectionGroupElement = function (source, cdn) {
let injectionGroupElement;
injectionGroupElement = document.createElement('ul');
injectionGroupElement.setAttribute('class', 'sublist');
for (let injection of cdn) {
let injectionElement = popup._createInjectionElement(injection);
injectionGroupElement.appendChild(injectionElement);
}
return injectionGroupElement;
};
popup._createInjectionElement = function (injection) {
let injectionElement, filename, name, nameTextNode, noteElement, noteTextNode;
injectionElement = document.createElement('li');
injectionElement.setAttribute('class', 'sublist-item');
filename = helpers.extractFilenameFromPath(injection.path);
name = helpers.determineResourceName(filename);
nameTextNode = document.createTextNode(`- ${name}`);
injectionElement.appendChild(nameTextNode);
noteElement = document.createElement('span');
noteElement.setAttribute('class', 'side-note');
noteTextNode = document.createTextNode(` v${injection.version}`);
noteElement.appendChild(noteTextNode);
injectionElement.appendChild(noteElement);
return injectionElement;
};
popup._close = function () {
chrome.runtime.getPlatformInfo(function (information) {
if (information.os === chrome.runtime.PlatformOs.ANDROID) {
chrome.tabs.getCurrent(function (tab) {
chrome.tabs.remove(tab.id);
});
} else {
window.close();
}
});
};
/**
* Event Handlers
*/
popup._onDocumentLoaded = function () {
let manifest, language;
manifest = chrome.runtime.getManifest();
language = navigator.language;
popup._version = helpers.formatVersion(manifest.version);
popup._scriptDirection = helpers.determineScriptDirection(language);
popup._determineBackgroundPage()
.then(popup._determineAmountInjected)
.then(popup._renderContents);
};
popup._onTestingUtilityLinkClicked = function (event) {
if (event.button === 0 || event.button === 1) {
chrome.tabs.create({
'url': 'https://decentraleyes.org/test',
'active': (event.button === 0)
});
}
if (event.button === 0) {
window.close();
}
};
popup._onOptionsButtonClicked = function () {
chrome.runtime.openOptionsPage();
return window.close();
};
popup._onProtectionToggled = function () {
let bypassCache = (typeof browser === 'undefined');
chrome.tabs.reload(popup._targetTab.id, {bypassCache});
popup._close();
};
/**
* Initializations
*/
document.addEventListener('DOMContentLoaded', function () {
let optionsButtonElement, optionsTitle, scriptDirection, i18nElements;
optionsButtonElement = document.getElementById('options-button');
optionsTitle = chrome.i18n.getMessage('optionsTitle');
scriptDirection = popup._determineScriptDirection(navigator.language);
optionsButtonElement.setAttribute('title', optionsTitle);
optionsButtonElement.setAttribute('dir', scriptDirection);
i18nElements = document.querySelectorAll('[data-i18n-content]');
i18nElements.forEach(function (i18nElement) {
let i18nMessageName = i18nElement.getAttribute('data-i18n-content');
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
i18nElement.setAttribute('dir', scriptDirection);
});
chrome.storage.local.get('amountInjected', function (items) {
let amountInjected = items.amountInjected || 0;
document.getElementById('injection-counter').innerText = amountInjected;
chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
browser.runtime.getBackgroundPage().then(function (backgroundPage) {
if (backgroundPage === null) {
return;
}
popup.backgroundPage = backgroundPage;
if (backgroundPage.main.operatingSystem === 'android') {
browser.tabs.getCurrent().then(function (tab) {
browser.tabs.update(tab.id, {
'active': true
});
});
}
let injections, injectionOverview, domain;
injections = backgroundPage.stateManager.tabs[tabs[0].id].injections;
injectionOverview = {};
try {
domain = tabs[0].url.match(WEB_DOMAIN_EXPRESSION)[1];
} catch (exception) {
domain = null;
}
if (domain !== null) {
let websiteContextElement, protectionToggleElement, domainIndicatorElement;
websiteContextElement = document.getElementById('website-context');
protectionToggleElement = document.getElementById('protection-toggle-button');
domainIndicatorElement = document.getElementById('domain-indicator');
if (domain.startsWith(WEB_PREFIX_VALUE)) {
domain = domain.slice(WEB_PREFIX_LENGTH);
}
domainIndicatorElement.innerText = domain;
if (!backgroundPage.requestAnalyzer.whitelistedDomains[domain]) {
protectionToggleElement.setAttribute('class', 'button button-toggle active');
let disableProtectionTitle = chrome.i18n.getMessage('disableProtectionTitle');
protectionToggleElement.setAttribute('title', disableProtectionTitle);
protectionToggleElement.setAttribute('dir', scriptDirection);
protectionToggleElement.addEventListener('click', function () {
backgroundPage.stateManager.addDomainToWhitelist(domain).then(function () {
chrome.tabs.reload(tabs[0].id);
if (backgroundPage.main.operatingSystem === 'android') {
return browser.tabs.getCurrent().then(function (tab) {
browser.tabs.remove(tab.id);
});
}
return window.close();
});
});
} else {
protectionToggleElement.setAttribute('class', 'button button-toggle');
let enableProtectionTitle = chrome.i18n.getMessage('enableProtectionTitle');
protectionToggleElement.setAttribute('title', enableProtectionTitle);
protectionToggleElement.addEventListener('click', function () {
backgroundPage.stateManager.deleteDomainFromWhitelist(domain).then(function () {
chrome.tabs.reload(tabs[0].id);
if (backgroundPage.main.operatingSystem === 'android') {
return browser.tabs.getCurrent().then(function (tab) {
browser.tabs.remove(tab.id);
});
}
return window.close();
});
});
}
websiteContextElement.setAttribute('class', 'panel');
}
for (let injection in injections) {
injection = injections[injection];
let injectionSource = injection.source;
injectionOverview[injectionSource] = injectionOverview[injectionSource] || [];
injectionOverview[injectionSource].push({
'path': injection.path,
'version': injection.version,
'source': injection.source
});
}
let listElement = document.createElement('ul');
listElement.setAttribute('class', 'list');
for (let injectionSource in injectionOverview) {
let cdn, listItemElement, badgeElement, badgeTextNode, cdnName, cdnNameTextNode, subListElement;
cdn = injectionOverview[injectionSource];
listItemElement = document.createElement('li');
listItemElement.setAttribute('class', 'list-item');
badgeElement = document.createElement('span');
badgeElement.setAttribute('class', 'badge');
badgeTextNode = document.createTextNode(cdn.length);
badgeElement.appendChild(badgeTextNode);
switch (injectionSource) {
case 'ajax.googleapis.com':
cdnName = 'Google Hosted Libraries';
break;
case 'ajax.aspnetcdn.com':
cdnName = 'Microsoft Ajax CDN';
break;
case 'ajax.microsoft.com':
cdnName = 'Microsoft Ajax CDN [Deprecated]';
break;
case 'cdnjs.cloudflare.com':
cdnName = 'CDNJS (Cloudflare)';
break;
case 'code.jquery.com':
cdnName = 'jQuery CDN (MaxCDN)';
break;
case 'cdn.jsdelivr.net':
cdnName = 'jsDelivr (MaxCDN)';
break;
case 'yastatic.net':
cdnName = 'Yandex CDN';
break;
case 'yandex.st':
cdnName = 'Yandex CDN [Deprecated]';
break;
case 'libs.baidu.com':
cdnName = 'Baidu CDN';
break;
case 'lib.sinaapp.com':
cdnName = 'Sina Public Resources';
break;
case 'upcdn.b0.upaiyun.com':
cdnName = 'UpYun Library';
break;
}
cdnNameTextNode = document.createTextNode(cdnName);
listItemElement.appendChild(badgeElement);
listItemElement.appendChild(cdnNameTextNode);
listElement.appendChild(listItemElement);
subListElement = document.createElement('ul');
subListElement.setAttribute('class', 'sublist');
listElement.appendChild(subListElement);
for (let injection of cdn) {
let subListItemElement, resourcePathDetails, resourceFilename, resourceName,
resourceNameTextNode, sideNoteElement, sideNoteTextNode;
subListItemElement = document.createElement('li');
subListItemElement.setAttribute('class', 'sublist-item');
resourcePathDetails = injection.path.split('/');
resourceFilename = resourcePathDetails[resourcePathDetails.length - 1];
switch (resourceFilename) {
case 'angular.min.js.dec':
resourceName = 'AngularJS';
break;
case 'backbone-min.js.dec':
resourceName = 'Backbone.js';
break;
case 'dojo.js.dec':
resourceName = 'Dojo';
break;
case 'ember.min.js.dec':
resourceName = 'Ember.js';
break;
case 'ext-core.js.dec':
resourceName = 'Ext Core';
break;
case 'jquery.min.js.dec':
resourceName = 'jQuery';
break;
case 'jquery-ui.min.js.dec':
resourceName = 'jQuery UI';
break;
case 'modernizr.min.js.dec':
resourceName = 'Modernizr';
break;
case 'mootools-yui-compressed.js.dec':
resourceName = 'MooTools';
break;
case 'prototype.js.dec':
resourceName = 'Prototype';
break;
case 'scriptaculous.js.dec':
resourceName = 'Scriptaculous';
break;
case 'swfobject.js.dec':
resourceName = 'SWFObject';
break;
case 'underscore-min.js.dec':
resourceName = 'Underscore.js';
break;
case 'webfont.js.dec':
resourceName = 'Web Font Loader';
break;
}
resourceNameTextNode = document.createTextNode('- ' + resourceName);
subListItemElement.appendChild(resourceNameTextNode);
sideNoteElement = document.createElement('span');
sideNoteElement.setAttribute('class', 'side-note');
sideNoteTextNode = document.createTextNode(' v' + injection.version);
sideNoteElement.appendChild(sideNoteTextNode);
subListItemElement.appendChild(sideNoteElement);
subListElement.appendChild(subListItemElement);
}
}
if (Object.keys(injectionOverview).length > 0) {
let websiteContextElement = document.getElementById('website-context');
websiteContextElement.append(listElement);
}
});
});
});
optionsButtonElement.addEventListener('mouseup', function () {
if (popup.backgroundPage.main.operatingSystem === 'android') {
return chrome.tabs.create({
'url': chrome.extension.getURL('pages/options/options.html')
});
}
chrome.runtime.openOptionsPage();
return window.close();
});
document.getElementById('testing-utility-link').addEventListener('mouseup', function (event) {
if (event.button === 0 || event.button === 1) {
browser.tabs.create({
'url': 'https://decentraleyes.org/test',
'active': (event.button === 0)
});
}
if (event.button === 0) {
window.close();
}
});
});
document.addEventListener('DOMContentLoaded', popup._onDocumentLoaded);

BIN
pages/welcome/favicon.ico Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

40
pages/welcome/logo.svg Normal file
View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="139.98mm" width="213.68mm" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 757.14843 495.97448" xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs>
<linearGradient id="a" y2="-1041.7" gradientUnits="userSpaceOnUse" x2="-2153.9" gradientTransform="matrix(.73610 0 0 1.1184 971.67 1120)" y1="-1983.7" x1="-2153.9">
<stop stop-color="#7c9437" offset="0"/>
<stop stop-color="#eff4e2" offset="1"/>
</linearGradient>
</defs>
<g transform="translate(1012.9 489.91)">
<path d="m-633.52-289.08c-4.2555-0.0136-8.5155 0-12.777 0.0312-127.91 0.89658-252.53 19.355-365.63 52.92a378.57 378.57 0 0 0 -0.9259 18.506 378.57 378.57 0 0 0 0.9472 26.779 378.57 378.57 0 0 0 4.5606 37.566 378.57 378.57 0 0 0 8.2871 36.924 378.57 378.57 0 0 0 11.934 35.91 378.57 378.57 0 0 0 15.457 34.541 378.57 378.57 0 0 0 18.83 32.824 378.57 378.57 0 0 0 13.689 19.143h609.77a378.57 378.57 0 0 0 7.5468 -9.9279 378.57 378.57 0 0 0 19.779 -32.262 378.57 378.57 0 0 0 16.459 -34.074 378.57 378.57 0 0 0 12.977 -35.547 378.57 378.57 0 0 0 9.3634 -36.666 378.57 378.57 0 0 0 5.6543 -37.416 378.57 378.57 0 0 0 1.8905 -37.795 378.57 378.57 0 0 0 -0.60143 -17.018c-116.53-35.116-245.29-54.153-377.21-54.44z" fill-rule="evenodd" fill="url(#a)"/>
<g transform="translate(-3065.9 1490.7)">
<path d="m-8140.9-2348.7a274.29 274.29 0 0 0 -266.58 211.04c7.1369-1.3966 14.205-2.9209 21.4-4.2051 15.036-2.6835 30.198-5.1201 45.469-7.3067 15.271-2.1865 30.653-4.1238 46.129-5.8046 15.476-1.6809 31.048-3.1051 46.699-4.2715 15.651-1.1665 31.383-2.0735 47.18-2.7168 15.797-0.6434 31.658-1.0233 47.57-1.1348 16.954-0.1188 33.863 0.067 50.707 0.5527 16.844 0.4858 33.623 1.2711 50.32 2.3516s33.313 2.4557 49.826 4.1211 32.926 3.6208 49.219 5.8613c16.293 2.2406 32.467 4.7664 48.504 7.5723 10.201 1.7849 20.245 3.8763 30.33 5.8867a274.29 274.29 0 0 0 -266.77 -211.94z" transform="translate(10572 368.09)" fill="#69ab90"/>
<path d="m-8140.5-2258.2a184.16 184.16 0 0 0 -165.9 104.74c3.9985-0.4699 7.9455-1.0683 11.957-1.5039 15.476-1.6809 31.048-3.1051 46.699-4.2715 15.651-1.1665 31.383-2.0735 47.18-2.7168 15.797-0.6434 31.658-1.0233 47.57-1.1348 16.954-0.1188 33.863 0.067 50.707 0.5527 16.844 0.4858 33.623 1.2711 50.32 2.3516s33.313 2.4557 49.826 4.1211c9.3701 0.945 18.626 2.1953 27.928 3.3262a184.16 184.16 0 0 0 -166.29 -105.46z" transform="translate(10572 368.09)" fill="#4a856d"/>
<path d="m-8140.9-2237c-57.78 0.068-111.19 30.788-140.3 80.699 42.151-4.1659 84.969-6.4492 128.16-6.752 51.484-0.3609 102.54 2.0951 152.66 7.2168-29.034-50.162-82.569-81.082-140.53-81.164z" transform="translate(10572 368.09)" fill="#d9ccb5"/>
<path d="m-8139.6-2326.4c-68.213-0.4078-132.43 25.777-181.27 74.619-31.322 31.322-53.165 68.409-64.869 109.85 21.087-3.7573 42.424-7.0203 63.961-9.7968 0.1062-0.2386 0.2051-0.474 0.3125-0.7129 10.523-23.415 22.717-41.107 40.772-59.162 29.234-29.234 64.842-47.747 106.23-55.229 14.678-2.6535 47.206-2.9306 64.086-0.5429 14.755 2.0871 19.279 1.4609 27.205-3.7891 11.038-7.311 15.491-22.356 10.088-34.086-5.7671-12.52-13.568-16.585-37.066-19.334-9.8746-1.1551-19.702-1.7562-29.447-1.8145zm209.14 141.75c-15.595-0.072-28.373 12.42-28.373 27.73 0 2.0809 0.2081 4.0855 0.5879 6.0059 17.56 2.3451 34.986 5.0152 52.252 8.0156 0.3927-0.7733 0.7686-1.5899 1.1309-2.457 7.6967-18.421-5.8421-39.204-25.598-39.295z" fill-rule="evenodd" transform="translate(10572 368.09)" fill="#e1eee9"/>
<path d="m2566.6-1883.9c-3.0097 3.1329-6.9452 2.2975-14.708-2.4482-4.0467-2.2446-5.5995-3.6343-9.6847-5.7832l-6.0229-3.1961-2.0305 3.9932-2.0327 3.9906-3.4678-4.969c-8.9934-12.89-18.056-26.474-17.742-26.592 4.2273-0.3503 19.763-1.3532 37.471-2.7026 0 0-1.0853 2.1672-2.2943 4.5888l-2.0055 4.2775 6.5539 3.5215c3.6047 1.9372 9.4209 5.7407 12.927 8.4524 1.0018 0.7747 1.7262 1.4006 2.4531 2.0301 4.5629 4.4076 4.9708 7.6508 2.557 12.032-0.6314 1.1465-1.2782 2.081-1.9728 2.8041z" fill="#fff"/>
<path d="m-432.68-16.955c-0.92625 0.11186-1.7636 0.61843-2.5957 1.4668-2.5338 2.583-1.7893 5.0501 3.1855 10.545 2.4906 2.751 6.0466 6.7358 7.9004 8.8555 3.7538 4.2926 5.5909 4.8261 8.1582 2.3672 2.8579-2.737 2.1581-5.0574-3.6914-12.246-6.6046-8.1165-10.178-11.324-12.957-10.988z" transform="matrix(1.9024 0 0 1.9024 3412 -1843.7)" fill="#fff"/>
</g>
<path style="color-rendering:auto;text-decoration-color:#000000;color:#000000;isolation:auto;mix-blend-mode:normal;shape-rendering:auto;solid-color:#000000;block-progression:tb;text-decoration-line:none;text-decoration-style:solid;image-rendering:auto;white-space:normal;text-indent:0;text-transform:none" d="m-1011-254.39a378.57 378.57 0 0 0 -0.9141 18.264c113.1-33.564 237.73-52.023 365.63-52.92 136.38-0.95605 269.7 18.16 389.99 54.408a378.57 378.57 0 0 0 -0.34565 -9.7598 378.57 378.57 0 0 0 -1.0644 -8.7656c-120.38-35.545-253.06-54.097-388.7-53.147-127.3 0.89224-251.38 18.941-364.6 51.92z" fill="#4a856d"/>
<g fill="#69ab90">
<path d="m-596.16-130.58h-14.32v72.537h14.32v-30.165h14.789v30.165h14.32v-72.537h-14.32v29.93h-14.789v-29.93z"/>
<path d="m-556.38-130.58v72.537h39.203v-12.442h-24.883v-17.723h19.719v-12.442h-19.719v-17.489h24.883v-12.442h-39.203z"/>
<path d="m-472.89-58.044v-12.442h-21.714v-60.095h-14.32v72.537h36.034z"/>
<path d="m-430.48-58.044v-12.442h-21.714v-60.095h-14.32v72.537h36.034z"/>
<path d="m-403.8-69.781c-2.2301 0-3.9907-0.93899-4.9297-2.3475-1.2911-1.878-1.6432-4.8123-1.6432-7.2772v-29.696c0-2.5822 0.23475-5.2818 1.5259-7.2772 0.93899-1.4085 2.817-2.4648 5.0471-2.4648h1.4085c2.3475 0 4.2254 0.93899 5.1644 2.3475 1.2911 1.9954 1.4085 4.8123 1.4085 7.3946v29.696c0 2.4648-0.23475 5.3992-1.5259 7.2772-0.93899 1.4085-2.6996 2.3475-5.0471 2.3475h-1.4085zm-20.893-11.385c0 5.7513 0.58687 12.089 4.1081 16.784 3.4038 4.5776 9.1552 7.0424 17.489 7.0424 8.3335 0 14.085-2.6996 17.489-7.2772 3.5212-4.695 4.2255-11.033 4.2255-16.667v-26.174c0-5.7513-0.70425-12.089-4.2255-16.784-3.4038-4.5776-9.1552-6.925-17.489-6.925-8.3335 0-13.967 2.6996-17.371 7.2772-3.5212 4.695-4.2254 10.916-4.2254 16.667v26.057z"/>
</g>
<g fill="#69ab90">
<path d="m-613.41-201.17c0 5.7513 1.1737 9.8594 3.8733 13.498 4.1081 5.2818 11.268 8.3335 16.902 11.62 1.7606 0.93899 3.1691 1.878 4.2254 3.0517 0.93899 1.2911 1.6432 2.6996 1.6432 4.5776 0.11738 2.5822-0.58686 4.8123-1.9954 6.2208-1.4085 1.5259-3.5212 2.3475-6.3382 2.3475h-1.4085c-4.5776 0-8.6856-1.0564-13.967-2.6996l-2.1127 11.855c4.4602 1.878 11.503 3.5212 17.606 3.5212 7.5119-0.11737 14.789-2.1127 18.545-7.3945 3.1691-4.3428 3.9907-9.5073 3.9907-14.554 0-5.7513-1.4085-9.6246-3.8733-12.559-1.1737-1.4085-2.5822-2.5822-4.3428-3.6386-4.695-3.0517-10.564-4.9297-14.906-7.9814-2.3475-1.7606-3.8733-3.8733-3.8733-6.925 0-2.6996 0.58687-4.5776 1.7606-5.8687 1.2911-1.4085 3.1691-1.9954 5.8687-1.9954 4.695 0 8.6857 0.93899 13.146 2.1127l2.1127-11.62c-5.1644-1.9954-10.798-3.0517-16.432-2.9343-6.925 0.11737-12.442 2.2301-15.963 6.3382-2.6996 3.0517-4.4602 7.7467-4.4602 13.028z"/>
<path d="m-536-160.79 2.3475 13.146h14.202v-3.0517l-15.141-69.485h-18.076l-15.024 68.898v3.6386h13.85l2.3475-13.146h15.493zm-7.7467-43.663 5.5166 31.221h-11.033l5.5166-31.221z"/>
<path d="m-474.6-216.55v-3.6386h-12.676l-9.8594 31.574-9.9768-31.574h-13.381v3.756l16.198 44.367v24.414h14.437v-25.118l15.259-43.78z"/>
<path d="m-471.74-201.17c0 5.7513 1.1737 9.8594 3.8733 13.498 4.1081 5.2818 11.268 8.3335 16.902 11.62 1.7606 0.93899 3.1691 1.878 4.2255 3.0517 0.93899 1.2911 1.6432 2.6996 1.6432 4.5776 0.11737 2.5822-0.58687 4.8123-1.9954 6.2208-1.4085 1.5259-3.5212 2.3475-6.3382 2.3475h-1.4085c-4.5776 0-8.6856-1.0564-13.967-2.6996l-2.1127 11.855c4.4602 1.878 11.503 3.5212 17.606 3.5212 7.5119-0.11737 14.789-2.1127 18.545-7.3945 3.1691-4.3428 3.9907-9.5073 3.9907-14.554 0-5.7513-1.4085-9.6246-3.8733-12.559-1.1737-1.4085-2.5822-2.5822-4.3428-3.6386-4.695-3.0517-10.564-4.9297-14.906-7.9814-2.3475-1.7606-3.8733-3.8733-3.8733-6.925 0-2.6996 0.58687-4.5776 1.7606-5.8687 1.2911-1.4085 3.1691-1.9954 5.8687-1.9954 4.695 0 8.6857 0.93899 13.146 2.1127l2.1127-11.62c-5.1644-1.9954-10.798-3.0517-16.432-2.9343-6.925 0.11737-12.442 2.2301-15.963 6.3382-2.6996 3.0517-4.4602 7.7467-4.4602 13.028z"/>
</g>
<path d="m-642.99-219.72h8.3121v161.84h-8.3121z" fill="#4a856d"/>
<g fill="#4a856d">
<path d="m-887.97-91.967v12.157h70.466v-23.864h-34.895l21.162-34.895c8.5549-13.958 16.209-27.466 16.209-44.351 0-13.283-4.2775-22.963-11.932-28.817-6.5288-5.178-15.759-7.6544-27.241-7.8795-10.356-0.22513-18.01 1.801-27.916 5.8534l4.0523 22.063c8.5549-2.2513 12.382-4.0523 21.387-4.0523 5.178 0 10.131 1.801 12.832 6.7539 1.5759 2.7016 2.2513 6.0785 2.0262 9.9057-0.22513 10.581-5.8534 22.288-11.482 31.068l-34.67 56.057z"/>
<path d="m-770.65-107.05h-26.34v27.241h26.34v-27.241z"/>
<path d="m-750.43-124.39c0 11.031 1.3508 23.188 8.1047 32.194 6.5288 8.7801 16.434 13.508 32.419 13.508 15.984 0 25.89-5.178 32.419-13.958 6.7539-9.0052 8.1047-21.162 8.1047-31.968v-49.754c0-11.031-1.3508-23.188-8.1047-32.194-6.5288-8.7801-16.434-13.283-32.419-13.283-15.984 0-25.89 4.9529-32.419 13.733-6.7539 9.0052-8.1047 21.162-8.1047 32.194v49.529zm39.848 21.838c-4.2775 0-7.4293-1.801-9.2303-4.5026-2.4764-3.6021-3.1518-9.2303-3.1518-13.958v-56.508c0-4.9529 0.67539-10.356 3.1518-14.183 1.801-2.7016 4.9528-4.5026 9.2303-4.5026h1.3508c4.2775 0 7.4293 1.801 9.2303 4.5026 2.4764 3.8272 3.1518 9.2303 3.1518 14.183v56.508c0 4.7277-0.67539 10.356-3.1518 13.958-1.801 2.7016-4.9529 4.5026-9.2303 4.5026h-1.3508z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.4 KiB

180
pages/welcome/welcome.css Normal file
View File

@@ -0,0 +1,180 @@
/**
* Sections
*/
body {
background-color: #eff4e2;
color: #777;
font-size: 14px;
min-width: 256px;
padding: 25px 10px;
}
h1 {
font-family: 'Noto Sans', Arial, sans-serif;
font-size: 24px;
font-weight: 400;
margin: 15px auto 20px;
max-width: 750px;
}
a {
color: #777;
}
.btn-panel {
font-family: 'Noto Sans', Arial, sans-serif;
margin: 35px auto;
max-width: 750px;
}
.topic-badge {
background-color: #fcfcfc;
border-radius: 100px;
border: 4px solid #e6e6e6;
color: #5a8f79;
display: inline-block;
font-size: 48px;
line-height: 0;
margin: 0 20px 20px;
padding: 16px;
}
.topic-badge:first-child {
margin-left: 0;
}
.topic-badge:last-child {
margin-right: 0;
}
/**
* Fonts
*/
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 400;
src: url('../../modules/noto-sans/noto-sans.woff2')
format('woff2');
}
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 600;
src: url('../../modules/noto-sans/noto-sans-bold.woff2')
format('woff2');
}
@font-face {
font-family: 'Noto Sans';
font-style: italic;
font-weight: 400;
src: url('../../modules/noto-sans/noto-sans-italic.woff2')
format('woff2');
}
/**
* Buttons
*/
.btn {
color: #fff;
font-weight: 600;
margin-right: 15px;
padding: 11px 17px;
text-decoration: none;
}
.btn-text {
margin-left: 10px;
}
.btn-github {
background-color: #24292e;
}
.btn-github:hover {
background-color: #42474c;
}
.btn-website {
background-color: #169cff;
}
.btn-website:hover {
background-color: #008ff5;
}
.btn-bitcoin {
background-color: #f7931a;
}
.btn-bitcoin:hover {
background-color: #f58700;
}
.btn-monero {
background-color: #f26822;
}
.btn-monero:hover {
background-color: #ed5407;
}
/**
* Miscellaneous
*/
.notice {
align-items: center;
display: flex;
font-family: 'Noto Sans', Arial, sans-serif;
margin-left: auto;
margin-right: auto;
max-width: 750px;
text-align: left;
}
.logo {
display: block;
height: 145px;
margin: 15px auto 50px;
}
.subtle-hint {
background-color: #fcfcfc;
border-radius: 4px;
border: 1px solid #e6e6e6;
color: #777;
font-size: 14px;
margin-bottom: 20px;
padding: 8px 11px;
}
.topic-label {
color: #5a8f79;
font-style: normal;
font-weight: bold;
}
.color-purple {
color: #9e608e;
}
/**
* Media Queries
*/
@media screen and (max-width: 550px) {
.btn {
padding: 13px 18px 12px
}
.btn-text {
display: none
}
}

View File

@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html>
<head>
<title>2.0 Says Hello - Decentraleyes</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="welcome.css">
<script defer src="../../modules/fontawesome/icon-bundle.min.js"></script>
<script defer src="../../modules/fontawesome/fontawesome.min.js"></script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<img src="logo.svg" alt="Decentraleyes" class="logo"/>
<div class="container">
<h1>What's new in version 2.0?</h1>
<div class="notice">
<span class="subtle-hint"><span class="topic-label">A Completely New Foundation</span><br>Decentraleyes has been fully rebuilt, on top of cutting-edge web technologies. As a result, it's even faster, more capable, and ready for upcoming versions of Firefox.</span>
<div class="topic-badge"><i class="fai fa-cube"></i></div>
</div>
<div class="notice">
<div class="topic-badge color-purple"><i class="fai fa-window-restore fa-flip-horizontal"></i></div>
<span class="subtle-hint"><span class="topic-label color-purple">A Clear User Interface</span><br>The extension is finally less shy about what it does to protect you. It shows you what exactly it injects into given pages, and puts all available features right at your fingertips.</span>
</div>
<div class="notice">
<span class="subtle-hint"><span class="topic-label">Improved Configurability</span><br>The options screen has been updated to give you more control over the extension. Settings that impact privacy, or website functionality, are now explicitly labeled as advanced.</span>
<div class="topic-badge"><i class="fai fa-cog"></i></div>
</div>
<div class="notice">
<div class="topic-badge color-purple"><i class="fai fa-power-off"></i></div>
<span class="subtle-hint"><span class="topic-label color-purple">Simplified Whitelist Management</span><br>Excluding the domain you're visiting from inspections is now easier than ever. Just open up the popup panel, and use the dedicated button, to disable protection for said site.</span>
</div>
<h1>Learn more, or contribute</h1>
<div class="btn-panel">
<a class="btn btn-website" href="https://decentraleyes.org" target="_blank"><i class="btn-icon fai fa-globe" data-fa-transform="grow-2"></i><span class="btn-text">Website</span></a>
<a class="btn btn-github" href="https://github.com/Synzvato/decentraleyes" target="_blank"><i class="btn-icon fai fa-github-alt" data-fa-transform="grow-2"></i><span class="btn-text">GitHub</span></a>
<a class="btn btn-bitcoin" href="https://decentraleyes.org/donate/bitcoin/" target="_blank"><i class="btn-icon fai fa-btc" data-fa-transform="grow-2"></i><span class="btn-text">Bitcoin</span></a>
<a class="btn btn-monero" href="https://decentraleyes.org/donate/monero/" target="_blank"><i class="btn-icon fai fa-monero" data-fa-transform="grow-2"></i><span class="btn-text">Monero</span></a>
</div>
</div>
</body>
</html>