Commit Graph

372 Commits

Author SHA1 Message Date
Sander ada069b3e3
feat(qutedmenu): sort history results by last access time 2025-08-21 23:20:34 +02:00
Florian Bruhin 85e1a132bb scripts: Update shellcheck error ignores for password_fill 2025-08-04 11:35:04 +02:00
Florian Bruhin f9933d2f3e userscripts: Properly avoid tldextract warning
The previous fix in 3dc212a815 was insufficient,
as the inner `getattr(extract_result, "registered_domain")` was always evaluated
first (thus triggering the deprecation warning again).

We also cannot do:

    getattr(extract_result, "top_domain_under_public_suffix", None) or extract_result.registered_domain

as `""` is a valid value for it.
2025-04-17 11:11:33 +02:00
Florian Bruhin 3dc212a815 userscripts: Avoid tldextract warning 2025-04-11 15:41:59 +02:00
dezeroku d49c96aa29
userscripts: fix qute-bitwarden failing with expired session
This could be seen as "Vault is locked" error in the logs,
if run with the --nointeraction flag
2025-03-16 16:47:08 +01:00
user202729 f25604b819 Bitwarden: Pass master password in environment variable 2025-03-12 15:53:50 +01:00
Florian Bruhin 718d66fb6d Merge remote-tracking branch 'origin/pr/7591' 2025-02-15 16:10:24 +01:00
Florian Bruhin a52f378787 Add qute-translate-popup to userscript list 2025-01-03 15:45:56 +01:00
toofar 90cf7e1ff9 Merge pull request #8133 from DrTobe/idna-matching
Add Unicode normalization and IDNA encoding to qute-pass userscript.
2024-06-16 11:20:42 +12:00
Tobias Naumann 12ebc843d1 Move idna_encode function calls out of loops whenever possible to avoid repeated computations 2024-05-24 00:16:04 +02:00
Vanessa Frank 295943060c Changed line 35 of tor_identity userscript to stop it throwing an error when '--control-port' is passed 2024-04-11 17:41:42 -06:00
Tobias Naumann bc7d956f77 Add Unicode normalization and IDNA encoding to qute-pass userscript for the 'pass' mode (gopass support missing) 2024-03-18 16:34:57 +01:00
toofar d4a7619f9c userscripts: run view_in_mpv jseval in main world
1. run jseval in main world: the script adds an element that calls the
   `restore_video` function. This was failing with a "not found" message
   on webengine, presumably because the dom click handler runs in the
   main world and the function was over in the jseval world. The the
   script predates webengine which is the backend that implements the
   worlds.
2. remove a console log message, seems to be just noise and easy enough
   to add back later
3. remove href attribute of the restore video link: this seemed to be
   causing the `restore_video` method to be called twice. The second
   time with `this` as the global Window object, which was causing an
   error because that has a null `parentNode` attribute.
4. added the `cursor: pointer` style that was needed since the element
   didn't have an href anymore
5. change the mpv flags `--terminal` -> `--quiet`. This means we get
   error messages (eg from yt-dlp) in error logs and in the `:process`
   page now. It can get a bit spammy though if you are running from a
   terminal. I'm getting a log of keepalive warning and error logs from
   ffmpeg. On the other hand it's really annoying to see a "process
   failed, see :process for details" and having no error messages in
   there.

Fixes: #7838
2023-08-20 10:57:14 +12:00
Florian Bruhin a25e7c2b64 Fix remaining references to old commands
Follow-up to #7809, see #7214
2023-08-15 20:15:48 +02:00
Florian Bruhin 8ddaef35d0 reuse: Fix more copyright headers
See previous commit, forgot ? after year range
2023-07-23 12:56:13 +02:00
Florian Bruhin 3eb826f664 reuse: Update remaining copyright texts
git ls-files | \
    xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) ([^<]*)<([^>]*)>/SPDX-FileCopyrightText: \2<\3>/'
2023-07-23 12:52:01 +02:00
Florian Bruhin 0718b25796 reuse: Initial copyright text update for myself
git ls-files | \
    xargs sed -Ei 's/Copyright [0-9]{4}(-[0-9]{4}) Florian Bruhin \(The Compiler\) <mail@qutebrowser\.org>/SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org>/'
2023-07-23 12:49:05 +02:00
Florian Bruhin 67686bb1a7 reuse: Fix remaining userscripts without extension
reuse annotate --license="GPL-3.0-or-later" --style python \
    misc/userscripts/openfeeds \
    misc/userscripts/qute-bitwarden \
    misc/userscripts/qute-keepass \
    misc/userscripts/qute-keepassxc \
    misc/userscripts/qute-lastpass \
    misc/userscripts/qute-pass \
    misc/userscripts/tor_identity \
    misc/userscripts/dmenu_qutebrowser \
    misc/userscripts/rss
