Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98908a747d | ||
|
|
815a16e48b | ||
|
|
c836e8fbbe | ||
|
|
778e2e53a9 | ||
|
|
c614851a93 | ||
|
|
d513668b77 | ||
|
|
535d04e924 | ||
|
|
3440005439 | ||
|
|
e81ed053b9 | ||
|
|
c219fae3fb | ||
|
|
a8e340abe0 | ||
|
|
6d6a7b68ad | ||
|
|
74e6c6fa98 | ||
|
|
440def810d | ||
|
|
cd0c06c5bc | ||
|
|
be533e8953 | ||
|
|
7ec143efbf | ||
|
|
bce5e9f58e | ||
|
|
3b941ed077 | ||
|
|
449bf8c064 | ||
|
|
861ba95dee | ||
|
|
b3931febc2 | ||
|
|
391eb4e6d2 | ||
|
|
91f32afa59 | ||
|
|
7883d5f2c7 | ||
|
|
62bd811bbf | ||
|
|
c9c2d4ddc1 | ||
|
|
208a17e30d | ||
|
|
5ed5765f29 | ||
|
|
cd67505cbb | ||
|
|
040fd8f9bd | ||
|
|
e33f5c85f4 | ||
|
|
edff269b25 | ||
|
|
87bf73f97b | ||
|
|
51183abe58 | ||
|
|
4e9dcea6ab | ||
|
|
2b67d92140 | ||
|
|
009902d692 | ||
|
|
cc928e3148 | ||
|
|
7186599ff7 | ||
|
|
bda683e584 | ||
|
|
27ad608d91 |
6
.eslintignore
Normal file
@@ -0,0 +1,6 @@
|
||||
_locales
|
||||
audit
|
||||
icons
|
||||
modules/*
|
||||
!modules/internal
|
||||
resources
|
||||
168
.eslintrc
Normal file
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"webextensions": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"globals": {
|
||||
"Address": true,
|
||||
"files": true,
|
||||
"Header": true,
|
||||
"helpers": true,
|
||||
"interceptor": true,
|
||||
"mappings": true,
|
||||
"requestAnalyzer": true,
|
||||
"requestSanitizer": 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"
|
||||
}
|
||||
}
|
||||
70
_locales/cs_CZ/messages.json
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Ochrání vás přes sledováním skrze centralizované doručování obsahu.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Zakázat ochranu na této stránce",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Zapnout ochranu",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Počítadlo vložených lokálních zdrojů",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Počet lokální uložených zdrojů vložených od instalace.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Možnosti",
|
||||
"description": "Options title."
|
||||
},
|
||||
"showIconBadgeTitle": {
|
||||
"message": "Zobrazovat počet vložení u ikony",
|
||||
"description": "Show icon badge title."
|
||||
},
|
||||
"showIconBadgeDescription": {
|
||||
"message": "Zobrazit počet vložených zdrojů u ikony rozšíření.",
|
||||
"description": "Show icon badge description."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Blokovat požadavky na chybějící zdroje",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Zrušit požadavky na sledované zdroje, pokud nejsou lokálně dostupné.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"disablePrefetchTitle": {
|
||||
"message": "Zakázat přednačítání odkazů",
|
||||
"description": "Disable prefetch title."
|
||||
},
|
||||
"disablePrefetchDescription": {
|
||||
"message": "Předejte nepovoleným požadavkům do sítí pro doručování obsahu.",
|
||||
"description": "Disable prefetch description."
|
||||
},
|
||||
"stripMetadataTitle": {
|
||||
"message": "Odstranit metadata z povolených požadavků",
|
||||
"description": "Strip metadata title."
|
||||
},
|
||||
"stripMetadataDescription": {
|
||||
"message": "Pro zlepšení soukromí odstraní citlivá data z povolených požadavků na CDN.",
|
||||
"description": "Strip metadata description."
|
||||
},
|
||||
"whitelistedDomainsTitle": {
|
||||
"message": "Nekontrolovat pro domény",
|
||||
"description": "Whitelisted domains title."
|
||||
},
|
||||
"whitelistedDomainsDescription": {
|
||||
"message": "Zadejte domény pro jejich vynechání z kontroly. Jednotlivé domény oddělujte pomocí středníků (;).",
|
||||
"description": "Whitelisted domains description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Rozšířené",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
70
_locales/pt_BR/messages.json
Normal 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."
|
||||
}
|
||||
}
|
||||
@@ -1,70 +1,70 @@
|
||||
{
|
||||
"extensionDescription":{
|
||||
"message":"Protege contra monitorização através de entrega de conteúdo centralizado.",
|
||||
"description":"Extension description."
|
||||
"extensionDescription": {
|
||||
"message": "Protege contra monitorização através de entrega de conteúdo centralizado.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle":{
|
||||
"message":"Desativar proteção para este site",
|
||||
"description":"Disable protection title."
|
||||
"disableProtectionTitle": {
|
||||
"message": "Desativar proteção para este site",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle":{
|
||||
"message":"Ativar proteção",
|
||||
"description":"Enable protection title."
|
||||
"enableProtectionTitle": {
|
||||
"message": "Ativar proteção",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"amountInjectedTitle":{
|
||||
"message":"Contador para recursos injetados localmente",
|
||||
"description":"Amount injected title."
|
||||
"amountInjectedTitle": {
|
||||
"message": "Contador para recursos injetados localmente",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription":{
|
||||
"message":"Quantidade de injeções de recurso Content Delivery Network locais desde a instalação.",
|
||||
"description":"Amount injected description."
|
||||
"amountInjectedDescription": {
|
||||
"message": "Quantidade de injeções de recurso Content Delivery Network locais desde a instalação.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"optionsTitle":{
|
||||
"message":"Opções",
|
||||
"description":"Options title."
|
||||
"optionsTitle": {
|
||||
"message": "Opções",
|
||||
"description": "Options title."
|
||||
},
|
||||
"showIconBadgeTitle":{
|
||||
"message":"Mostrar contagem de injeções no ícone",
|
||||
"description":"Show icon badge title."
|
||||
"showIconBadgeTitle": {
|
||||
"message": "Mostrar contagem de injeções no ícone",
|
||||
"description": "Show icon badge title."
|
||||
},
|
||||
"showIconBadgeDescription":{
|
||||
"message":"Mostrar o número de recursos injetados no ícone da extensão.",
|
||||
"description":"Show icon badge description."
|
||||
"showIconBadgeDescription": {
|
||||
"message": "Mostrar o número de recursos injetados no ícone da extensão.",
|
||||
"description": "Show icon badge description."
|
||||
},
|
||||
"blockMissingTitle":{
|
||||
"message":"Bloquear pedidos por falta de recursos",
|
||||
"description":"Block requests for missing resources title."
|
||||
"blockMissingTitle": {
|
||||
"message": "Bloquear pedidos por falta de recursos",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription":{
|
||||
"message":"Cancelar pedido intercetado se o recurso necessário não estiver disponível localmente.",
|
||||
"description":"Block requests for missing resources description."
|
||||
"blockMissingDescription": {
|
||||
"message": "Cancelar pedido intercetado se o recurso necessário não estiver disponível localmente.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"disablePrefetchTitle":{
|
||||
"message":"Desativar pré-obtenção de ligações",
|
||||
"description":"Disable prefetch title."
|
||||
"disablePrefetchTitle": {
|
||||
"message": "Desativar pré-obtenção de ligações",
|
||||
"description": "Disable prefetch title."
|
||||
},
|
||||
"disablePrefetchDescription":{
|
||||
"message":"Impedir recursos não permitidos de vazar para as redes de entrega.",
|
||||
"description":"Disable prefetch description."
|
||||
"disablePrefetchDescription": {
|
||||
"message": "Impedir recursos não permitidos de vazar para as redes de entrega.",
|
||||
"description": "Disable prefetch description."
|
||||
},
|
||||
"stripMetadataTitle":{
|
||||
"message":"Retirar metadados dos pedidos permitidos",
|
||||
"description":"Strip metadata title."
|
||||
"stripMetadataTitle": {
|
||||
"message": "Retirar metadados dos pedidos permitidos",
|
||||
"description": "Strip metadata title."
|
||||
},
|
||||
"stripMetadataDescription":{
|
||||
"message":"Limpar dados sensíveis de recursos CDN permitidos para melhoria de privacidade.",
|
||||
"description":"Strip metadata description."
|
||||
"stripMetadataDescription": {
|
||||
"message": "Limpar dados sensíveis de recursos CDN permitidos para melhoria de privacidade.",
|
||||
"description": "Strip metadata description."
|
||||
},
|
||||
"whitelistedDomainsTitle":{
|
||||
"message":"Excluir domínios de inspeções",
|
||||
"description":"Whitelisted domains title."
|
||||
"whitelistedDomainsTitle": {
|
||||
"message": "Excluir domínios de inspeções",
|
||||
"description": "Whitelisted domains title."
|
||||
},
|
||||
"whitelistedDomainsDescription":{
|
||||
"message":"Insira domínios para os colocar na lista branca. Separe múltiplas entradas com pontos e vírgulas (;).",
|
||||
"description":"Whitelisted domains description."
|
||||
"whitelistedDomainsDescription": {
|
||||
"message": "Insira domínios para os colocar na lista branca. Separe múltiplas entradas com pontos e vírgulas (;).",
|
||||
"description": "Whitelisted domains description."
|
||||
},
|
||||
"advancedLabel":{
|
||||
"message":"Avançado",
|
||||
"description":"Advanced label."
|
||||
"advancedLabel": {
|
||||
"message": "Avançado",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,70 +1,70 @@
|
||||
{
|
||||
"extensionDescription":{
|
||||
"message":"Te protejează împotriva urmăririi prin livrare \"gratuită\" de conținut centralizat.",
|
||||
"description":"Extension description."
|
||||
"extensionDescription": {
|
||||
"message": "Te protejează împotriva urmăririi prin livrare \"gratuită\" de conținut centralizat.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle":{
|
||||
"message":"Dezactivează protecția pentru acest site",
|
||||
"description":"Disable protection title."
|
||||
"disableProtectionTitle": {
|
||||
"message": "Dezactivează protecția pentru acest site",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle":{
|
||||
"message":"Activează protecția",
|
||||
"description":"Enable protection title."
|
||||
"enableProtectionTitle": {
|
||||
"message": "Activează protecția",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"amountInjectedTitle":{
|
||||
"message":"Contor pentru resursele injectate local",
|
||||
"description":"Amount injected title."
|
||||
"amountInjectedTitle": {
|
||||
"message": "Contor pentru resursele injectate local",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription":{
|
||||
"message":"Cantitatea de resurse locale injectate de Rețelele care Livrează Conținut din momentul instalării.",
|
||||
"description":"Amount injected description."
|
||||
"amountInjectedDescription": {
|
||||
"message": "Cantitatea de resurse locale injectate de Rețelele care Livrează Conținut din momentul instalării.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"optionsTitle":{
|
||||
"message":"Opțiuni",
|
||||
"description":"Options title."
|
||||
"optionsTitle": {
|
||||
"message": "Opțiuni",
|
||||
"description": "Options title."
|
||||
},
|
||||
"showIconBadgeTitle":{
|
||||
"message":"Afișează numărul de dependențe înlocuite pe iconiță",
|
||||
"description":"Show icon badge title."
|
||||
"showIconBadgeTitle": {
|
||||
"message": "Afișează numărul de dependențe înlocuite pe iconiță",
|
||||
"description": "Show icon badge title."
|
||||
},
|
||||
"showIconBadgeDescription":{
|
||||
"message":"Afișează numărul de resurse înlocuite pe iconița extensiei.",
|
||||
"description":"Show icon badge description."
|
||||
"showIconBadgeDescription": {
|
||||
"message": "Afișează numărul de resurse înlocuite pe iconița extensiei.",
|
||||
"description": "Show icon badge description."
|
||||
},
|
||||
"blockMissingTitle":{
|
||||
"message":"Blochează cererile pentru resursele care lipsesc",
|
||||
"description":"Block requests for missing resources title."
|
||||
"blockMissingTitle": {
|
||||
"message": "Blochează cererile pentru resursele care lipsesc",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription":{
|
||||
"message":"Anulează cererile interceptate dacă resursa solicitată nu este disponibilă local.",
|
||||
"description":"Block requests for missing resources description."
|
||||
"blockMissingDescription": {
|
||||
"message": "Anulează cererile interceptate dacă resursa solicitată nu este disponibilă local.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"disablePrefetchTitle":{
|
||||
"message":"Dezactivează pre-încărcarea de linkuri",
|
||||
"description":"Disable prefetch title."
|
||||
"disablePrefetchTitle": {
|
||||
"message": "Dezactivează pre-încărcarea de linkuri",
|
||||
"description": "Disable prefetch title."
|
||||
},
|
||||
"disablePrefetchDescription":{
|
||||
"message":"Previne scurgerea request-uri nepermise către rețele de livrare.",
|
||||
"description":"Disable prefetch description."
|
||||
"disablePrefetchDescription": {
|
||||
"message": "Previne scurgerea request-uri nepermise către rețele de livrare.",
|
||||
"description": "Disable prefetch description."
|
||||
},
|
||||
"stripMetadataTitle":{
|
||||
"message":"Scoate metadatele din requesturi permise",
|
||||
"description":"Strip metadata title."
|
||||
"stripMetadataTitle": {
|
||||
"message": "Scoate metadatele din requesturi permise",
|
||||
"description": "Strip metadata title."
|
||||
},
|
||||
"stripMetadataDescription":{
|
||||
"message":"Șterge date sensibile din requesturi permise pentru îmbunătățirea confidențialității.",
|
||||
"description":"Strip metadata description."
|
||||
"stripMetadataDescription": {
|
||||
"message": "Șterge date sensibile din requesturi permise pentru îmbunătățirea confidențialității.",
|
||||
"description": "Strip metadata description."
|
||||
},
|
||||
"whitelistedDomainsTitle":{
|
||||
"message":"Exclude domeniile următoare de la inspecții",
|
||||
"description":"Whitelisted domains title."
|
||||
"whitelistedDomainsTitle": {
|
||||
"message": "Exclude domeniile următoare de la inspecții",
|
||||
"description": "Whitelisted domains title."
|
||||
},
|
||||
"whitelistedDomainsDescription":{
|
||||
"message":"Introduceți domeniile dorite în lista albă. Separați intrările multiple între ele prin punct și virgulă (;).",
|
||||
"description":"Whitelisted domains description."
|
||||
"whitelistedDomainsDescription": {
|
||||
"message": "Introduceți domeniile dorite în lista albă. Separați intrările multiple între ele prin punct și virgulă (;).",
|
||||
"description": "Whitelisted domains description."
|
||||
},
|
||||
"advancedLabel":{
|
||||
"message":"Avansat",
|
||||
"description":"Advanced label."
|
||||
"advancedLabel": {
|
||||
"message": "Avansat",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -1,70 +1,70 @@
|
||||
{
|
||||
"extensionDescription":{
|
||||
"message":"Skyddar dig mot att spåras av \"gratis\", centraliserad, 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":"Visa insättningsantal på ikonen",
|
||||
"description":"Show icon badge title."
|
||||
"showIconBadgeTitle": {
|
||||
"message": "Visa insättningsantal på ikonen",
|
||||
"description": "Show icon badge title."
|
||||
},
|
||||
"showIconBadgeDescription":{
|
||||
"message":"Visa antalet insatta resurser på ikonen.",
|
||||
"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 avlyssnad begäran om den begärda resursen 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":"Inaktivera länkförhandshämtning",
|
||||
"description":"Disable prefetch title."
|
||||
"disablePrefetchTitle": {
|
||||
"message": "Inaktivera länkförhandshämtning",
|
||||
"description": "Disable prefetch title."
|
||||
},
|
||||
"disablePrefetchDescription":{
|
||||
"message":"Förhindra otillåtna förfrågningar från att läcka ut till leveransnätverk.",
|
||||
"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":"Skala bort metadata från tillåtna förfrågningar",
|
||||
"description":"Strip metadata title."
|
||||
"stripMetadataTitle": {
|
||||
"message": "Skala bort metadata från tillåtna förfrågningar",
|
||||
"description": "Strip metadata title."
|
||||
},
|
||||
"stripMetadataDescription":{
|
||||
"message":"Radera känslig data från tillåtna CDN-förfrågningar för förbättrad integritet.",
|
||||
"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":"Exkludera domäner från inspektioner",
|
||||
"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."
|
||||
}
|
||||
}
|
||||
@@ -1,70 +1,70 @@
|
||||
{
|
||||
"extensionDescription":{
|
||||
"message":"Sizi, \"ücretsiz\", merkezi, içerik dağıtımı aracılığıyla yapılan takipten korur.",
|
||||
"description":"Extension description."
|
||||
"extensionDescription": {
|
||||
"message": "Sizi, \"ücretsiz\", merkezi, içerik dağıtımı aracılığıyla yapılan takipten korur.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle":{
|
||||
"message":"Bu sitede korumayı devre dışı bırak",
|
||||
"description":"Disable protection title."
|
||||
"disableProtectionTitle": {
|
||||
"message": "Bu sitede korumayı devre dışı bırak",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle":{
|
||||
"message":"Korumayı etkinleştir",
|
||||
"description":"Enable protection title."
|
||||
"enableProtectionTitle": {
|
||||
"message": "Korumayı etkinleştir",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"amountInjectedTitle":{
|
||||
"message":"Yerel olarak eklenen kaynaklar için sayaç",
|
||||
"description":"Amount injected title."
|
||||
"amountInjectedTitle": {
|
||||
"message": "Yerel olarak eklenen kaynaklar için sayaç",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription":{
|
||||
"message":"Kurulumdan bu yana yerel İçerik Dağıtım Ağı kaynak eklemelerinin miktarı.",
|
||||
"description":"Amount injected description."
|
||||
"amountInjectedDescription": {
|
||||
"message": "Kurulumdan bu yana yerel İçerik Dağıtım Ağı kaynak eklemelerinin miktarı.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"optionsTitle":{
|
||||
"message":"Seçenekler",
|
||||
"description":"Options title."
|
||||
"optionsTitle": {
|
||||
"message": "Seçenekler",
|
||||
"description": "Options title."
|
||||
},
|
||||
"showIconBadgeTitle":{
|
||||
"message":"Simgede enjeksiyon sayaçlarını göster",
|
||||
"description":"Show icon badge title."
|
||||
"showIconBadgeTitle": {
|
||||
"message": "Simgede enjeksiyon sayaçlarını göster",
|
||||
"description": "Show icon badge title."
|
||||
},
|
||||
"showIconBadgeDescription":{
|
||||
"message":"Enjekte edilen kaynakların sayısını uzantı simgesinde gösterin.",
|
||||
"description":"Show icon badge description."
|
||||
"showIconBadgeDescription": {
|
||||
"message": "Enjekte edilen kaynakların sayısını uzantı simgesinde gösterin.",
|
||||
"description": "Show icon badge description."
|
||||
},
|
||||
"blockMissingTitle":{
|
||||
"message":"Eksik kaynaklar için gelen istekleri engelle",
|
||||
"description":"Block requests for missing resources title."
|
||||
"blockMissingTitle": {
|
||||
"message": "Eksik kaynaklar için gelen istekleri engelle",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription":{
|
||||
"message":"İstenilen kaynak yerel olarak mevcut değilse, yakalanan isteği iptal et.",
|
||||
"description":"Block requests for missing resources description."
|
||||
"blockMissingDescription": {
|
||||
"message": "İstenilen kaynak yerel olarak mevcut değilse, yakalanan isteği iptal et.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"disablePrefetchTitle":{
|
||||
"message":"Bağlantı önalımını devre dışı bırak",
|
||||
"description":"Disable prefetch title."
|
||||
"disablePrefetchTitle": {
|
||||
"message": "Bağlantı önalımını devre dışı bırak",
|
||||
"description": "Disable prefetch title."
|
||||
},
|
||||
"disablePrefetchDescription":{
|
||||
"message":"İzin verilmeyen isteklerin dağıtım ağlarına sızmasını engelleyin.",
|
||||
"description":"Disable prefetch description."
|
||||
"disablePrefetchDescription": {
|
||||
"message": "İzin verilmeyen isteklerin dağıtım ağlarına sızmasını engelleyin.",
|
||||
"description": "Disable prefetch description."
|
||||
},
|
||||
"stripMetadataTitle":{
|
||||
"message":"Meta verilerini izin verilen isteklerden ayır",
|
||||
"description":"Strip metadata title."
|
||||
"stripMetadataTitle": {
|
||||
"message": "Meta verilerini izin verilen isteklerden ayır",
|
||||
"description": "Strip metadata title."
|
||||
},
|
||||
"stripMetadataDescription":{
|
||||
"message":"İzin verilen CDN isteklerine duyarlı verileri gelişmiş gizlilik için silin.",
|
||||
"description":"Strip metadata description."
|
||||
"stripMetadataDescription": {
|
||||
"message": "İleri düzey gizlilik için, izin verilen CDN isteklerinden hassas verileri sil.",
|
||||
"description": "Strip metadata description."
|
||||
},
|
||||
"whitelistedDomainsTitle":{
|
||||
"message":"Alanları denetimlerden hariç tut",
|
||||
"description":"Whitelisted domains title."
|
||||
"whitelistedDomainsTitle": {
|
||||
"message": "Alanları denetimlerden hariç tut",
|
||||
"description": "Whitelisted domains title."
|
||||
},
|
||||
"whitelistedDomainsDescription":{
|
||||
"message":"Beyaz listeye eklemek için alan adlarını girin. Birden çok girdiyi noktalı virgül (;) ile ayırın.",
|
||||
"description":"Whitelisted domains description."
|
||||
"whitelistedDomainsDescription": {
|
||||
"message": "Beyaz listeye eklemek için alan adlarını girin. Birden çok girdiyi noktalı virgül (;) ile ayırın.",
|
||||
"description": "Whitelisted domains description."
|
||||
},
|
||||
"advancedLabel":{
|
||||
"message":"Gelişmiş",
|
||||
"description":"Advanced label."
|
||||
"advancedLabel": {
|
||||
"message": "Gelişmiş",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
71
audit/run.js
@@ -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);
|
||||
|
||||
61
core/constants.js
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* 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 Header = {
|
||||
'COOKIE': 'Cookie',
|
||||
'ORIGIN': 'Origin',
|
||||
'REFERER': 'Referer'
|
||||
};
|
||||
|
||||
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',
|
||||
'SHOW_RELEASE_NOTES': 'showReleaseNotes',
|
||||
'STRIP_METADATA': 'stripMetadata',
|
||||
'WHITELISTED_DOMAINS': 'whitelistedDomains'
|
||||
};
|
||||
|
||||
const WebRequest = {
|
||||
'GET': 'GET',
|
||||
'BLOCKING': 'blocking',
|
||||
'HEADERS': 'requestHeaders'
|
||||
};
|
||||
|
||||
const Whitelist = {
|
||||
'TRIM_EXPRESSION': /^;+|;+$/g,
|
||||
'VALUE_SEPARATOR': ';'
|
||||
};
|
||||
@@ -19,12 +19,6 @@
|
||||
|
||||
var interceptor = {};
|
||||
|
||||
/**
|
||||
* Constants
|
||||
*/
|
||||
|
||||
const HTTP_EXPRESSION = /^http?:\/\//;
|
||||
|
||||
/**
|
||||
* Public Methods
|
||||
*/
|
||||
@@ -42,25 +36,34 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
tabDomain = tab.url.match(WEB_DOMAIN_EXPRESSION)[1];
|
||||
tabDomain = requestAnalyzer._normalizeDomain(tabDomain);
|
||||
} catch (exception) {
|
||||
tabDomain = 'example.org';
|
||||
tabDomain = helpers.extractDomainFromUrl(tab.url, true);
|
||||
|
||||
if (tabDomain === null) {
|
||||
tabDomain = Address.EXAMPLE;
|
||||
}
|
||||
|
||||
// Temporary list of undetectable tainted domains.
|
||||
let undetectableTaintedDomains = {
|
||||
'10fastfingers.com': true,
|
||||
'blog.datawrapper.de': true,
|
||||
'bundleofholding.com': true,
|
||||
'cdnjs.com': true,
|
||||
'dropbox.com': true,
|
||||
'glowing-bear.org': true,
|
||||
'minigames.mail.ru': true,
|
||||
'miniquadtestbench.com': true,
|
||||
'openweathermap.org': true,
|
||||
'qwertee.com': true,
|
||||
'report-uri.io': true,
|
||||
'scotthelme.co.uk': true,
|
||||
'securityheaders.io': true,
|
||||
'stefansundin.github.io': true,
|
||||
'udacity.com': true
|
||||
'udacity.com': true,
|
||||
'yadi.sk': true,
|
||||
'yourvotematters.co.uk': true
|
||||
};
|
||||
|
||||
if (undetectableTaintedDomains[tabDomain] || /yandex\./.test(tabDomain)) {
|
||||
if (undetectableTaintedDomains[tabDomain] || (/yandex\./).test(tabDomain)) {
|
||||
|
||||
if (tabDomain !== 'yandex.ru') {
|
||||
return interceptor._handleMissingCandidate(requestDetails.url);
|
||||
@@ -79,8 +82,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
}
|
||||
|
||||
stateManager.requests[requestDetails.requestId] = {
|
||||
'tabIdentifier': tabIdentifier,
|
||||
'targetDetails': targetDetails
|
||||
tabIdentifier, targetDetails
|
||||
};
|
||||
|
||||
return {
|
||||
@@ -101,9 +103,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
|
||||
@@ -119,7 +124,7 @@ interceptor._handleMissingCandidate = function (requestUrl) {
|
||||
|
||||
interceptor._handleStorageChanged = function (changes) {
|
||||
|
||||
if ('blockMissing' in changes) {
|
||||
if (Setting.BLOCK_MISSING in changes) {
|
||||
interceptor.blockMissing = changes.blockMissing.newValue;
|
||||
}
|
||||
};
|
||||
@@ -131,7 +136,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;
|
||||
|
||||
53
core/main.js
@@ -26,11 +26,11 @@ var main = {};
|
||||
main._initializeOptions = function () {
|
||||
|
||||
let optionDefaults = {
|
||||
'showIconBadge': true,
|
||||
'blockMissing': false,
|
||||
'disablePrefetch': true,
|
||||
'stripMetadata': true,
|
||||
'whitelistedDomains': {}
|
||||
[Setting.SHOW_ICON_BADGE]: true,
|
||||
[Setting.BLOCK_MISSING]: false,
|
||||
[Setting.DISABLE_PREFETCH]: true,
|
||||
[Setting.STRIP_METADATA]: true,
|
||||
[Setting.WHITELISTED_DOMAINS]: {}
|
||||
};
|
||||
|
||||
chrome.storage.local.get(optionDefaults, function (options) {
|
||||
@@ -52,19 +52,28 @@ main._initializeOptions = function () {
|
||||
|
||||
main._showReleaseNotes = function (details) {
|
||||
|
||||
let location = browser.extension.getURL('pages/welcome/welcome.html');
|
||||
let location, previousVersion;
|
||||
|
||||
if (details.reason === 'install' || details.reason === 'update') {
|
||||
location = chrome.extension.getURL('pages/welcome/welcome.html');
|
||||
|
||||
if (details.temporary === false) {
|
||||
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL ||
|
||||
details.reason === chrome.runtime.OnInstalledReason.UPDATE) {
|
||||
|
||||
browser.storage.local.get({
|
||||
'showReleaseNotes': true
|
||||
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({
|
||||
[Setting.SHOW_RELEASE_NOTES]: true
|
||||
}, function (options) {
|
||||
|
||||
if (options.showReleaseNotes === true) {
|
||||
|
||||
browser.tabs.create({
|
||||
chrome.tabs.create({
|
||||
'url': location,
|
||||
'active': false
|
||||
});
|
||||
@@ -78,27 +87,9 @@ main._showReleaseNotes = function (details) {
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
browser.runtime.onInstalled.addListener(main._showReleaseNotes);
|
||||
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]
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
73
core/request-sanitizer.js
Normal file
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Request Sanitizer
|
||||
* Belongs to Decentraleyes.
|
||||
*
|
||||
* @author Thomas Rientjes
|
||||
* @since 2018-01-10
|
||||
* @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';
|
||||
|
||||
/**
|
||||
* Request Sanitizer
|
||||
*/
|
||||
|
||||
var requestSanitizer = {};
|
||||
|
||||
/**
|
||||
* Public Methods
|
||||
*/
|
||||
|
||||
requestSanitizer.enable = function () {
|
||||
|
||||
let onBeforeSendHeaders = chrome.webRequest.onBeforeSendHeaders;
|
||||
|
||||
onBeforeSendHeaders.addListener(requestSanitizer._stripMetadata, {
|
||||
'urls': stateManager.validHosts
|
||||
}, [WebRequest.BLOCKING, WebRequest.HEADERS]);
|
||||
};
|
||||
|
||||
requestSanitizer.disable = function () {
|
||||
|
||||
let onBeforeSendHeaders = chrome.webRequest.onBeforeSendHeaders;
|
||||
|
||||
onBeforeSendHeaders.removeListener(requestSanitizer._stripMetadata, {
|
||||
'urls': stateManager.validHosts
|
||||
}, [WebRequest.BLOCKING, WebRequest.HEADERS]);
|
||||
};
|
||||
|
||||
/**
|
||||
* Private Methods
|
||||
*/
|
||||
|
||||
requestSanitizer._stripMetadata = function (requestDetails) {
|
||||
|
||||
let sensitiveHeaders = [Header.COOKIE, Header.ORIGIN, Header.REFERER];
|
||||
|
||||
for (let i = 0; i < requestDetails.requestHeaders.length; ++i) {
|
||||
|
||||
if (sensitiveHeaders.indexOf(requestDetails.requestHeaders[i].name) > -1) {
|
||||
requestDetails.requestHeaders.splice(i--, 1);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
[WebRequest.HEADERS]: requestDetails.requestHeaders
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
chrome.storage.local.get({[Setting.STRIP_METADATA]: true}, function (options) {
|
||||
|
||||
if (options === null || options.stripMetadata !== false) {
|
||||
requestSanitizer.enable();
|
||||
}
|
||||
});
|
||||
@@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -19,15 +19,6 @@
|
||||
|
||||
var stateManager = {};
|
||||
|
||||
/**
|
||||
* Constants
|
||||
*/
|
||||
|
||||
const BLOCKING_ACTION = 'blocking';
|
||||
const HOST_PREFIX = '*://';
|
||||
const HOST_SUFFIX = '/*';
|
||||
const REQUEST_HEADERS = 'requestHeaders';
|
||||
|
||||
/**
|
||||
* Public Methods
|
||||
*/
|
||||
@@ -46,35 +37,28 @@ stateManager.registerInjection = function (tabIdentifier, injection) {
|
||||
|
||||
if (injectionCount > 0) {
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tabIdentifier,
|
||||
text: injectionCount.toString()
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tabIdentifier,
|
||||
text: ''
|
||||
wrappers.setBadgeText({
|
||||
'tabId': tabIdentifier,
|
||||
'text': injectionCount.toString()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (isNaN(interceptor.amountInjected)) {
|
||||
|
||||
chrome.storage.local.get('amountInjected', function (items) {
|
||||
chrome.storage.local.get(Setting.AMOUNT_INJECTED, function (items) {
|
||||
|
||||
interceptor.amountInjected = items.amountInjected;
|
||||
|
||||
chrome.storage.local.set({
|
||||
'amountInjected': ++interceptor.amountInjected
|
||||
[Setting.AMOUNT_INJECTED]: ++interceptor.amountInjected
|
||||
});
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
chrome.storage.local.set({
|
||||
'amountInjected': ++interceptor.amountInjected
|
||||
[Setting.AMOUNT_INJECTED]: ++interceptor.amountInjected
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -123,14 +107,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 +130,9 @@ stateManager._updateTab = function (details) {
|
||||
|
||||
if (stateManager.showIconBadge === true) {
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tabIdentifier,
|
||||
text: ''
|
||||
wrappers.setBadgeText({
|
||||
'tabId': tabIdentifier,
|
||||
'text': ''
|
||||
});
|
||||
}
|
||||
|
||||
@@ -161,26 +141,10 @@ stateManager._updateTab = function (details) {
|
||||
}
|
||||
};
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
'requestHeaders': requestDetails.requestHeaders
|
||||
};
|
||||
};
|
||||
|
||||
stateManager._handleStorageChanged = function (changes) {
|
||||
|
||||
if ('showIconBadge' in changes) {
|
||||
|
||||
if (Setting.SHOW_ICON_BADGE in changes) {
|
||||
|
||||
stateManager.showIconBadge = changes.showIconBadge.newValue;
|
||||
|
||||
if (changes.showIconBadge.newValue !== true) {
|
||||
@@ -191,30 +155,21 @@ stateManager._handleStorageChanged = function (changes) {
|
||||
}
|
||||
}
|
||||
|
||||
if ('stripMetadata' in changes) {
|
||||
if (Setting.STRIP_METADATA in changes) {
|
||||
|
||||
let onBeforeSendHeaders;
|
||||
|
||||
onBeforeSendHeaders = chrome.webRequest.onBeforeSendHeaders;
|
||||
|
||||
onBeforeSendHeaders.removeListener(stateManager._stripMetadata, {
|
||||
'urls': stateManager.validHosts
|
||||
}, [BLOCKING_ACTION, REQUEST_HEADERS]);
|
||||
requestSanitizer.disable();
|
||||
|
||||
if (changes.stripMetadata.newValue !== false) {
|
||||
|
||||
onBeforeSendHeaders.addListener(stateManager._stripMetadata, {
|
||||
'urls': stateManager.validHosts
|
||||
}, [BLOCKING_ACTION, REQUEST_HEADERS]);
|
||||
requestSanitizer.enable();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
stateManager._removeIconBadgeFromTab = function (tab) {
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tab.id,
|
||||
text: ''
|
||||
wrappers.setBadgeText({
|
||||
'tabId': tab.id,
|
||||
'text': ''
|
||||
});
|
||||
};
|
||||
|
||||
@@ -228,11 +183,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);
|
||||
}
|
||||
|
||||
@@ -240,8 +191,13 @@ chrome.tabs.query({}, function (tabs) {
|
||||
tabs.forEach(stateManager._createTab);
|
||||
});
|
||||
|
||||
chrome.storage.local.get('showIconBadge', function (items) {
|
||||
stateManager.showIconBadge = items.showIconBadge || true;
|
||||
chrome.storage.local.get(Setting.SHOW_ICON_BADGE, function (items) {
|
||||
|
||||
if (items.showIconBadge === undefined) {
|
||||
items.showIconBadge = true;
|
||||
}
|
||||
|
||||
stateManager.showIconBadge = items.showIconBadge;
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -251,8 +207,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 +228,7 @@ chrome.webRequest.onErrorOccurred.addListener(function (requestDetails) {
|
||||
delete stateManager.requests[requestDetails.requestId];
|
||||
}
|
||||
|
||||
}, {'urls': ['*://*/*']});
|
||||
}, {'urls': [Address.ANY]});
|
||||
|
||||
chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
|
||||
|
||||
@@ -273,10 +240,6 @@ chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
|
||||
delete stateManager.requests[requestDetails.requestId];
|
||||
}
|
||||
|
||||
}, {'urls': ['*://*/*']});
|
||||
|
||||
chrome.webRequest.onBeforeSendHeaders.addListener(stateManager._stripMetadata, {
|
||||
'urls': stateManager.validHosts
|
||||
}, [BLOCKING_ACTION, REQUEST_HEADERS]);
|
||||
}, {'urls': [Address.ANY]});
|
||||
|
||||
chrome.storage.onChanged.addListener(stateManager._handleStorageChanged);
|
||||
|
||||
@@ -22,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"
|
||||
|
||||
|
Before Width: | Height: | Size: 925 B After Width: | Height: | Size: 671 B |
|
Before Width: | Height: | Size: 1001 B After Width: | Height: | Size: 713 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 7.7 KiB |
BIN
icons/icon16.png
|
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 608 B |
BIN
icons/icon48.png
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
icons/icon96.png
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 5.6 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Decentraleyes",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.3",
|
||||
|
||||
"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"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
5
modules/fontawesome/fontawesome.min.js
vendored
Normal file
5
modules/fontawesome/icon-bundle.min.js
vendored
Normal file
218
modules/internal/helpers.js
Normal file
@@ -0,0 +1,218 @@
|
||||
/**
|
||||
* 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', 'cs', '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.formatNumber = function (number) {
|
||||
|
||||
if (typeof number === 'number') {
|
||||
return number.toLocaleString();
|
||||
}
|
||||
};
|
||||
|
||||
helpers.formatVersion = function (version) {
|
||||
|
||||
if (version.indexOf('beta') === -1) {
|
||||
return version;
|
||||
} else {
|
||||
return 'BETA';
|
||||
}
|
||||
};
|
||||
38
modules/internal/wrappers.js
Normal 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);
|
||||
}
|
||||
};
|
||||
@@ -10,9 +10,14 @@
|
||||
|
||||
<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>
|
||||
<script src="../../core/request-sanitizer.js"></script>
|
||||
<script src="../../core/state-manager.js"></script>
|
||||
<script src="../../core/request-analyzer.js"></script>
|
||||
<script src="../../core/interceptor.js"></script>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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', 'et', 'fi',
|
||||
'fr', 'de', 'he', 'hu', '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 = {
|
||||
[Setting.SHOW_ICON_BADGE]: options._getOptionElement(Setting.SHOW_ICON_BADGE),
|
||||
[Setting.BLOCK_MISSING]: options._getOptionElement(Setting.BLOCK_MISSING),
|
||||
[Setting.DISABLE_PREFETCH]: options._getOptionElement(Setting.DISABLE_PREFETCH),
|
||||
[Setting.STRIP_METADATA]: options._getOptionElement(Setting.STRIP_METADATA),
|
||||
[Setting.WHITELISTED_DOMAINS]: 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);
|
||||
|
||||
@@ -247,3 +247,14 @@ footer {
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compatibility
|
||||
*/
|
||||
|
||||
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||
|
||||
body {
|
||||
width: 348px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 id="version-label" class="label-version"></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>
|
||||
|
||||
@@ -19,358 +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 = helpers.formatNumber(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(Setting.AMOUNT_INJECTED, 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 version, optionsButtonElement, optionsTitle, scriptDirection, i18nElements;
|
||||
|
||||
version = browser.runtime.getManifest().version;
|
||||
|
||||
if (version.indexOf('beta') !== -1) {
|
||||
version = 'BETA';
|
||||
}
|
||||
|
||||
document.getElementById('version-label').innerText = version;
|
||||
|
||||
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);
|
||||
|
||||
@@ -2,79 +2,79 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<head>
|
||||
|
||||
<title>2.0 Says Hello - Decentraleyes</title>
|
||||
<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">
|
||||
<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">
|
||||
<link rel="stylesheet" type="text/css" href="welcome.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>
|
||||
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
||||
|
||||
</head>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<img src="logo.svg" alt="Decentraleyes" class="logo"/>
|
||||
<img src="logo.svg" alt="Decentraleyes" class="logo"/>
|
||||
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
|
||||
<h1>What's new in version 2.0?</h1>
|
||||
<h1>What's new in version 2.0?</h1>
|
||||
|
||||
<div class="notice">
|
||||
<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>
|
||||
<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="fas fa-cube"></i></div>
|
||||
<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>
|
||||
|
||||
<div class="notice">
|
||||
|
||||
<div class="topic-badge color-purple"><i class="fas fa-browser 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="fas fa-cog"></i></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="notice">
|
||||
|
||||
<div class="topic-badge color-purple"><i class="fas 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 fas 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 fas 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 fas 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 fas fa-monero" data-fa-transform="grow-2"></i><span class="btn-text">Monero</span></a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||