Skip to content

Commit

Permalink
Merge remote-tracking branch 'gh/fix-dark-mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Aug 28, 2023
2 parents da57207 + 76fc9b6 commit 72e89f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion source/changelog.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,10 @@ Chromium, Brave and Vivaldi. For instance, "
(:nsection :title "Bug fixes"
(:ul
(:li "Fix clipboard facilities on X11 and Wayland.")
(:li "Fix source code location on Flatpak.")))
(:li "Fix source code location on Flatpak.")
(:li "Fix " (:nxref :mode 'nyxt/mode/style:dark-mode)
" and the " (:nxref :command 'nyxt/mode/bookmarklets:darken)
" bookmarklet command.")))
;; (:nsection :title "UI/UX"
;; (:ul
;; (:li "")))
Expand Down
2 changes: 1 addition & 1 deletion source/mode/bookmarklets.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ See `define-bookmarklet-command'."
(define-bookmarklet-command darken
"Darken the page."
;; This bookmarklet was sourced form 'https://github.com/x08d/222' with permission under the GPL v3.0
"javascript:document.querySelectorAll('*').forEach(e=>e.setAttribute('style','background-color:#222 !important;background-image:none !important;color:#'+(/^A|BU/.test(e.tagName)?'36c;text-decoration:underline;':'eee;')+e.getAttribute('style')))")
"document.querySelectorAll('*').forEach(e=>e.setAttribute('style','background-color:#222 !important;background-image:none !important;color:#'+(/^A|BU/.test(e.tagName)?'36c;text-decoration:underline;':'eee;')+e.getAttribute('style')))")

0 comments on commit 72e89f9

Please sign in to comment.