1
0
forked from icd/rentgen

Compare commits

...

10 Commits

5 changed files with 607 additions and 347 deletions

View File

@ -53,6 +53,7 @@ export function parseAnswers({
rejection_is_hard, rejection_is_hard,
administrator_identity_available_before_choice, administrator_identity_available_before_choice,
popup_action, popup_action,
popup_closed_how,
...rest ...rest
}: RawAnswers): ParsedAnswers { }: RawAnswers): ParsedAnswers {
return { return {
@ -68,6 +69,7 @@ export function parseAnswers({
rejection_is_hard, rejection_is_hard,
administrator_identity_available_before_choice, administrator_identity_available_before_choice,
popup_action, popup_action,
popup_closed_how,
hosts: parseHostAnswers(rest), hosts: parseHostAnswers(rest),
} as ParsedAnswers; } as ParsedAnswers;
} }

View File

@ -1,3 +1,4 @@
import { useState } from 'react';
import { getMemory } from '../../memory'; import { getMemory } from '../../memory';
import { RequestCluster } from '../../request-cluster'; import { RequestCluster } from '../../request-cluster';
@ -20,6 +21,7 @@ export function StolenData({
cookiesOrOriginOnly: boolean; cookiesOrOriginOnly: boolean;
detailsVisibility: boolean; detailsVisibility: boolean;
}) { }) {
const [changesCount, setChangesCount] = useState(0);
if (!origin) { if (!origin) {
return ( return (
<div className="stolen-data-container"> <div className="stolen-data-container">
@ -34,9 +36,20 @@ export function StolenData({
(cluster) => !cookiesOrOriginOnly || cluster.hasCookies() || cluster.exposesOrigin() (cluster) => !cookiesOrOriginOnly || cluster.hasCookies() || cluster.exposesOrigin()
); );
return ( return (
<div className="stolen-data-container"> <div className={['stolen-data-container', `data-changes-count-${changesCount}`].join(' ')}>
<span>Domeny{detailsVisibility ? ' oraz przesłane informacje' : null}</span> <span>Domeny{detailsVisibility ? ' oraz przesłane informacje' : null}</span>
<br />
<button
onClick={() => {
clusters.forEach((cluster) => {
cluster.undoMark();
});
setChangesCount(changesCount + 1);
}}
style={{ marginTop: '8px', lineHeight: '32px' }}
>
Odznacz wszystkie
</button>
{clusters.map((cluster) => { {clusters.map((cluster) => {
return ( return (
<StolenDataCluster <StolenDataCluster

View File

@ -3,8 +3,8 @@
"manifest_version": 2, "manifest_version": 2,
"name": "Rentgen", "name": "Rentgen",
"short_name": "Rentgen", "short_name": "Rentgen",
"version": "0.1.10", "version": "0.2.4",
"author": "Kuba Orlik, Arkadiusz Wieczorek (Internet. Czas działać!)", "author": "Kuba Orlik, Arkadiusz Wieczorek (Internet. Time to act! Foundation)",
"homepage_url": "https://git.internet-czas-dzialac.pl/icd/rentgen", "homepage_url": "https://git.internet-czas-dzialac.pl/icd/rentgen",
"background": { "background": {
"scripts": ["lib/background.js"] "scripts": ["lib/background.js"]
@ -39,7 +39,10 @@
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "rentgen@internet-czas-dzialac.pl", "id": "rentgen@internet-czas-dzialac.pl",
"strict_min_version": "91.1.0" "strict_min_version": "91.1.0",
"data_collection_permissions": {
"required": ["none"]
}
} }
} }
} }

922
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "rentgen", "name": "rentgen",
"version": "0.1.10", "version": "0.2.2",
"description": "Rentgen is an add-on prepared for both Firefox-based and Chromium-based browsers. This extension will automatically visualize all the data that a given website sends to third parties.", "description": "Rentgen is an add-on prepared for both Firefox-based and Chromium-based browsers. This extension will automatically visualize all the data that a given website sends to third parties.",
"main": "esbuild.config.js", "main": "esbuild.config.js",
"type": "module", "type": "module",
@ -16,7 +16,7 @@
"build-addon:firefox": "npm i && npm run build:firefox && npm run create-package:firefox", "build-addon:firefox": "npm i && npm run build:firefox && npm run create-package:firefox",
"build-addon:chrome": "npm i && npm run build:chrome && npm run create-package:chrome", "build-addon:chrome": "npm i && npm run build:chrome && npm run create-package:chrome",
"create-package": "web-ext build --ignore-files '!**/node_modules' '!**/node_modules/**/react-dom' '!**/node_modules/**/react-dom/umd' '!**/node_modules/**/*/react-dom.production.min.js' '!**/node_modules/**/react' '!**/node_modules/**/react/umd' '!**/node_modules/**/*/react.production.min.js' '!**/node_modules/**/survey-react' '!**/node_modules/**/survey-react/*.min.js' '!**/node_modules/**/survey-react/*.min.css' --overwrite-dest", "create-package": "web-ext build --ignore-files '!**/node_modules' '!**/node_modules/**/react-dom' '!**/node_modules/**/react-dom/umd' '!**/node_modules/**/*/react-dom.production.min.js' '!**/node_modules/**/react' '!**/node_modules/**/react/umd' '!**/node_modules/**/*/react.production.min.js' '!**/node_modules/**/survey-react' '!**/node_modules/**/survey-react/*.min.js' '!**/node_modules/**/survey-react/*.min.css' --overwrite-dest",
"create-package:firefox": "cd dist-firefox && web-ext build --overwrite-dest --artifacts-dir ../web-ext-artifacts", "create-package:firefox": "web-ext build --overwrite-dest --artifacts-dir ../web-ext-artifacts",
"create-package:chrome": "cd dist-chrome && 7z a -tzip ../web-ext-artifacts/rentgen-chrome-0.1.10.zip * && cd ..", "create-package:chrome": "cd dist-chrome && 7z a -tzip ../web-ext-artifacts/rentgen-chrome-0.1.10.zip * && cd ..",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"lint": "web-ext lint" "lint": "web-ext lint"