code formatting (black)
This commit is contained in:
parent
35b62ce4a4
commit
1a05cb5e59
1 changed files with 7 additions and 6 deletions
|
|
@ -450,9 +450,8 @@ def display_page(context):
|
|||
if context["cs_dark_mode_invert_videos"]
|
||||
else "video.catsoop-darkmode-invert"
|
||||
)
|
||||
context[
|
||||
"cs_dark_mode_javascript"
|
||||
] = """
|
||||
context["cs_dark_mode_javascript"] = (
|
||||
"""
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
if (DarkReader.isEnabled()) {
|
||||
var invertfilter = 'invert(100%%) hue-rotate(180deg)' +
|
||||
|
|
@ -464,9 +463,11 @@ def display_page(context):
|
|||
inverter.innerText = '%s, %s {filter: ' + invertfilter + ';}\\n\\n'
|
||||
document.head.appendChild(inverter);
|
||||
}
|
||||
});""" % (
|
||||
imgselector,
|
||||
videoselector,
|
||||
});"""
|
||||
% (
|
||||
imgselector,
|
||||
videoselector,
|
||||
)
|
||||
)
|
||||
|
||||
out = (
|
||||
|
|
|
|||
Loading…
Reference in a new issue