From 9539d975950ee03ad47fd4989e6dd73a8eb38924 Mon Sep 17 00:00:00 2001 From: xmcp Date: Sun, 21 Apr 2024 02:45:57 +0800 Subject: [PATCH] show dnr rules in trobuleshooting page --- pakkujs/page/troubleshooting.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pakkujs/page/troubleshooting.ts b/pakkujs/page/troubleshooting.ts index 1e84e21..806b55a 100644 --- a/pakkujs/page/troubleshooting.ts +++ b/pakkujs/page/troubleshooting.ts @@ -33,6 +33,10 @@ chrome.scripting.getRegisteredContentScripts(function(scripts) { debug.textContent += '\n\n**Content Scripts:** `' + JSON.stringify(scripts) + '`'; }); +chrome.declarativeNetRequest.getDynamicRules(function(rules) { + debug.textContent += '\n\n**DNR Rules:** `' + JSON.stringify(rules) + '`'; +}); + debug.textContent += '\n\n**localStorage:** `' + JSON.stringify(localStorage) + '`'; get_config().then((config)=>{ debug.textContent += '\n\n**Config:** `' + JSON.stringify(config) + '`';