From me at the-compiler.org Mon Feb 3 09:19:46 2020 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 3 Feb 2020 09:19:46 +0100 Subject: [qutebrowser] qutebrowser v1.10.0 released! Message-ID: <20200203081946.4vs75rjg46uq7xpo@hooch.localdomain> Hey, I'm happy to announce that qutebrowser v1.10.0 is released. This release fully supports Qt 5.14. The changelog is relatively small - but don't let that fool you, there are some configuration changes related to fonts which might need adjusted configs. If you run into any issues, please let me know ASAP as this is likely the version ending up in Ubuntu 20.04 where it'll be supported for five years. Here are the changes: Added ~~~~~ - New `colors.webpage.prefers_color_scheme_dark` setting which allows forcing `prefers-color-scheme: dark` colors for websites (QtWebEngine with Qt 5.14 or newer). - New `fonts.default_size` setting which can be used to set a bigger font size for all UI fonts. Changed ~~~~~~~ - The `fonts.monospace` setting has been removed and replaced by `fonts.default_family`. The new `default_family` setting is improved in various ways: * It accepts a list of font families (or a single font family) rather than a comma-separated string. As an example, instead of `fonts.monospace = "Courier, Monaco"`, use `fonts.default_family = ["Courier", "Monaco"]`. * Since a list is now accepted as value, no quoting of font names with spaces is required anymore. As an example, instead of `fonts.monospace = '"xos4 Terminus"'`, use `fonts.default_family = 'xos4 Terminus'`. * It is now empty by default rather than having a long list of font names in the default config. When the value is empty, the system's default monospaced font is used. - If `monospace` is now used in a font value, it's used literally and not replaced anymore. Instead, `default_family` is replaced as explained above. - The default `content.headers.accept_language` value now adds a `;q=0.9` classifier which should make the value sent more in-line with what other browsers do. - The `qute-pass` userscript now has a new `--mode gopass` switch which uses gopass rather than pass. - The `tox -e mkvenv` (or `mkvenv-pypi`) way of installing qutebrowser is now replaced by a `mkvenv.py` script. See the updated install instructions for details: https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc#tox - macOS and Windows releases now ship with Qt/QtWebEngine 5.14.1 * Based on Chromium 77.0.3865.129 with security fixes up to Chromium 79.0.3945.117. * Sandboxing is now enabled on Windows. * Monospace fonts are now used when a website requests them on macOS 10.15. * Web notifications are now supported. Fixed ~~~~~ - When quitting qutebrowser, components are now cleaned up differently. This should fix certain (rare) segmentation faults and exceptions when quitting, especially with the new exit scheme introduced in in PyQt5 5.13.1. - Added a workaround for per-domain settings (e.g. a JavaScript whitelist) not being applied in some scenarios with Qt 5.13 and above. - Added additional site-specific quirk for WhatsApp Web. - The `qute-pass` userscript now works correctly when a `PASSWORD_STORE_DIR` ending with a trailing slash is given. Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From gerard.lally at gmail.com Thu Feb 6 06:58:31 2020 From: gerard.lally at gmail.com (Gerard Lally) Date: Thu, 6 Feb 2020 05:58:31 +0000 Subject: [qutebrowser] Enabling scripts per domain Message-ID: Hello. This is a very nice browser. Very impressed so far. A small monthly donation on its way if you can solve the following problem. I have JavaScript disabled by default, and I enable it per domain with tSH -- this adds a permanent exception to allow JS for the parent domain. What I'd like to know is, is there a way of monitoring JS from other domains that the page does not load? For example, I would like to allow JS for a page at the domain independent.ie, and also for some (but not all) other domains that the browser might want to load with this page -- twitter.com to allow images included in the story, for example. With uMatrix on Vivaldi I can see the list of domains a web page tries to load, and I can allow the few I want, in addition to the 1st-party domain and subdomains. Is there a way of watching these domains on qutebrowser and adding them to the exception list? Thank you. Gerard Lally From me at mail.patrickpichler.xyz Thu Feb 6 10:55:07 2020 From: me at mail.patrickpichler.xyz (Patrick) Date: Thu, 6 Feb 2020 10:55:07 +0100 (CET) Subject: [qutebrowser] Run userscript in prompt mode Message-ID: <230515189.111282.1580982907131@office.mailbox.org> Hi, I'm currently trying to implement a basic password manager userscript. I got it working like a charm for normal and input mode, but failed with prompt mode. When executing the userscript with a keybinding it seems to only run, after the prompt window closes. I also tried running the background script with `-d`, but without success. Is there currently any limitation on running userscripts in prompt mode? Can I even insert text from a userscript in prompt mode? I did read the official documentation on userscripts but didn't see anything mentioned there (I might have missed it). Thanks. Patrick. From tgy at inria.fr Thu Feb 6 11:00:35 2020 From: tgy at inria.fr (Valentin Iovene) Date: Thu, 6 Feb 2020 11:00:35 +0100 Subject: [qutebrowser] Run userscript in prompt mode In-Reply-To: <230515189.111282.1580982907131@office.mailbox.org> References: <230515189.111282.1580982907131@office.mailbox.org> Message-ID: <20200206100035.3p3b72gyy5b7dk4a@valoup> I'd be interested in using your userscript. If you can share it with the community that would be great :-) -- Valentin From julian.schreck at online.de Fri Feb 7 15:32:56 2020 From: julian.schreck at online.de (Julian Schreck) Date: Fri, 07 Feb 2020 15:32:56 +0100 Subject: [qutebrowser] Structure/"syntax" of .config/qutebrowser/blocked-hosts Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Dear all, I'd like to block several sites with all their subsites, which I list in my blocked-hosts file, but I don't get rid of the feeling that I have several lines (per host) in the file which I obviously wouldn't need. Therefore I'd like to know how to specify a host so that it and its subsites are blocked all. As an example: fbcdn.net [this would be one host] *fbcdn.net http://fbcdn.net https://fbcdn.net www.fbcdn.net http://www.fbcdn.net https://www.fbcdn.net fna.fbcdn.net [this would be a subsite] *fna.fbcdn.net http://fna.fbcdn.net https://fna.fbcdn.net www.fna.fbcdn.net http://www.fna.fbcdn.net https://www.fna.fbcdn.net fgdl5-1.fna.fbcdn.net *fgdl5-1.fna.fbcdn.net http://fgdl5-1.fna.fbcdn.net https://fgdl5-1.fna.fbcdn.net www.fgdl5-1.fna.fbcdn.net http://www.fgdl5-1.fna.fbcdn.net https://www.fgdl5-1.fna.fbcdn.net scontent.fgdl5-1.fna.fbcdn.net *scontent.fgdl5-1.fna.fbcdn.net http://scontent.fgdl5-1.fna.fbcdn.net https://scontent.fgdl5-1.fna.fbcdn.net www.scontent.fgdl5-1.fna.fbcdn.net http://www.scontent.fgdl5-1.fna.fbcdn.net https://www.scontent.fgdl5-1.fna.fbcdn.net My version of qutebrowser, if needed: $ qutebrowser --version qutebrowser v1.6.1 Git commit: Backend: QtWebEngine (Chromium 65.0.3325.230) CPython: 3.7.3 Qt: 5.11.3 PyQt: 5.11.3 sip: 4.19.14 colorama: 0.3.7 pypeg2: 2.15 jinja2: 2.10 pygments: 2.3.1 yaml: 3.13 cssutils: no attr: 18.2.0 PyQt5.QtWebEngineWidgets: yes PyQt5.QtWebKitWidgets: no pdf.js: no sqlite: 3.27.2 QtNetwork SSL: OpenSSL 1.1.1d 10 Sep 2019 Kind regards, Julian Schreck -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEzucpT3gb7NG6VSL2iO0GkfAqmIkFAl49dRgACgkQiO0GkfAq mImmEQgAiDvM1ejTk3S4YYERXOTTN1I2Vl1zw9gL9/V53fNShM10qDWed4eu8g50 4wjKGVRZMaMNpguzDRNikP1x4LK36I9tv6GL/JaoLmr7bcbo53z20E9/RziyjzdP eAF/HK04xVrRKhWU9eHyQn6U+Iot0rtiDYRFrMS4AOQg5+be0UADhGo3LN50URxk 6zZ7e0/hr1zcMQvEBBDE5Afze9Qfq1hS2w6v/GLdYXV1dSlf8gL8K0myR9c4TVrh zs4GBhct1hSCaEyvONBTsAoyofcBUJvQUicvzjSx7Vg4RyqOJBC+M5YmwkE/NEJo 0GFvAV1/nl3hXB2XSr04jXjP7gtcFg== =PUXa -----END PGP SIGNATURE----- From ipstone17 at gmail.com Sun Feb 9 01:13:16 2020 From: ipstone17 at gmail.com (Isaac Pei) Date: Sat, 8 Feb 2020 19:13:16 -0500 Subject: [qutebrowser] Enabling scripts per domain In-Reply-To: References: Message-ID: perhaps one way to do this is to have customized open command (mapped to some specific key): When opening a url, checking against the list in configuration file: If the list is in 'blocked javascript' list, then open the tab with the javascript disabled. I don't know the internal of qutebrowser well, but guess this might be a simple approach that can be solved with python. For 'real-time' turning off/on javascript or other features, it is probably more involved. But guess this simpler hack will meet most / 95% of the scenario? Best, Isaac On Thu, Feb 6, 2020 at 1:05 AM Gerard Lally wrote: > Hello. > > This is a very nice browser. Very impressed so far. A small monthly > donation on its way if you can solve the following problem. > > I have JavaScript disabled by default, and I enable it per domain with > tSH -- this adds a permanent exception to allow JS for the parent > domain. > > What I'd like to know is, is there a way of monitoring JS from other > domains that the page does not load? For example, I would like to > allow JS for a page at the domain independent.ie, and also for some > (but not all) other domains that the browser might want to load with > this page -- twitter.com to allow images included in the story, for > example. > > With uMatrix on Vivaldi I can see the list of domains a web page tries > to load, and I can allow the few I want, in addition to the 1st-party > domain and subdomains. > > Is there a way of watching these domains on qutebrowser and adding > them to the exception list? > > Thank you. > > Gerard Lally > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Mon Feb 10 17:51:07 2020 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 10 Feb 2020 17:51:07 +0100 Subject: [qutebrowser] Enabling scripts per domain In-Reply-To: References: Message-ID: <20200210165107.pae3hmtt77kdnsrr@hooch.localdomain> Hey Gerard and Isaac, On Thu, Feb 6, 2020 at 1:05 AM Gerard Lally wrote: > This is a very nice browser. Very impressed so far. A small monthly > donation on its way if you can solve the following problem. > > I have JavaScript disabled by default, and I enable it per domain with > tSH -- this adds a permanent exception to allow JS for the parent > domain. Note that tSH (and the related bindings) allows JS for the current page, no matter where that JS is coming from. > What I'd like to know is, is there a way of monitoring JS from other > domains that the page does not load? For example, I would like to > allow JS for a page at the domain independent.ie, and also for some > (but not all) other domains that the browser might want to load with > this page -- twitter.com to allow images included in the story, for > example. > > With uMatrix on Vivaldi I can see the list of domains a web page tries > to load, and I can allow the few I want, in addition to the 1st-party > domain and subdomains. > > Is there a way of watching these domains on qutebrowser and adding > them to the exception list? This isn't possible right now I'm afraid - here's an issue about it: https://github.com/qutebrowser/qutebrowser/issues/28 Note that there's an unofficial project (jmatrix) which does that, though: https://gitlab.com/jgkamat/jmatrix However, it's not supported in any way, and might make qutebrowser unstable. If things break, you get to keep both pieces ;-) On Sat, Feb 08, 2020 at 07:13:16PM -0500, Isaac Pei wrote: > perhaps one way to do this is to have customized open command (mapped to > some specific key): > When opening a url, checking against the list in configuration > file: > If the list is in 'blocked javascript' list, then open the > tab with the javascript disabled. > > I don't know the internal of qutebrowser well, but guess this might be a > simple approach that can be solved with python. > For 'real-time' turning off/on javascript or other features, it is probably > more involved. But guess this simpler hack will meet most / 95% of the > scenario? Like Gerard mentioned in the original mail, toggling JavaScript for a given webpage is something qutebrowser can do since around two years. The question was about managing (and selectively enabled) JavaScript coming from third-party hosts rather than the page itself. Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Mon Feb 10 17:55:09 2020 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 10 Feb 2020 17:55:09 +0100 Subject: [qutebrowser] Structure/"syntax" of .config/qutebrowser/blocked-hosts In-Reply-To: References: Message-ID: <20200210165509.di5mhktbsxkdsdrl@hooch.localdomain> Hey Julian, On Fri, Feb 07, 2020 at 03:32:56PM +0100, Julian Schreck wrote: > I'd like to block several sites with all their subsites, which I list in my blocked-hosts file, but I don't get rid of > the feeling that I have several lines (per host) in the file which I obviously wouldn't need. Therefore I'd like to know > how to specify a host so that it and its subsites are blocked all. Currently, the blocked-hosts files only accept a list of hosts (or an /etc/hosts-like format). In other words, no URLs or wildcards are supported. Here's an issue about it: https://github.com/qutebrowser/qutebrowser/issues/4188 > As an example: > fbcdn.net [this would be one host] > *fbcdn.net > http://fbcdn.net > https://fbcdn.net > www.fbcdn.net > http://www.fbcdn.net > https://www.fbcdn.net > fna.fbcdn.net [this would be a subsite] > *fna.fbcdn.net > [...] Most of those entries don't make any sense. The list contains hostnames, not URLs. fbcdn.net, www.fbcdn.net and fna.fbcdn.net are the only lines there which actually block something, all other lines are not hostnames and thus will never have any effect. Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Mon Feb 10 18:02:41 2020 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 10 Feb 2020 18:02:41 +0100 Subject: [qutebrowser] Run userscript in prompt mode In-Reply-To: <230515189.111282.1580982907131@office.mailbox.org> <20200206100035.3p3b72gyy5b7dk4a@valoup> Message-ID: <20200210170241.un7ejdu3qu5dewfo@hooch.localdomain> Hey Patrick and Valentin, On Thu, Feb 06, 2020 at 10:55:07AM +0100, Patrick wrote: > I'm currently trying to implement a basic password manager > userscript. I got it working like a charm for normal and > input mode, but failed with prompt mode. > > When executing the userscript with a keybinding it seems to > only run, after the prompt window closes. I also tried running > the background script with `-d`, but without success. > > Is there currently any limitation on running userscripts in > prompt mode? Can I even insert text from a userscript in > prompt mode? I did read the official documentation on userscripts > but didn't see anything mentioned there (I might have missed it). I'm not actually sure. It depends on a lot of things - some prompts have a blocking API, and qutebrowser/QtWebEngine ignore a lot of actions while such a prompt is open. Certainly not via :insert-text, as that inserts text into the website. In theory, ":prompt-accept username:password" or ":fake-key -g text" would work, but in practice it indeed looks like this is only executed after the prompt is closed. I don't think there's anything qutebrowser can do about that, I'm afraid. On Thu, Feb 06, 2020 at 11:00:35AM +0100, Valentin Iovene wrote: > I'd be interested in using your userscript. If you can share it with > the community that would be great :-) FWIW there are various password userscripts here: https://github.com/qutebrowser/qutebrowser/tree/master/misc/userscripts Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From gerard.lally at gmail.com Wed Feb 12 13:25:49 2020 From: gerard.lally at gmail.com (Gerard Lally) Date: Wed, 12 Feb 2020 12:25:49 +0000 Subject: [qutebrowser] Enabling scripts per domain In-Reply-To: <20200210165107.pae3hmtt77kdnsrr@hooch.localdomain> References: <20200210165107.pae3hmtt77kdnsrr@hooch.localdomain> Message-ID: Isaac, Florian: Thank you for your replies. Yes, as Florian says, my question was about managing and selectively enabling JavaScript coming from third-party hosts rather than the page itself. Florian: I didn't realise tSH allows all JS on the current page, no matter where that JS is coming from. It seems to me that tSH (with all JS blocked by default) adds an exception for the 1st-party domain to autoconfig.yml, but not for 3rd-party domains. This was why I assumed JS only from the 1st-party domain was being allowed. I am still very impressed with this browser. Keep up the good work. Gerard On Mon, 10 Feb 2020 at 16:51, Florian Bruhin wrote: > > Hey Gerard and Isaac, > > On Thu, Feb 6, 2020 at 1:05 AM Gerard Lally wrote: > > This is a very nice browser. Very impressed so far. A small monthly > > donation on its way if you can solve the following problem. > > > > I have JavaScript disabled by default, and I enable it per domain with > > tSH -- this adds a permanent exception to allow JS for the parent > > domain. > > Note that tSH (and the related bindings) allows JS for the current page, no > matter where that JS is coming from. > > > What I'd like to know is, is there a way of monitoring JS from other > > domains that the page does not load? For example, I would like to > > allow JS for a page at the domain independent.ie, and also for some > > (but not all) other domains that the browser might want to load with > > this page -- twitter.com to allow images included in the story, for > > example. > > > > With uMatrix on Vivaldi I can see the list of domains a web page tries > > to load, and I can allow the few I want, in addition to the 1st-party > > domain and subdomains. > > > > Is there a way of watching these domains on qutebrowser and adding > > them to the exception list? > > This isn't possible right now I'm afraid - here's an issue about it: > https://github.com/qutebrowser/qutebrowser/issues/28 > > Note that there's an unofficial project (jmatrix) which does that, though: > https://gitlab.com/jgkamat/jmatrix > > However, it's not supported in any way, and might make qutebrowser unstable. > If things break, you get to keep both pieces ;-) > > On Sat, Feb 08, 2020 at 07:13:16PM -0500, Isaac Pei wrote: > > perhaps one way to do this is to have customized open command (mapped to > > some specific key): > > When opening a url, checking against the list in configuration > > file: > > If the list is in 'blocked javascript' list, then open the > > tab with the javascript disabled. > > > > I don't know the internal of qutebrowser well, but guess this might be a > > simple approach that can be solved with python. > > For 'real-time' turning off/on javascript or other features, it is probably > > more involved. But guess this simpler hack will meet most / 95% of the > > scenario? > > Like Gerard mentioned in the original mail, toggling JavaScript for a given > webpage is something qutebrowser can do since around two years. The question > was about managing (and selectively enabled) JavaScript coming from third-party > hosts rather than the page itself. > > Florian > > -- > me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org > https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ > GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc > I love long mails! | https://email.is-not-s.ms/ From stanislavstratiev at gmail.com Sat Feb 15 00:32:56 2020 From: stanislavstratiev at gmail.com (Stanislav Stratiev) Date: Fri, 14 Feb 2020 23:32:56 +0000 Subject: [qutebrowser] Unable to start - Error loading config.py Message-ID: <9b59436f-e3a4-b403-83b2-a12f6243b422@gmail.com> Hello, I already posed this question on the IRC but I didn't stay online to receive a reply so I thought that e-mail is a better option for my IRC inconsistency. Here is the error I received: http://paste.the-compiler.org/index.php/view/9b4f635f qutebrowser doesn't start at all. Here's a bunch of things I tried: - I tried deleting ~/.config/qutebrowser/config.py, because of this, I assume that there is no need in me sending out my configuration file. What this did was that the first line of errors disappeared but all of the rest remained. - I pulled the repo and reran python3 scripts/mkvenv.py to reinstall both with python3.5 and python3.7 - Also, tried wiping the install and redoing the above (I assume that shouldn't make any difference in the first place) - I tried running the debugger option but I'm not really sure what to look for. I'm running Mint 18 and I didn't have any problems running qutebrowser for almost 2 years now up until ~2 weeks ago. I can't remember what I was doing then that caused it because I only decided to try and fix it yesterday. I would be very happy if you can help me out. Best regards, Stanislav. From me at the-compiler.org Sat Feb 15 14:30:05 2020 From: me at the-compiler.org (Florian Bruhin) Date: Sat, 15 Feb 2020 14:30:05 +0100 Subject: [qutebrowser] Unable to start - Error loading config.py In-Reply-To: <9b59436f-e3a4-b403-83b2-a12f6243b422@gmail.com> References: <9b59436f-e3a4-b403-83b2-a12f6243b422@gmail.com> Message-ID: <20200215133005.prwjxnvby3l43vdq@hooch.localdomain> Hey Stanislav, On Fri, Feb 14, 2020 at 11:32:56PM +0000, Stanislav Stratiev wrote: > Hello, > > I already posed this question on the IRC but I didn't stay online to receive > a reply so I thought that e-mail is a better option for my IRC > inconsistency. > > Here is the error I received: > > http://paste.the-compiler.org/index.php/view/9b4f635f > > qutebrowser doesn't start at all. I think there are two things going on here at once, and qutebrowser's error handling is a bit confusing. 1) Your config.py is (or was) invalid. 2) Your ~/.local/share/qutebrowser/state file is corrupted, in a way that's not properly handled by qutebrowser. For 1), it looks like you don't see any traceback. Coincidentally, I fixed this a couple of days ago: https://github.com/qutebrowser/qutebrowser/commit/63d562ed48d7cf7111a7343bdf582847984f286e For 2), you see a traceback in the terminal (i.e. qutebrowser crashed, but before its crash handler was initialized). I fixed the error handling for that case: https://github.com/qutebrowser/qutebrowser/commit/e6ff446577e062af34e58e5655cf2d06d4b8cc68 With v1.10.1 (which was just released), you should get a proper graphical error. > I would be very happy if you can help me out. Can you take a look at how ~/.local/share/qutebrowser/state looks? There isn't much important information in there (only things like whether the quickstart page was shown). However, it'd be good if you can share the corrupted file before deleting it - perhaps there's some hint in there about how this could have happened. After you move that file away, qutebrowser should hopefully start fine again. Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Sat Feb 15 14:32:08 2020 From: me at the-compiler.org (Florian Bruhin) Date: Sat, 15 Feb 2020 14:32:08 +0100 Subject: [qutebrowser] qutebrowser v1.10.1 released Message-ID: <20200215133208.wtaaoig2jbcb6b6g@hooch.localdomain> Hey, I'm happy to announce that I just released qutebrowser v1.10.1. This is a relatively small bugfix release: Fixed ~~~~~ - Crash when saving data fails during shutdown (which was a regression introduced in v1.9.0). - Error while reading config.py when `fonts.tabs` or `fonts.debug_console` is set to a value including `default_size`. - When a `state` file contains invalid UTF-8 data, a proper error is now displayed. Changed ~~~~~~~ - When the Qt version changes (and also on the first start of v1.10.1 on Qt 5.14), service workers registered by websites are now deleted. This is done as a workaround for QtWebEngine issues causing crashes when visiting pages using service workers (such as Google Mail/Drive). No persistent data should be affected as websites can re-register their service workers, but a (single) backup is kept at `webengine/Service Worker-bak` in qutebrowser's data directory. - Better output on stdout when config errors occur. - The `mkvenv.py` now ensures the latest versions of `setuptools` and `wheel` are installed in the virtual environment, which should speed up installation and fix install issues. - The default for `colors.statusbar.command.private.bg` has been changed to a slightly different gray, as a workaround for a Qt issue where the cursor was invisible in that case. Please let me know ASAP if you run into any issues - I don't expect anything major since the changes are quite small, but if there is anything, I'd like to get it fixed before the deadline for Ubuntu 20.04 LTS. Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From lennart.andersen at teksavvy.com Tue Feb 18 05:01:29 2020 From: lennart.andersen at teksavvy.com (Lennart Andersen) Date: Mon, 17 Feb 2020 23:01:29 -0500 Subject: [qutebrowser] unsubcribe Message-ID: <20200218040129.GA30201@obiwan.localdomain> From psic at free.fr Thu Feb 20 15:54:50 2020 From: psic at free.fr (Jerome) Date: Thu, 20 Feb 2020 15:54:50 +0100 Subject: [qutebrowser] bind chained commands with arguments for each command ? Message-ID: <158221049077.2427.13843157232618052893@jerome> If I want to bind key with some chained commands with arguments for each of them. For instance : save session with name argument, then load a session with session name argument and then open a new tab with a google search with the query argument. I expect to hit the binded key , and the (3) arguments (for instance) separated by space/coma or whatever. Any way to do it ? I read about the set-cmd-text --space , but I guess it can not work for several command. Do I have to make (python) userscript and parse the (3) command line arguments, or can it be done with "normal" conf file ? Regards, J?r?me. From Christian.Helbling at localsearch.ch Thu Feb 20 16:42:10 2020 From: Christian.Helbling at localsearch.ch (Christian Helbling) Date: Thu, 20 Feb 2020 15:42:10 +0000 Subject: [qutebrowser] bind chained commands with arguments for each command ? In-Reply-To: <158221049077.2427.13843157232618052893@jerome> References: <158221049077.2427.13843157232618052893@jerome> Message-ID: On 2020-02-20 15:54, Jerome wrote: > If I want to bind key with some chained commands with arguments for each of them. > For instance : save session with name argument, then load a session with session name argument and then open a new tab with a google search with the query argument. > > I expect to hit the binded key , and the (3) arguments (for instance) separated by space/coma or whatever. > > Any way to do it ? > I read about the set-cmd-text --space , but I guess it can not work for several command. > > Do I have to make (python) userscript and parse the (3) command line arguments, or can it be done with "normal" conf file ? > > Regards, > J?r?me. Hi J?r?me You can chain commands with ';;' in the config. Example: config.bind('gm', 'fake-key ;; spawn mpv --fullscreen {url}', mode='normal') Hope this answers your question. Cheers Christian From javierayres at gmail.com Sun Feb 23 21:53:19 2020 From: javierayres at gmail.com (Javier Ayres) Date: Sun, 23 Feb 2020 17:53:19 -0300 Subject: [qutebrowser] Accidentally enabled javascript for all URLs Message-ID: Hi everybody. I use qutebrowser with javascript disabled and I enable it on a per domain basis with "tSH". Lately I was noticing that some banners were appearing on my local newspaper's website, which I have never allowed to run javascript, and decided to check my autoconfig.yml to discover this line under content.javascript.enabled: '*://*/*': true. Is it possible that hitting "tSH" at the wrong time can add this allow-everything line to content.javascript.enabled? From me at the-compiler.org Mon Feb 24 08:51:40 2020 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 24 Feb 2020 08:51:40 +0100 Subject: [qutebrowser] Accidentally enabled javascript for all URLs In-Reply-To: References: Message-ID: <20200224075140.t7blzdghgr57uay7@hooch.localdomain> Hey Javier, On Sun, Feb 23, 2020 at 05:53:19PM -0300, Javier Ayres wrote: > Hi everybody. > > I use qutebrowser with javascript disabled and I enable it on a per > domain basis with "tSH". Lately I was noticing that some banners were > appearing on my local newspaper's website, which I have never allowed > to run javascript, and decided to check my autoconfig.yml to discover > this line under content.javascript.enabled: '*://*/*': true. > > Is it possible that hitting "tSH" at the wrong time can add this > allow-everything line to content.javascript.enabled? That's weird. tSH is bound to a config-cycle with *://*.{url:host}/* as pattern, so I don't think this is possible. Similarly, tSh is using a *://{url:host}/* pattern - so for that to happen, {url:host} would need to be *, which can't happen (qutebrowser would complain that the current URL is invalid). I also can't think of any other way (other than a literal ":set -u *://*/* content.javascript.enabled true") how this could have happened. With a :set without -u, it would land under "global:", not such a URL pattern. tl;dr: No idea either, sorry! Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From me at the-compiler.org Mon Feb 24 09:07:16 2020 From: me at the-compiler.org (Florian Bruhin) Date: Mon, 24 Feb 2020 09:07:16 +0100 Subject: [qutebrowser] bind chained commands with arguments for each command ? In-Reply-To: References: <158221049077.2427.13843157232618052893@jerome> Message-ID: <20200224080716.vf7lyjd2i3l4x3lk@hooch.localdomain> On Thu, Feb 20, 2020 at 03:42:10PM +0000, Christian Helbling wrote: > On 2020-02-20 15:54, Jerome wrote: > > If I want to bind key with some chained commands with arguments for each of them. > > For instance : save session with name argument, then load a session with session name argument and then open a new tab with a google search with the query argument. > > > > I expect to hit the binded key , and the (3) arguments (for instance) separated by space/coma or whatever. > > > > Any way to do it ? > > I read about the set-cmd-text --space , but I guess it can not work for several command. > > > > Do I have to make (python) userscript and parse the (3) command line arguments, or can it be done with "normal" conf file ? > > > > Regards, > > J?r?me. > > Hi J?r?me > > You can chain commands with ';;' in the config. > > Example: > config.bind('gm', 'fake-key ;; spawn mpv --fullscreen {url}', mode='normal') > > > Hope this answers your question. I think what J?r?me meant is something like an alias ":my-own-cmd one two" which then runs ":cmd1 one ;; cmd2 two". I answered on Reddit: https://www.reddit.com/r/qutebrowser/comments/f5hoes/bind_chained_commands_with_arguments_for_each/ Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From javierayres at gmail.com Wed Feb 26 14:47:23 2020 From: javierayres at gmail.com (Javier Ayres) Date: Wed, 26 Feb 2020 10:47:23 -0300 Subject: [qutebrowser] Accidentally enabled javascript for all URLs In-Reply-To: <20200224075140.t7blzdghgr57uay7@hooch.localdomain> References: <20200224075140.t7blzdghgr57uay7@hooch.localdomain> Message-ID: (Sorry, I'm repeating my reply because I forgot to include the list.) It's possible that the pattern I saw was '*://*./*' instead of '*://*/*', which I now tested and also works for enabling javascript for all sites. 2020-02-24 4:51 GMT-03:00, Florian Bruhin : > Hey Javier, > > On Sun, Feb 23, 2020 at 05:53:19PM -0300, Javier Ayres wrote: >> Hi everybody. >> >> I use qutebrowser with javascript disabled and I enable it on a per >> domain basis with "tSH". Lately I was noticing that some banners were >> appearing on my local newspaper's website, which I have never allowed >> to run javascript, and decided to check my autoconfig.yml to discover >> this line under content.javascript.enabled: '*://*/*': true. >> >> Is it possible that hitting "tSH" at the wrong time can add this >> allow-everything line to content.javascript.enabled? > > That's weird. tSH is bound to a config-cycle with *://*.{url:host}/* as > pattern, so I don't think this is possible. > > Similarly, tSh is using a *://{url:host}/* pattern - so for that to happen, > {url:host} would need to be *, which can't happen (qutebrowser would > complain > that the current URL is invalid). > > I also can't think of any other way (other than a literal > ":set -u *://*/* content.javascript.enabled true") how this could have > happened. With a :set without -u, it would land under "global:", not such a > URL > pattern. > > tl;dr: No idea either, sorry! > > Florian > > -- > me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org > https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ > GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc > I love long mails! | https://email.is-not-s.ms/ > From qutebrowser at cristoferfb.com Thu Feb 27 06:37:37 2020 From: qutebrowser at cristoferfb.com (qutebrowser at cristoferfb.com) Date: Thu, 27 Feb 2020 05:37:37 +0000 (UTC) Subject: [qutebrowser] Is anyone working in issue #5227? References: <840830044.838300.1582781857124.ref@mail.yahoo.com> Message-ID: <840830044.838300.1582781857124@mail.yahoo.com> Hi, I want to contribute with the issue #5227 (Make fullscreennotification overlay timeout configurable). -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Fri Feb 28 18:29:16 2020 From: me at the-compiler.org (Florian Bruhin) Date: Fri, 28 Feb 2020 18:29:16 +0100 Subject: [qutebrowser] Is anyone working in issue #5227? In-Reply-To: <840830044.838300.1582781857124@mail.yahoo.com> References: <840830044.838300.1582781857124.ref@mail.yahoo.com> <840830044.838300.1582781857124@mail.yahoo.com> Message-ID: <20200228172916.r7y4vthh4qt2f6ya@hooch.localdomain> Hey, On Thu, Feb 27, 2020 at 05:37:37AM +0000, qutebrowser at cristoferfb.com wrote: > Hi, I want to contribute with the issue #5227 (Make fullscreennotification > overlay timeout configurable). I'm not aware of anyone working on it. The best way to find out would probably be a comment on the GitHub issues, as not everyone reads this mailinglist. Florian -- me at the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: