Skip to content

Commit

Permalink
1.6.9 Cleaner CSP fix, Production or debug text, Fixing @rule block s…
Browse files Browse the repository at this point in the history
…yntax
  • Loading branch information
ThomazPom committed Dec 12, 2024
1 parent 4885746 commit 37f613b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Listeners {
details.dataCount = 0;
details.rejectedValues = "";

console.log(JSON.parse(JSON.stringify(details)))


// // ondata event handler
filter.ondata = event => {
Expand Down Expand Up @@ -264,7 +264,7 @@ class Listeners {
details.dataCount = 1;
details.writeEnd = await new Blob(details.writeEnd).arrayBuffer();

// details.debugParsing = 1;

let decodedValue= uDarkDecode(details.charset,details.writeEnd,{stream:true});
if(details.debugParsing){ // debug
details.writeEnd = decodedValue
Expand Down
1 change: 1 addition & 0 deletions backgroundClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class uDarkExtended extends uDarkExtendedContentScript {

options.chunk = uDark.edit_str( str, false, verify, details, false, options);


if (options.chunk.message) {
details.rejectedValues = str; // Keep rejected values for later use
return;
Expand Down
2 changes: 0 additions & 2 deletions contentScriptClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ class uDarkExtendedContentScript {
let edited = uDark.edit_all_cssRule_colors_cb({
style:elem
}, "background", value, {}, {
override: uDark.backOverrides,
l_var:"--uDark_transform_darken",
prefix_vars: "bg",
raw_text: true,
Expand All @@ -408,7 +407,6 @@ class uDarkExtendedContentScript {
let edited = uDark.edit_all_cssRule_colors_cb({
style:elem
}, "color", value, {}, {
override: uDark.frontOverrides,
l_var: "--uDark_transform_lighten",
h_var: "--uDark_transform_text_hue",
fastValue0:true,
Expand Down

0 comments on commit 37f613b

Please sign in to comment.