qutebrowser/misc/userscripts
toofar 87ab35995a 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
(cherry picked from commit d4a7619f9c)
2023-09-10 12:09:44 +02:00
..
README.md Update broken userscript links 2023-06-26 13:55:45 +02:00
add-nextcloud-bookmarks Update userscripts to PyQt6 2023-06-30 19:29:28 +02:00
add-nextcloud-cookbook Update userscripts to PyQt6 2023-06-30 19:29:28 +02:00
cast cast userscript: Fix error message 2022-03-31 11:41:30 +02:00
dmenu_qutebrowser reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
format_json Switch format_json userscript to /bin/sh again 2021-01-28 15:17:17 +01:00
getbib doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
kodi Fix typos in kodi userscript 2020-12-03 10:48:04 +01:00
open_download userscripts/open_download: Wait for xdg-open exit code 2022-01-12 15:23:23 +02:00
openfeeds reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
password_fill Make shellcheck happy again about password_fill 2022-12-13 08:59:48 +01:00
qr Enforce /usr/bin/env shebangs in userscripts 2020-12-03 11:09:20 +01:00
qute-1pass Move master branch references to main 2023-07-23 11:38:19 +02:00
qute-bitwarden reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
qute-keepass Fix remaining references to old commands 2023-08-15 20:15:48 +02:00
qute-keepassxc reuse: Fix remaining userscripts without extension 2023-07-23 12:28:23 +02:00
qute-lastpass reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
qute-pass reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
qutedmenu Add window and private options for qutedmenu 2022-05-13 21:41:50 +02:00
readability Send source URL to Breadability 2022-10-08 12:44:01 +11:00
readability-js Remove superfluous css 2022-06-03 16:46:05 +02:00
ripbang make url grabbing more robust 2022-03-02 10:59:30 -05:00
rss reuse: Fix more copyright headers 2023-07-23 12:56:13 +02:00
taskadd Fix remaining references to old commands 2023-08-15 20:15:48 +02:00
tor_identity reuse: Update remaining copyright texts 2023-07-23 12:52:01 +02:00
view_in_mpv userscripts: run view_in_mpv jseval in main world 2023-09-10 12:09:44 +02:00

README.md

Userscripts

The following userscripts are included in the current directory.

  • cast: Cast content on your Chromecast using castnow. Only youtube-dl downloadable content.
  • dmenu_qutebrowser: Pipes history, quickmarks, and URL into dmenu.
  • format_json: Pretty prints current page's JSON code in other tab.
  • getbib: Scraping the current web page for DOIs and downloading corresponding bibtex information.
  • open_download: Opens a rofi menu with all files from the download directory and opens the selected file.
  • openfeeds: Opens all links to feeds defined in the head of a site.
  • password_fill: Find a username/password entry and fill it with credentials given by the configured backend (currently only pass) for the current website.
  • qute-keepass: Insertion of usernames and passwords from keepass databases using pykeepass.
  • qute-keepassxc: Insert credentials from open KeepassXC database using keepassxc-browser protocol.
  • qute-pass: Insert login information using pass and a dmenu-compatible application (e.g. dmenu, rofi -dmenu, ...).
  • qute-lastpass: Similar to qute-pass, for Lastpass.
  • qute-bitwarden: Similar to qute-pass, for Bitwarden.
  • qute-1pass: Insert login information using onepassword and rofi.
  • qutedmenu: Handle open -s && open -t with bemenu.
  • readability: Executes python-readability on current page and opens the summary as new tab.
  • readability-js: Processes the current page with the readability library used in Firefox Reader View and opens the summary as new tab.
  • ripbang: Adds DuckDuckGo bang as searchengine.
  • rss: Keeps track of URLs in RSS feeds and opens new ones.
  • taskadd: Adds a task to taskwarrior.
  • tor_identity: Change your tor identity.
  • view_in_mpv: Views the current web page in mpv using sensible mpv-flags.
  • qr: Show a QR code for the current webpage via qrencode.
  • kodi: Play videos in Kodi.
  • add-nextcloud-bookmarks: Create bookmarks in Nextcloud's Bookmarks app.
  • add-nextcloud-cookbook: Add recipes to Nextcloud's Cookbook app.

Others

The following userscripts can be found on their own repositories.