diff --git a/background.ts b/background.ts index 9707bd5..4e2e800 100644 --- a/background.ts +++ b/background.ts @@ -1,5 +1,3 @@ import { init } from "./memory"; init(); - -alert("memory initialized!"); diff --git a/extended-request.ts b/extended-request.ts index 0f70832..26a1a5f 100644 --- a/extended-request.ts +++ b/extended-request.ts @@ -14,6 +14,7 @@ const whitelisted_cookies = [ export default class ExtendedRequest { public tabId: number; public url: string; + public shorthost: string; public requestHeaders: Request["requestHeaders"]; public origin: string; public initialized = false; @@ -153,5 +154,14 @@ export default class ExtendedRequest { this.tabId = data.tabId; this.url = data.url; this.requestHeaders = data.requestHeaders; + this.shorthost = getshorthost(data.url); + } + + hasMark() { + return this.stolenData.some((data) => data.hasMark()); + } + + getMarkedEntries() { + return this.stolenData.filter((data) => data.hasMark()); } } diff --git a/report-window/report-window.html b/report-window/report-window.html index 50dd91b..8a59dca 100644 --- a/report-window/report-window.html +++ b/report-window/report-window.html @@ -6,6 +6,11 @@
+