Commit Graph

359 Commits

Author SHA1 Message Date
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
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
Florian Bruhin c832be9b95 Merge remote-tracking branch 'origin/pr/6996' 2022-03-31 14:37:01 +02:00
Florian Bruhin d671887777 Merge remote-tracking branch 'origin/pr/7048' 2022-03-31 12:06:13 +02:00
Florian Bruhin 0489f6a090 Merge remote-tracking branch 'origin/pr/7068' 2022-03-31 11:50:43 +02:00
Florian Bruhin f654c0fdfc cast userscript: Fix error message
Avoid SC2140 shellcheck false-positive: https://github.com/koalaman/shellcheck/issues/2479

Also remove extra quoting
2022-03-31 11:41:30 +02:00
David Vaughan 0321577cc3 Fix a couple tab lengths (cast) 2022-03-21 21:13:56 -07:00
David Vaughan 065edd67fa Change cast configuration to use an env var
Also some other small improvements / fixes.
2022-03-21 21:06:36 -07:00
David Vaughan 88aa165d48 Disable shellcheck on source line (cast) 2022-03-16 16:46:12 -07:00
David Vaughan e38b31af0b Make cast dl program configurable (default yt-dlp)
I am making the yt-dl program used in the `cast` userscript
configurable, via a pattern borrowed from some of the other
userscripts here (e.g. `password_fill` and `kodi`): we look for an
optional "cast_rc" file in the qutebrowser config directory and source
it if it exists.

(Technically this allows for overriding any variables used in `cast`,
but this is in line with how the pattern works in the other scripts
already.)

If the config file is not found, we default to yt-dlp, and if that
doesn't exist then youtube-dl. If after all this no program is
available, we emit an error message

(note, the error messaging function as currently written in the cast script
seems broken and doesn't display the full error message, but fixing this
existing bug is outside of the scope of this change. May be good for a
followup).

I recognize there's some danger of breakage for some users by switching
the default to yt-dlp, but I think it's reasonable to assume that almost
everybody who has yt-dlp installed would prefer it to be used anyway.
Those who don't will experience no difference.
2022-03-16 16:39:57 -07:00
DavidRV00 3ba49366d1
Switch `cast` userscript from youtube-dl to yt-dlp
The `cast` userscript hasn't worked for me in a while, because it attempts to launch youtube-dl which has been replaced by yt-dlp for some time. Switching this one command gets `cast` working for me.
2022-03-15 23:30:36 -07:00
Joakim Hansen 3b54d45cd9 qute-pass: Support folder prefixes in gopass-mode 2022-03-14 12:36:11 +01:00
mkonig 75a714e7f0
Merge branch 'qutebrowser:master' into master 2022-03-09 09:19:41 +01:00
Daniel Dimijian 68f683a8ad make url grabbing more robust 2022-03-02 10:59:30 -05:00
Daniel Dimijian 5eb57f4354 remove python 2 compatibility imports 2022-03-02 10:58:03 -05:00