-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dark-mode
#3129
Fix dark-mode
#3129
Conversation
Ah, I missed those. Should've checked for any earlier work on it. With that in mind, here's what I found: (source (if (str:starts-with-p "javascript:" source)
(quri:url-decode (subseq source 11))
source)) If you look at the above code,
EDIT: It turns out that all the bookmarklets break with |
We do need it in case of We can have an additional check, for |
@hgluka and @aartaka please coordinate efforts to move forward with this PR. I don't know anything about bookmarklets so I'm sure you're in a better position. Ideally, this fix should be fixed by next Monday, the date of the next release, which will feature bug fixes only. Don't forget to add a changelog entry mentioning it. Thanks. |
I agree with @aartaka. The only question is, do we want to throw an error when a bookmarklet with |
just echo a warning if you can gracefully recover |
Same as @jmercouris:
EDIT: Typo fix |
@aadcg @aartaka I don't think there's a way to prove whether a string is percent-encoded or not. Still, if a bookmarklet that starts with |
@hgluka let me know when it's ready to be merged. One commit for the fix, and another one for the changelog entry please. Thanks! |
@aadcg Should be ready now. |
Thanks @hgluka. |
Description
This fixes
dark-mode
by removing thejavascript:
URL prefix from thedarken
bookmarklet.Fixes #3128.
Checklist:
Everything in this checklist is required for each PR. Please do not approve a PR that does not have all of these items.
cd /path/to/nyxt/checkout git submodule add https://gitlab.common-lisp.net/nyxt/py-configparser _build/py-configparser
:documentation
s written in the aforementioned style. (It's OK to skip the docstring for really trivial parts.)changelog.lisp
with my changes if it's anything user-facing (new features, important bug fix, compatibility breakage).migration.lisp
entry for all compatibility-breaking changes.(asdf:test-system :nyxt)
and(asdf:test-system :nyxt/gi-gtk)
) and they pass.