mirror of
https://github.com/Synzvato/decentraleyes.git
synced 2026-01-06 06:08:25 -05:00
Compare commits
18 Commits
v2.0.0beta
...
legacy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
444aedaa7c | ||
|
|
aa5f8be116 | ||
|
|
7ec055fd7b | ||
|
|
279cb69a0a | ||
|
|
a744c45413 | ||
|
|
cf21afe88c | ||
|
|
c9fc15e727 | ||
|
|
3cf0f14d23 | ||
|
|
c2670b3de2 | ||
|
|
a7187a83e5 | ||
|
|
955d932b11 | ||
|
|
50a43bfc2e | ||
|
|
18df769998 | ||
|
|
27a60cdec7 | ||
|
|
694fa25a3a | ||
|
|
6c061b2235 | ||
|
|
bd2278fd32 | ||
|
|
a64d6f3f41 |
4
.eslintignore
Normal file
4
.eslintignore
Normal file
@@ -0,0 +1,4 @@
|
||||
locale
|
||||
data
|
||||
preferences
|
||||
webextension
|
||||
157
.eslintrc
Normal file
157
.eslintrc
Normal file
@@ -0,0 +1,157 @@
|
||||
{
|
||||
"env": {
|
||||
"es6": true
|
||||
},
|
||||
"globals": {
|
||||
"exports": true,
|
||||
"module": true,
|
||||
"require": true,
|
||||
"Services": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:no-unsanitized/DOM"
|
||||
],
|
||||
"overrides": {
|
||||
"files": [
|
||||
"test/*"
|
||||
],
|
||||
"rules": {
|
||||
"brace-style": "off",
|
||||
"function-paren-newline": "off",
|
||||
"max-len": "off"
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
"no-unsanitized"
|
||||
],
|
||||
"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-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-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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
audit/node_modules
|
||||
audit/report.txt
|
||||
data/_audit/node_modules
|
||||
data/_audit/report.txt
|
||||
*.xpi
|
||||
.idea
|
||||
|
||||
8
.jpmignore
Normal file
8
.jpmignore
Normal file
@@ -0,0 +1,8 @@
|
||||
data/_audit/node_modules
|
||||
data/_audit/report.txt
|
||||
.jpmignore
|
||||
.gitignore
|
||||
.idea
|
||||
*.xpi
|
||||
test
|
||||
.git
|
||||
11
README.md
11
README.md
@@ -11,13 +11,16 @@ Suggestions in the form of **Issues**, and contributions in the form of **Pull R
|
||||
|
||||
#### Prerequisites
|
||||
|
||||
* Mozilla Firefox 56 *(or higher)*.
|
||||
* [Jetpack Manager](https://developer.mozilla.org/Add-ons/SDK/Tools/jpm#Installation) ```v1.3.1``` *(or higher)*.
|
||||
* Mozilla Firefox 38 *(or higher)*.
|
||||
|
||||
> **Note:** If you want to contribute to the Firefox legacy extension, please check out the ```legacy``` branch. If you are looking for the Chromium-compatible codebase, please see the ```experimental``` branch.
|
||||
> **Note:** If you want to contribute to the Firefox Quantum extension, please check out the ```master``` branch. If you are looking for the Chromium-compatible codebase, please see the ```experimental``` branch.
|
||||
|
||||
#### Running the Code
|
||||
#### Building the Code (*nix)
|
||||
|
||||
Please read this [short guide](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Your_first_WebExtension#Trying_it_out) for information on how to run this extension from source.
|
||||
git clone https://github.com/Synzvato/decentraleyes --branch legacy
|
||||
cd decentraleyes
|
||||
jpm xpi
|
||||
|
||||
> **Important:** All commits since 26 October 2016 are signed with GPG. It's likely best to ignore unsigned commits, unless you really know what you're doing. Please send an email if you have any questions or security concerns.
|
||||
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Защитава ви от следене чрез свободна, централизирана доставка на съдържание.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Изключване на защитата за страницата",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Включване на защита",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Настройки",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Блокиране на заявки за липсващи ресурси",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Отмяна на прехванатата заявка, ако изисквания ресурс не е наличен на местно ниво.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Изключване на домейните от инспекции",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Въведете домейни, които да се добавят в белия списък. Отделете стойностите с точка и запетая.",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Брояч за местно вмъкнати ресурси",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Количество на местни вмъквания на ресурси от началото на инсталацията.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Подробности",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Aktiver beskyttelse",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Indstillinger",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Bloker anmodninger om manglende ressourcer",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Annullerer en anmodning hvis den forespurgte ressource ikke findes lokalt.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Udeluk disse domæner fra inspektion",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Tilføj domæner der ikke skal opfanges. Separer flere med semikolon (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Avanceret",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Schutz aktivieren",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Einstellungen",
|
||||
"description": "Options 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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Domains von Prüfung ausschließen",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Gebe zu ignorierende Domains an. Trenne mehrere Einträge durch Semikolons (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Erweitert",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Προστατεύει από παρακολούθηση μέσω \"δωρεάν\" διανομής περιεχόμενου.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Απενεργοποίηση προστασίας για αυτή τη σελίδα",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Ενεργοποίηση προστασίας",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Επιλογές",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Μπλοκ αιτήσεων για ανύπαρκτους πόρους",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Ακύρωση απομακρυσμένης αίτησης, αν ο απαιτούμενος πόρος δεν είναι τοπικά διαθέσιμος.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Εξαίρεση διευθύνσεων από επιθεωρήσεις",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Εισαγωγή διευθύνσεων στις επιτρεπόμενες. Διαχωρίστε πολλαπλές καταχωρήσεις με ερωτηματικά (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Μετρητής εμβόλιμων τοπικών πόρων",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Ποσοστό εμβόλιμων τοπικών πόρων Δικτύων Παροχής Περιεχομένου από την στιγμή της εγκατάστασης.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Για προχωρημένους",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Protects you against tracking through \"free\", centralised, content delivery.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Disable protection for this site",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Enable protection",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Options",
|
||||
"description": "Options 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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Exclude domains from inspections",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Enter domains to whitelist them. Separate multiple entries with semi-colons (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Advanced",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Enable protection",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Options",
|
||||
"description": "Options 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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Exclude domains from inspections",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Enter domains to whitelist them. Separate multiple entries with semi-colons (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Advanced",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Protégete contra rastreo a través de entrega de contenido centralizado \"gratis\".",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Desactivar protección en este sitio",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Activar protección",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Opciones",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Bloquear peticiones de fuentes faltantes",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Cancelar peticiones detenidas si la fuente requerida no se encuentra localmente.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Excluir dominios de inspecciones",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Ingresar dominios a ser ignorados. Separar múltiples entradas con punto y coma (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Contador para fuentes inyectadas localmente",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Cifra de inyecciones de fuentes de Redes de Entrega de Contenido desde instalación.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Avanzado",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Ota suojaus käyttöön",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Asetukset",
|
||||
"description": "Options 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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Poissulje verkkotunnukset",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Lisää verkkotunnus jottei sitä korvata. Erota rivit puolipisteellä (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Yksityiskohdat",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Protège du pistage lié à l'accès à des contenus \"gratuits\", centralisés.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Désactiver la protection pour ce site",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Activer la protection",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Options",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Bloquer les ressources manquantes",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Annuler une demande de ressource si elle est indisponible localement.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Ne pas inspecter certains domaines",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Indiquez les domaines à exclure. Séparer les noms par un point-virgule (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Compteur des ressources injectées",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Total des ressources des CDN injectées localement depuis l'installation.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Avancé",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Melindungi dari pelacakan melalui distribusi konten yang bebas dan terpusat.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Nonaktifkan perlindungan untuk situs web ini",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Aktifkan perlindungan",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Opsi",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Blokir permintaan untuk sumber daya yang hilang",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Batalkan intersep permintaan jika sumber daya yang dibutuhkan tidak tersedia secara lokal.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Cegah inspeksi domain",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Masukkan domain ke daftar putih. Pisahkan entri dengan titik koma (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Sumber daya lokal yang disematkan",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Jumlah penyematan sumber daya Jaringan Distribusi Konten lokal sejak pemasangan.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Canggih",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Verndar þig gegn eftirliti frá \"ókeypis\" miðlægum efnisveitum.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Slökkva á vörn fyrir þetta vefsvæði",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Virkja vernd",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Valkostir",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Loka á beiðnir vegna tilfanga sem vantar",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Hætta við veiddar beiðnir ef umbeðið tilfang er ekki til staðar á tölvunni.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Undanskilja lén frá athugun",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Settu inn lén til að skrá þau á lista yfir leyfð lén. Aðgreindu færslur með semíkommum (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Fjöldi staðvært inspýttra tilfanga",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Fjöldi tilfanga frá miðlægum efnisveitum sem skipt hefur verið út síðan viðbótin var sett upp.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Ítarlegt",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Protegge dal tracciamento tramite i CDN centralizzati \"gratuiti\".",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Disattiva protezione per questo sito",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Attiva protezione",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Opzioni",
|
||||
"description": "Options 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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Escludere domini dalle ispezioni",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Inserire domini nella whitelist per escluderli. Separare voci multiple con punti e virgola (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Avanzate",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "「無料」と称してあなたを追跡する大規模なCDNを迂回して、プライバシーを守ります。",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "このサイトでは保護を無効にする",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "保護を有効にする",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "オプション",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "アドオンに含まれないリソースへのリクエストをブロックする",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "必要なリソースがローカルで利用できない場合、リクエストを取り消します。",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "保護から除外するドメイン",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "ホワイトリストに登録したいドメインを入力してください。エントリが複数ある場合、セミコロン (;) で区切ってください。",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "ローカルのリソースを使用した回数",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "インストール後にローカルのCDNリソースを使用した回数です。",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "エラー内容",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Bescherming inschakelen",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Opties",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Stop verzoeken voor ontbrekende items",
|
||||
"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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Sluit domeinen uit van inspecties",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Voer de te negeren domeinen in. Scheid de waarden met puntkomma's (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Geavanceerd",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Chroni przed śledzeniem przez ośrodki CDN.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Wyłącz ochronę dla tej witryny",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Włącz ochronę",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Ustawienia",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Blokuj żądania brakujących zasobów",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Anuluj przechwycone żądania jeśli wymagany zasób nie jest dostępny lokalnie.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Wyklucz domeny z analizy",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Podaj domeny aby dodać je do białej listy. Oddziel wpisy średnikami (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Licznik zasobów podanych lokalnie",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Ilość wstrzyknięć z lokalnego Content Delivery Network od czasu instalacji.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Zaawansowane",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"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."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Ativar proteção",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Opções",
|
||||
"description": "Options 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."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Excluir domínios de inspeções",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Insira domínios para os colocar na lista branca. Separe múltiplas entradas com pontos e vírgulas (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Avançado",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Защищает Вас от отслеживания через «бесплатные», централизованные CDN.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Отключить защиту для этого сайта",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Включить защиту",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Настройки",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Блокировать запросы недостающих ресурсов",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Отменить перехваченный запрос, если требуемый ресурс не доступен локально (может «ломать» сайты).",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Исключить домены из проверки",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "«Белый список» доменов. Контент, расположенный на них не будет фильтроваться. Записи (при количестве более одной) разделяются точкой с запятой (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "Счётчик файлов «доставленных» локально",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "Количество местных инъекций ресурсов сети доставки контента с момента установки.",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Дополнительно",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "Skyddar dig mot att spåras av \"gratis\", centraliserat, innehållsleverans.",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "Inaktivera skydd för den här sidan",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "Aktivera skydd",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "Inställningar",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "Blockera förfrågningar när resurs saknas",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "Avbryt uppsnappning om resurs inte finns lokalt.",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "Utelämna domäner från uppsnappningar",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "Ange domäner för vitlistning. Spearera domänerna med semikolon (;).",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "Avancerad",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "保护您免受集中式的内容交付网络(CDN)的跟踪。",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "在此网站上禁用保护",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "启用保护",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "选项",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "阻止缺失资源的请求",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "取消被拦截的请求,如果请求的资源在本地不可用。",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "排除要检查的域名",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "输入白名单的域名。用分号 (;) 分隔多项。",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "本地发送资源的计数器",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "自安装以来,从本地的“内容交付网络”发送的资源总量。",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "高级",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"extensionDescription": {
|
||||
"message": "保護您不受「免費」、中心化的內容傳遞網路(CDN)的追蹤。",
|
||||
"description": "Extension description."
|
||||
},
|
||||
"disableProtectionTitle": {
|
||||
"message": "為此網站停用保護",
|
||||
"description": "Disable protection title."
|
||||
},
|
||||
"enableProtectionTitle": {
|
||||
"message": "啟用保護",
|
||||
"description": "Enable protection title."
|
||||
},
|
||||
"optionsTitle": {
|
||||
"message": "選項",
|
||||
"description": "Options title."
|
||||
},
|
||||
"blockMissingTitle": {
|
||||
"message": "封鎖缺少資源時的連線請求",
|
||||
"description": "Block requests for missing resources title."
|
||||
},
|
||||
"blockMissingDescription": {
|
||||
"message": "若本機沒有所請求的資源,就取消該請求。",
|
||||
"description": "Block requests for missing resources description."
|
||||
},
|
||||
"domainWhitelistTitle": {
|
||||
"message": "要排除檢查的網域",
|
||||
"description": "Domain whitelist title."
|
||||
},
|
||||
"domainWhitelistDescription": {
|
||||
"message": "輸入網域即可將其加入白名單。使用分號(;)分隔多個網域。",
|
||||
"description": "Domain whitelist description."
|
||||
},
|
||||
"amountInjectedTitle": {
|
||||
"message": "由本機提供的資源計數器",
|
||||
"description": "Amount injected title."
|
||||
},
|
||||
"amountInjectedDescription": {
|
||||
"message": "安裝以來,由本機檔案所取代的 CDN 資源數量。",
|
||||
"description": "Amount injected description."
|
||||
},
|
||||
"advancedLabel": {
|
||||
"message": "進階",
|
||||
"description": "Advanced label."
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
Introduction
|
||||
------------
|
||||
|
||||
This audit script allows any user and extension reviewer to verify the integrity of the bundled resources. It automatically, and transparently, compares all bundled libraries to their original sources.
|
||||
|
||||
|
||||
Usage Instructions (Unix)
|
||||
------------------
|
||||
|
||||
1. Make sure you have Node.js installed on your machine.
|
||||
|
||||
2. Open up a terminal and ```cd``` into this directory.
|
||||
|
||||
3. Execute ```npm install``` to fetch any dependencies.
|
||||
|
||||
4. Run the audit script by executing ```node run```.
|
||||
|
||||
**Note:** If you'd like to save the report, run ```node run > report.txt```.
|
||||
13
audit/package-lock.json
generated
13
audit/package-lock.json
generated
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "decentraleyes-audit",
|
||||
"version": "1.5.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"source-map-url": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz",
|
||||
"integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM="
|
||||
}
|
||||
}
|
||||
}
|
||||
19
chrome.manifest
Normal file
19
chrome.manifest
Normal file
@@ -0,0 +1,19 @@
|
||||
locale decentraleyes bg locale/bg/
|
||||
locale decentraleyes da locale/da/
|
||||
locale decentraleyes de locale/de/
|
||||
locale decentraleyes en-GB locale/en-GB/
|
||||
locale decentraleyes en-US locale/en-US/
|
||||
locale decentraleyes eo locale/eo/
|
||||
locale decentraleyes es locale/es/
|
||||
locale decentraleyes fi locale/fi/
|
||||
locale decentraleyes fr locale/fr/
|
||||
locale decentraleyes id locale/id/
|
||||
locale decentraleyes it locale/it/
|
||||
locale decentraleyes ja locale/ja/
|
||||
locale decentraleyes nl locale/nl/
|
||||
locale decentraleyes pl locale/pl/
|
||||
locale decentraleyes pt-PT locale/pt-PT/
|
||||
locale decentraleyes ru locale/ru/
|
||||
locale decentraleyes sv-SE locale/sv-SE/
|
||||
locale decentraleyes zh-CN locale/zh-CN/
|
||||
locale decentraleyes zh-TW locale/zh-TW/
|
||||
@@ -1,119 +0,0 @@
|
||||
/**
|
||||
* Interceptor
|
||||
* Belongs to Decentraleyes.
|
||||
*
|
||||
* @author Thomas Rientjes
|
||||
* @since 2016-04-06
|
||||
* @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';
|
||||
|
||||
/**
|
||||
* Interceptor
|
||||
*/
|
||||
|
||||
var interceptor = {};
|
||||
|
||||
/**
|
||||
* Constants
|
||||
*/
|
||||
|
||||
const HTTP_EXPRESSION = /^http?:\/\//;
|
||||
|
||||
/**
|
||||
* Public Methods
|
||||
*/
|
||||
|
||||
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
|
||||
let validCandidate, targetDetails, targetPath;
|
||||
|
||||
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
||||
|
||||
if (!validCandidate) {
|
||||
|
||||
return {
|
||||
'cancel': false
|
||||
};
|
||||
}
|
||||
|
||||
targetDetails = requestAnalyzer.getLocalTarget(requestDetails);
|
||||
targetPath = targetDetails.path;
|
||||
|
||||
if (!targetPath) {
|
||||
return interceptor._handleMissingCandidate(requestDetails.url);
|
||||
}
|
||||
|
||||
if (!files[targetPath]) {
|
||||
return interceptor._handleMissingCandidate(requestDetails.url);
|
||||
}
|
||||
|
||||
stateManager.requests[requestDetails.requestId] = {
|
||||
'tabIdentifier': tabIdentifier,
|
||||
'targetDetails': targetDetails
|
||||
};
|
||||
|
||||
return {
|
||||
'redirectUrl': chrome.extension.getURL(targetPath)
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Private Methods
|
||||
*/
|
||||
|
||||
interceptor._handleMissingCandidate = function (requestUrl) {
|
||||
|
||||
if (interceptor.blockMissing === true) {
|
||||
|
||||
return {
|
||||
'cancel': true
|
||||
};
|
||||
}
|
||||
|
||||
if (requestUrl.match(HTTP_EXPRESSION)) {
|
||||
|
||||
requestUrl = requestUrl.replace(HTTP_EXPRESSION, 'https://');
|
||||
|
||||
return {
|
||||
'redirectUrl': requestUrl
|
||||
};
|
||||
|
||||
} else {
|
||||
|
||||
return {
|
||||
'cancel': false
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
interceptor._handleStorageChanged = function (changes) {
|
||||
|
||||
if ('blockMissing' in changes) {
|
||||
interceptor.blockMissing = changes.blockMissing.newValue;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
interceptor.amountInjected = 0;
|
||||
interceptor.blockMissing = false;
|
||||
|
||||
chrome.storage.local.get(['amountInjected', 'blockMissing'], function (items) {
|
||||
|
||||
interceptor.amountInjected = items.amountInjected || 0;
|
||||
interceptor.blockMissing = items.blockMissing || false;
|
||||
});
|
||||
|
||||
/**
|
||||
* Event Handlers
|
||||
*/
|
||||
|
||||
chrome.storage.onChanged.addListener(interceptor._handleStorageChanged);
|
||||
48
core/main.js
48
core/main.js
@@ -1,48 +0,0 @@
|
||||
/**
|
||||
* Entry Point
|
||||
* Belongs to Decentraleyes.
|
||||
*
|
||||
* @author Thomas Rientjes
|
||||
* @since 2016-04-04
|
||||
* @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';
|
||||
|
||||
/**
|
||||
* Main
|
||||
*/
|
||||
|
||||
var main = {};
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
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.privacy.network.networkPredictionEnabled.set({'value': false});
|
||||
|
||||
chrome.browserAction.setBadgeBackgroundColor({
|
||||
'color': [74, 130, 108, 255]
|
||||
});
|
||||
@@ -1,159 +0,0 @@
|
||||
/**
|
||||
* Request Analyzer
|
||||
* Belongs to Decentraleyes.
|
||||
*
|
||||
* @author Thomas Rientjes
|
||||
* @since 2016-04-11
|
||||
* @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 Analyzer
|
||||
*/
|
||||
|
||||
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;
|
||||
|
||||
try {
|
||||
initiatorHost = tabDetails.url.match(WEB_DOMAIN_EXPRESSION)[1];
|
||||
} catch (exception) {
|
||||
initiatorHost = 'example.org';
|
||||
}
|
||||
|
||||
if (initiatorHost && requestAnalyzer.whitelistedDomains[requestAnalyzer._normalizeDomain(initiatorHost)]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only requests of type GET can be valid candidates.
|
||||
return requestDetails.method === 'GET';
|
||||
};
|
||||
|
||||
requestAnalyzer.getLocalTarget = function (requestDetails) {
|
||||
|
||||
let destinationHost, destinationPath, hostMappings, basePath, resourceMappings;
|
||||
|
||||
destinationHost = requestDetails.url.match(WEB_DOMAIN_EXPRESSION)[1];
|
||||
destinationPath = requestDetails.url.match(WEB_DOMAIN_EXPRESSION)[2];
|
||||
|
||||
// Use the proper mappings for the targeted host.
|
||||
hostMappings = mappings[destinationHost];
|
||||
|
||||
// Resource mapping files are never locally available.
|
||||
if (MAPPING_FILE_EXPRESSION.test(destinationPath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
basePath = requestAnalyzer._matchBasePath(hostMappings, destinationPath);
|
||||
resourceMappings = hostMappings[basePath];
|
||||
|
||||
if (!resourceMappings) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Return either the local target's path or false.
|
||||
return requestAnalyzer._findLocalTarget(resourceMappings, basePath, destinationHost, destinationPath);
|
||||
};
|
||||
|
||||
/**
|
||||
* Private Methods
|
||||
*/
|
||||
|
||||
requestAnalyzer._matchBasePath = function (hostMappings, channelPath) {
|
||||
|
||||
for (let basePath of Object.keys(hostMappings)) {
|
||||
|
||||
if (channelPath.startsWith(basePath)) {
|
||||
return basePath;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channelHost, channelPath) {
|
||||
|
||||
var resourcePath, versionNumber, resourcePattern;
|
||||
|
||||
resourcePath = channelPath.replace(basePath, '');
|
||||
|
||||
versionNumber = resourcePath.match(VERSION_EXPRESSION);
|
||||
resourcePattern = resourcePath.replace(versionNumber, VERSION_PLACEHOLDER);
|
||||
|
||||
for (let resourceMold of Object.keys(resourceMappings)) {
|
||||
|
||||
if (resourcePattern.startsWith(resourceMold)) {
|
||||
|
||||
let targetPath, version;
|
||||
|
||||
targetPath = resourceMappings[resourceMold].path;
|
||||
targetPath = targetPath.replace(VERSION_PLACEHOLDER, versionNumber);
|
||||
|
||||
version = versionNumber && versionNumber[0] || targetPath.match(VERSION_EXPRESSION);
|
||||
|
||||
// Prepare and return a local target.
|
||||
return {
|
||||
source: channelHost,
|
||||
version: version,
|
||||
path: targetPath
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
requestAnalyzer._applyWhitelistedDomains = function () {
|
||||
|
||||
//noinspection JSUnresolvedVariable
|
||||
chrome.storage.local.get('whitelistedDomains', 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
|
||||
*/
|
||||
|
||||
requestAnalyzer.whitelistedDomains = {};
|
||||
requestAnalyzer._applyWhitelistedDomains();
|
||||
|
||||
/**
|
||||
* Event Handlers
|
||||
*/
|
||||
|
||||
chrome.storage.onChanged.addListener(requestAnalyzer._applyWhitelistedDomains);
|
||||
@@ -1,92 +0,0 @@
|
||||
/**
|
||||
* Resources
|
||||
* Belongs to Decentraleyes.
|
||||
*
|
||||
* @author Thomas Rientjes
|
||||
* @since 2014-05-30
|
||||
* @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';
|
||||
|
||||
/**
|
||||
* Resources
|
||||
*/
|
||||
|
||||
var resources = {
|
||||
|
||||
// AngularJS
|
||||
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'
|
||||
},
|
||||
// Dojo
|
||||
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'
|
||||
},
|
||||
// Ext Core
|
||||
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 UI
|
||||
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'
|
||||
},
|
||||
// MooTools
|
||||
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'
|
||||
},
|
||||
// Scriptaculous
|
||||
scriptaculous: {
|
||||
path: 'resources/scriptaculous/{version}/scriptaculous.js.dec',
|
||||
type: 'application/javascript'
|
||||
},
|
||||
// SWFObject
|
||||
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'
|
||||
},
|
||||
// Web Font Loader
|
||||
webfont: {
|
||||
path: 'resources/webfont/{version}/webfont.js.dec',
|
||||
type: 'application/javascript'
|
||||
}
|
||||
};
|
||||
@@ -1,234 +0,0 @@
|
||||
/**
|
||||
* State Manager
|
||||
* Belongs to Decentraleyes.
|
||||
*
|
||||
* @author Thomas Rientjes
|
||||
* @since 2017-03-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';
|
||||
|
||||
/**
|
||||
* State Manager
|
||||
*/
|
||||
|
||||
var stateManager = {};
|
||||
|
||||
/**
|
||||
* Constants
|
||||
*/
|
||||
|
||||
const BLOCKING_ACTION = 'blocking';
|
||||
const HOST_PREFIX = '*://';
|
||||
const HOST_SUFFIX = '/*';
|
||||
const JAVASCRIPT_REQUEST_TYPE = 'script';
|
||||
const REQUEST_HEADERS = 'requestHeaders';
|
||||
const XML_HTTP_REQUEST_TYPE = 'xmlhttprequest';
|
||||
|
||||
/**
|
||||
* Public Methods
|
||||
*/
|
||||
|
||||
stateManager.registerInjection = function (tabIdentifier, injection) {
|
||||
|
||||
let injectionIdentifier, registeredTab, injectionCount;
|
||||
|
||||
injectionIdentifier = injection.source + injection.path + injection.version;
|
||||
registeredTab = stateManager.tabs[tabIdentifier];
|
||||
|
||||
registeredTab.injections[injectionIdentifier] = injection;
|
||||
injectionCount = Object.keys(registeredTab.injections).length || 0;
|
||||
|
||||
if (injectionCount > 0) {
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tabIdentifier,
|
||||
text: injectionCount.toString()
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tabIdentifier,
|
||||
text: ''
|
||||
});
|
||||
}
|
||||
|
||||
if (isNaN(interceptor.amountInjected)) {
|
||||
|
||||
chrome.storage.local.get('amountInjected', function (items) {
|
||||
|
||||
interceptor.amountInjected = items.amountInjected;
|
||||
|
||||
chrome.storage.local.set({
|
||||
'amountInjected': ++interceptor.amountInjected
|
||||
});
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
chrome.storage.local.set({
|
||||
'amountInjected': ++interceptor.amountInjected
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
stateManager.addDomainToWhitelist = function (domain) {
|
||||
|
||||
return new Promise((resolve) => {
|
||||
|
||||
let whitelistedDomains = requestAnalyzer.whitelistedDomains;
|
||||
whitelistedDomains[domain] = true;
|
||||
|
||||
chrome.storage.local.set({whitelistedDomains}, resolve);
|
||||
});
|
||||
};
|
||||
|
||||
stateManager.deleteDomainFromWhitelist = function (domain) {
|
||||
|
||||
return new Promise((resolve) => {
|
||||
|
||||
let whitelistedDomains = requestAnalyzer.whitelistedDomains;
|
||||
delete whitelistedDomains[domain];
|
||||
|
||||
chrome.storage.local.set({whitelistedDomains}, resolve);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Private Methods
|
||||
*/
|
||||
|
||||
stateManager._createTab = function (tab) {
|
||||
|
||||
let tabIdentifier, requestFilters;
|
||||
|
||||
tabIdentifier = tab.id;
|
||||
|
||||
stateManager.tabs[tabIdentifier] = {
|
||||
'injections': {}
|
||||
};
|
||||
|
||||
requestFilters = {
|
||||
|
||||
'tabId': tabIdentifier,
|
||||
'types': stateManager.validTypes,
|
||||
'urls': stateManager.validHosts
|
||||
};
|
||||
|
||||
chrome.webRequest.onBeforeRequest.addListener(function (requestDetails) {
|
||||
|
||||
return new Promise((resolve) => {
|
||||
|
||||
browser.tabs.get(tabIdentifier).then(function (tab) {
|
||||
resolve(interceptor.handleRequest(requestDetails, tabIdentifier, tab));
|
||||
});
|
||||
});
|
||||
|
||||
}, requestFilters, [BLOCKING_ACTION]);
|
||||
};
|
||||
|
||||
stateManager._removeTab = function (tabIdentifier) {
|
||||
delete stateManager.tabs[tabIdentifier];
|
||||
};
|
||||
|
||||
stateManager._updateTab = function (details) {
|
||||
|
||||
let tabIdentifier, frameIdentifier;
|
||||
|
||||
tabIdentifier = details.tabId;
|
||||
frameIdentifier = details.frameId;
|
||||
|
||||
if (tabIdentifier === -1 || frameIdentifier !== 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
chrome.browserAction.setBadgeText({
|
||||
tabId: tabIdentifier,
|
||||
text: ''
|
||||
});
|
||||
|
||||
if (stateManager.tabs[tabIdentifier]) {
|
||||
stateManager.tabs[tabIdentifier].injections = {};
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
stateManager.requests = {};
|
||||
stateManager.tabs = {};
|
||||
|
||||
stateManager.validTypes = [
|
||||
|
||||
JAVASCRIPT_REQUEST_TYPE,
|
||||
XML_HTTP_REQUEST_TYPE
|
||||
];
|
||||
|
||||
stateManager.validHosts = [];
|
||||
|
||||
for (let mapping in mappings) {
|
||||
|
||||
if (!mappings.hasOwnProperty(mapping)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let supportedHost = HOST_PREFIX + mapping + HOST_SUFFIX;
|
||||
stateManager.validHosts.push(supportedHost);
|
||||
}
|
||||
|
||||
chrome.tabs.query({}, function (tabs) {
|
||||
tabs.forEach(stateManager._createTab);
|
||||
});
|
||||
|
||||
/**
|
||||
* Event Handlers
|
||||
*/
|
||||
|
||||
chrome.tabs.onCreated.addListener(stateManager._createTab);
|
||||
chrome.tabs.onRemoved.addListener(stateManager._removeTab);
|
||||
|
||||
chrome.webNavigation.onCommitted.addListener(stateManager._updateTab, {
|
||||
url: [{urlContains: ':'}]
|
||||
});
|
||||
|
||||
chrome.webRequest.onErrorOccurred.addListener(function (requestDetails) {
|
||||
|
||||
if (stateManager.requests[requestDetails.requestId]) {
|
||||
delete stateManager.requests[requestDetails.requestId];
|
||||
}
|
||||
|
||||
}, {'urls': ['*://*/*']});
|
||||
|
||||
chrome.webRequest.onBeforeRedirect.addListener(function (requestDetails) {
|
||||
|
||||
let knownRequest = stateManager.requests[requestDetails.requestId];
|
||||
|
||||
if (knownRequest) {
|
||||
|
||||
stateManager.registerInjection(knownRequest.tabIdentifier, knownRequest.targetDetails);
|
||||
delete stateManager.requests[requestDetails.requestId];
|
||||
}
|
||||
|
||||
}, {'urls': ['*://*/*']});
|
||||
|
||||
chrome.webRequest.onBeforeSendHeaders.addListener(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};
|
||||
|
||||
}, {urls: stateManager.validHosts}, [BLOCKING_ACTION, REQUEST_HEADERS]);
|
||||
29
data/_audit/README.md
Normal file
29
data/_audit/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
INTRODUCTION
|
||||
------------
|
||||
|
||||
This script (first introduced in Decentraleyes v1.1.5) should make reviewing this extension a lot easier than it used to be. It's open source and open for scrutiny, and it automatically compares the bundled libraries (resources) to their original sources (after removing any source mapping URLs).
|
||||
|
||||
|
||||
FOR NON-LINUX USERS
|
||||
-------------------
|
||||
|
||||
This usage guide is tailored to Linux based operating systems. If you're on a different type of system, the easiest direct solution might be to launch a free Linux box with Node.js pre-installed on Red Hat OpenShift. You can then SSH into it (after adding your own machine's public key to your account).
|
||||
|
||||
Having said that, every terminal command in the usage guide below comes with a description, so it should not be too hard to get this done on practically any type of configuration.
|
||||
|
||||
|
||||
USAGE INSTRUCTIONS
|
||||
------------------
|
||||
|
||||
1. Make sure you have Node.js installed on your machine (or install it).
|
||||
|
||||
2. Open up a terminal and 'cd' into this directory.
|
||||
Description: Navigate to this directory.
|
||||
|
||||
3. Execute 'npm install' to fetch any dependencies.
|
||||
|
||||
4. Run the audit script by executing 'node run'.
|
||||
Description: Run the script through Node.js and view the output.
|
||||
|
||||
Note: If you'd like to store the report, run 'node run > report.txt'.
|
||||
Note description: It's possible to write the console output to a file.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "decentraleyes-audit",
|
||||
"version": "1.5.0",
|
||||
"version": "1.4.0",
|
||||
"author": "Thomas Rientjes",
|
||||
"license": "MPL-2.0",
|
||||
"description": "Library audit tool for Decentraleyes.",
|
||||
@@ -31,7 +31,6 @@ sourceMappingURL = require('source-map-url');
|
||||
var localResourceLocation = '../resources';
|
||||
var localResourceLocationLength = localResourceLocation.length;
|
||||
var localResourcePaths = [];
|
||||
var comparedResourceAmount = 0;
|
||||
var resourceAmount = 0;
|
||||
|
||||
/**
|
||||
@@ -42,6 +41,10 @@ function _fetchLocalResourcePaths(folderPath) {
|
||||
|
||||
fileSystem.readdirSync(folderPath).forEach(function (resourceName) {
|
||||
|
||||
if (resourceName === '_audit') {
|
||||
return localResourcePaths;
|
||||
}
|
||||
|
||||
var resourcePath = folderPath + '/' + resourceName;
|
||||
var resourceStatistics = fileSystem.statSync(resourcePath);
|
||||
|
||||
@@ -72,7 +75,7 @@ function _getLocalResourceContents(fileLocation, callback) {
|
||||
|
||||
var localFileContents = buffer.toString('utf8', 0, buffer.length);
|
||||
|
||||
fileSystem.close(fileDescriptor, function () {});
|
||||
fileSystem.close(fileDescriptor);
|
||||
callback(localFileContents);
|
||||
});
|
||||
});
|
||||
@@ -153,6 +156,9 @@ function _compareResources(localResourceContents, remoteResourceContents, URL) {
|
||||
sourceMappingNotice = '[X] REMOTE RESOURCE HAD SOURCE MAPPING URL';
|
||||
}
|
||||
|
||||
// Remove the syntax invalidation character from the local contents.
|
||||
localResourceContents = localResourceContents.substring(1);
|
||||
|
||||
var localResourceHash = _hashFileContents(localResourceContents);
|
||||
var remoteResourceHash = _hashFileContents(remoteResourceContents);
|
||||
|
||||
@@ -170,8 +176,6 @@ function _compareResources(localResourceContents, remoteResourceContents, URL) {
|
||||
console.log();
|
||||
console.log('[X] LOCAL AND REMOTE RESOURCE HASHES MATCH');
|
||||
console.log(sourceMappingNotice);
|
||||
|
||||
_incrementComparedResourceAmount();
|
||||
}
|
||||
|
||||
function _showCompletedMessage() {
|
||||
@@ -182,18 +186,6 @@ function _showCompletedMessage() {
|
||||
console.log();
|
||||
}
|
||||
|
||||
function _incrementComparedResourceAmount() {
|
||||
|
||||
comparedResourceAmount++;
|
||||
|
||||
if (comparedResourceAmount === resourceAmount) {
|
||||
|
||||
setTimeout(function () {
|
||||
_showCompletedMessage();
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializations
|
||||
*/
|
||||
@@ -223,6 +215,13 @@ localResourcePaths.forEach(function (resourcePath, index) {
|
||||
|
||||
console.log();
|
||||
console.log('------------------------------------------');
|
||||
|
||||
if (index === resourceAmount - 1) {
|
||||
|
||||
setTimeout(function () {
|
||||
_showCompletedMessage();
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.1
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.2
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.3
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.4
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.5
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.6
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.0.8
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.0
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.1
|
||||
(c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.10
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.15
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.16
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.20
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.23
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.26
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.28
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.2.29
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.0
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.10
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.11
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.14
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.15
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.3
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.3.8
|
||||
(c) 2010-2014 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.4.0
|
||||
(c) 2010-2015 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.4.2
|
||||
(c) 2010-2015 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
AngularJS v1.4.8
|
||||
(c) 2010-2015 Google, Inc. http://angularjs.org
|
||||
License: MIT
|
||||
@@ -1,4 +1,4 @@
|
||||
// Backbone.js 0.9.0
|
||||
@// Backbone.js 0.9.0
|
||||
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Backbone may be freely distributed under the MIT license.
|
||||
// For all details and documentation:
|
||||
@@ -1,4 +1,4 @@
|
||||
// Backbone.js 0.9.1
|
||||
@// Backbone.js 0.9.1
|
||||
|
||||
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Backbone may be freely distributed under the MIT license.
|
||||
@@ -1,4 +1,4 @@
|
||||
// Backbone.js 0.9.10
|
||||
@// Backbone.js 0.9.10
|
||||
|
||||
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Backbone may be freely distributed under the MIT license.
|
||||
@@ -1,4 +1,4 @@
|
||||
// Backbone.js 0.9.2
|
||||
@// Backbone.js 0.9.2
|
||||
|
||||
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Backbone may be freely distributed under the MIT license.
|
||||
@@ -1,4 +1,4 @@
|
||||
// Backbone.js 0.9.9
|
||||
@// Backbone.js 0.9.9
|
||||
|
||||
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
||||
// Backbone may be freely distributed under the MIT license.
|
||||
1
data/resources/backbone.js/1.0.0/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.0.0/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.1.0/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.1.0/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.1.1/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.1.1/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.1.2/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.1.2/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.2.0/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.2.0/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.2.1/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.2.1/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.2.2/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.2.2/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
1
data/resources/backbone.js/1.2.3/backbone-min.js.dec
Normal file
1
data/resources/backbone.js/1.2.3/backbone-min.js.dec
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2013, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
@@ -1,4 +1,4 @@
|
||||
// ==========================================================================
|
||||
@// ==========================================================================
|
||||
// Project: Ember - JavaScript Application Framework
|
||||
// Copyright: ©2011-2013 Tilde Inc. and contributors
|
||||
// Portions ©2006-2011 Strobe Inc.
|
||||
@@ -1,4 +1,4 @@
|
||||
// ==========================================================================
|
||||
@// ==========================================================================
|
||||
// Project: Ember - JavaScript Application Framework
|
||||
// Copyright: Copyright 2011-2013 Tilde Inc. and contributors
|
||||
// Portions Copyright 2006-2011 Strobe Inc.
|
||||
@@ -1,4 +1,4 @@
|
||||
// ==========================================================================
|
||||
@// ==========================================================================
|
||||
// Project: Ember - JavaScript Application Framework
|
||||
// Copyright: Copyright 2011-2013 Tilde Inc. and contributors
|
||||
// Portions Copyright 2006-2011 Strobe Inc.
|
||||
@@ -1,4 +1,4 @@
|
||||
/*!
|
||||
@/*!
|
||||
* @overview Ember - JavaScript Application Framework
|
||||
* @copyright Copyright 2011-2014 Tilde Inc. and contributors
|
||||
* Portions Copyright 2006-2011 Strobe Inc.
|
||||
@@ -1,4 +1,4 @@
|
||||
/*!
|
||||
@/*!
|
||||
* @overview Ember - JavaScript Application Framework
|
||||
* @copyright Copyright 2011-2014 Tilde Inc. and contributors
|
||||
* Portions Copyright 2006-2011 Strobe Inc.
|
||||
@@ -1,4 +1,4 @@
|
||||
/*!
|
||||
@/*!
|
||||
* @overview Ember - JavaScript Application Framework
|
||||
* @copyright Copyright 2011-2014 Tilde Inc. and contributors
|
||||
* Portions Copyright 2006-2011 Strobe Inc.
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
* Ext Core Library 3.0
|
||||
* http://extjs.com/
|
||||
* Copyright(c) 2006-2009, Ext JS, LLC.
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
@/*
|
||||
* Ext Core Library 3.0
|
||||
* http://extjs.com/
|
||||
* Copyright(c) 2006-2009, Ext JS, LLC.
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user