2023-07-23 12:28:23 +02:00
Florian Bruhin ec34865168 Move master branch references to main
Closes #7097
2023-07-23 11:38:19 +02:00
Florian Bruhin 29dffd782d Update userscripts to PyQt6 2023-06-30 19:29:28 +02:00
Florian Bruhin 86a83240b9 Update broken userscript links 2023-06-26 13:55:45 +02:00
Roberto Alsina a31b654252 Use url netloc as a candidate key for qute-pass 2023-05-30 19:13:59 -03:00
Eolien55 faf692657c misc/userscripts/ripbang: Use lite.duckduckgo
The previous way of obtaining the Bang's URL was using the
response's body, using the url atrribute of a meta tag. The way
this was handled was a bit problematic: some URLs were of the format
/l/?uddg=<URL>&<some-other-query-arguments>, while others (such as google)
is simply <URL>. This could have been fixed by using an if-else, but I
preferred another approach. Lite DuckDuckGo sends a 303 response when
using Bangs, instead of a 200 response which makes the redirect. The
location header of the 303 response is the search engine's URL, so it's
easy to implement this function, working for both afformentioned URL
templates.
2023-02-26 15:47:13 +01:00
Takahashi, Naoki 77a5eec4eb
Fix: Add `-p` to examples
Usage of the following example is not available unless `-p` is added.

    `usage: tor_identity [-h] [-c CONTROL_PORT] [-p PASSWORD]`
2023-01-21 02:04:46 +09:00
Florian Bruhin 5afc8a6819 Make shellcheck happy again about password_fill
v0.9.0 seems to add SC2317 ("Command appears to be unreachable."):
https://www.shellcheck.net/wiki/SC2317

This adds various false-positives in password_fill, let's just ignore
those...

Also see: https://github.com/koalaman/shellcheck/issues/2613
2022-12-13 08:59:48 +01:00
Florian Bruhin dbcc0e2514 userscripts: Fix scammy link
See #6516
2022-10-26 22:38:08 +02:00
Florian Bruhin c2f56a753b doc: Add mister_monster userscripts 2022-10-24 17:13:11 +02:00
Jon Higgs 5a88094435 Send source URL to Breadability
Used to construct fully-qualified URLs from relative links. Without it
you get broken images and links.
2022-10-08 12:44:01 +11:00
Florian Bruhin 21c82b029b doc: Add qute-containers to README 2022-08-22 15:19:29 +02:00
Florian Bruhin 63caa39a2a qute-pass: Remove feedback line
Closes #7301
2022-07-11 11:29:19 +02:00
Florian Bruhin 7fc4a3da62 Merge remote-tracking branch 'origin/pr/6456' 2022-06-14 14:17:07 +02:00
Florian Bruhin 870fccb366 Merge remote-tracking branch 'origin/pr/7196' 2022-06-13 11:26:43 +02:00
Florian Bruhin 91d01f1393 Merge remote-tracking branch 'origin/pr/7168' 2022-06-13 11:19:46 +02:00
mkonig 9538cbe9e7
Merge branch 'qutebrowser:master' into master 2022-06-07 13:16:55 +02:00
Rijnder Wever 12fcff9fe8
Remove superfluous css
It makes no sense to force text to be white, especially for users that already use a white background. I probably included this line by mistake.
2022-06-03 16:46:05 +02:00
Markus Blöchl 6c1d6dd2c5 qute-keepassxc: Add support for TOTP 2022-05-21 22:45:27 +02:00
Markus Blöchl f738ca3b0c qute-keepassxc: Use rofi to select from multiple matching accounts 2022-05-21 22:45:27 +02:00
Markus Blöchl 885081d4e4 qute-keepassxc: Trigger database unlock when querying credentials 2022-05-21 22:45:27 +02:00
Lars Rustand d6f343cfd4
Add window and private options for qutedmenu 2022-05-13 21:41:50 +02:00
mkonig 1ee1e37b29
Merge branch 'qutebrowser:master' into master 2022-05-10 07:34:17 +02:00
Florian Bruhin 838c435896 docs: Add qute-1password 2022-05-09 18:11:11 +02:00
mkonig 55d1c9bb8b
Merge branch 'qutebrowser:master' into master 2022-04-29 09:06:29 +02:00
Benjamin Schnitzler 9c9d7defc8 link to "pseudo per domain stylesheets" userscript in userscripts readme 2022-04-28 23:13:38 +02:00
Philipp Albrecht dc83634e1a Join subdomain and domain with a dot 2022-04-13 10:14:49 +02:00
Florian Bruhin ab7a2ee558 Switch to Python 3.7 subprocess API
Follow-up for #6905
2022-04-04 16:58:31 +02:00
Florian Bruhin 0a2940622c Fix some userscript syntax issues
Thanks to (a hacked) pyupgrade
2022-04-03 21:04:33 +02:00
Florian Bruhin 7580eca147 Actually mark qute-pass executable 2022-04-02 12:50:10 +02:00
Florian Bruhin 3f58605ad1 Merge remote-tracking branch 'origin/pr/6543' 2022-03-31 21:14:40 +02:00
Florian Bruhin 50922bf620 Merge remote-tracking branch 'origin/pr/6957' 2022-03-31 14:40:33 +02:00
Florian Bruhin 887253f70c Add missing space 2022-03-31 14:37:20 +02:00