From exo660 at gmail.com Wed Nov 2 05:37:28 2016 From: exo660 at gmail.com (william tonks) Date: Tue, 1 Nov 2016 21:37:28 -0700 Subject: [qutebrowser] wordfilter userscript with sed: local file fails to load. Message-ID: #!/bin/bash curl -o /home/william/qutetemp/oldfile ${QUTE_URL} sed 's:bash:fish:g' /home/william/qutetemp/oldfile > /home/william/qutetemp/newfile echo "open file://home/william/qutetemp/newfile" >> "$QUTE_FIFO" i'm trying to download the current page, filter words, and then open the edited page in the current tab. where it fails is on the third step, this is the error message: Unable to load pageError while opening file://home/william/qutetemp/newfile: Request for opening non-local file file://home/william/qutetemp/newfile but i don't understand why it says it's a non local file; it's definitely on my drive. could it be the "file://"? but when i run it as "/home/william/qutetemp/newfile" it tries to download the file. so it seems to succeed on the first step but sed may be making an unreadable file. or perhaps line 7 is somehow wrong. and when/if this works how do i run it? i intend to have it run on every page load but i'm not sure how to accomplish that. -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Wed Nov 2 08:34:51 2016 From: me at the-compiler.org (Florian Bruhin) Date: Wed, 2 Nov 2016 08:34:51 +0100 Subject: [qutebrowser] wordfilter userscript with sed: local file fails to load. In-Reply-To: References: Message-ID: <20161102073450.jgazqzsx7nb5fjp2@tonks> * william tonks [2016-11-01 21:37:28 -0700]: > i'm trying to download the current page, filter words, and then open the > edited page in the current tab. > where it fails is on the third step, this is the error message: > > Unable to load pageError while opening > file://home/william/qutetemp/newfile: > > Request for opening non-local file file://home/william/qutetemp/newfile > > > but i don't understand why it says it's a non local file; it's definitely > on my drive. could it be the "file://"? I don't understand the error either (it's coming from QtWebKit) :D Try doing file:///home/... though, otherwise I think that'd be a relative path. > but when i run it as "/home/william/qutetemp/newfile" it tries to download > the file. Try adding a .html extension - unfortunately QtWebKit doesn't do content sniffing. > and when/if this works how do i run it? i intend to have it run on every > page load but i'm not sure how to accomplish that. That's not possible yet. It might be with autocmds once I get to reviving this PR (which was deferred until after the QtWebEngine stuff is done): https://github.com/The-Compiler/qutebrowser/pull/1155 However, I don't think userscripts are the right fit for this, you'll likely run into more issues. Once autocmds are in, you could run some javascript via :jseval which does the replacements you want, or you wait for the plugin API and write a plugin doing that. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From exo660 at gmail.com Wed Nov 2 10:41:19 2016 From: exo660 at gmail.com (william tonks) Date: Wed, 2 Nov 2016 02:41:19 -0700 Subject: [qutebrowser] wordfilter userscript with sed: local file fails to load. In-Reply-To: <20161102073450.jgazqzsx7nb5fjp2@tonks> References: <20161102073450.jgazqzsx7nb5fjp2@tonks> Message-ID: with your help i got a page to load, thank you, but it's mostly just a white screen and thus unusable. you might be right that this method won't work. but do you have any idea how to keep it html parsable, so it produces the same page -- minus the edits? On Wed, Nov 2, 2016 at 12:34 AM, Florian Bruhin wrote: > * william tonks [2016-11-01 21:37:28 -0700]: > > i'm trying to download the current page, filter words, and then open the > > edited page in the current tab. > > where it fails is on the third step, this is the error message: > > > > Unable to load pageError while opening > > file://home/william/qutetemp/newfile: > > > > Request for opening non-local file file://home/william/qutetemp/newfile > > > > > > but i don't understand why it says it's a non local file; it's definitely > > on my drive. could it be the "file://"? > > I don't understand the error either (it's coming from QtWebKit) :D > > Try doing file:///home/... though, otherwise I think that'd be a > relative path. > > > but when i run it as "/home/william/qutetemp/newfile" it tries to > download > > the file. > > Try adding a .html extension - unfortunately QtWebKit doesn't do > content sniffing. > > > and when/if this works how do i run it? i intend to have it run on every > > page load but i'm not sure how to accomplish that. > > That's not possible yet. It might be with autocmds once I get to > reviving this PR (which was deferred until after the QtWebEngine stuff > is done): https://github.com/The-Compiler/qutebrowser/pull/1155 > > However, I don't think userscripts are the right fit for this, you'll > likely run into more issues. > > Once autocmds are in, you could run some javascript via :jseval which > does the replacements you want, or you wait for the plugin API and > write a plugin doing that. > > Florian > > -- > http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) > GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc > I love long mails! | http://email.is-not-s.ms/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Wed Nov 2 11:49:13 2016 From: me at the-compiler.org (Florian Bruhin) Date: Wed, 2 Nov 2016 11:49:13 +0100 Subject: [qutebrowser] wordfilter userscript with sed: local file fails to load. In-Reply-To: References: <20161102073450.jgazqzsx7nb5fjp2@tonks> Message-ID: <20161102104913.bbdrf4l4apxpclsa@tonks> * william tonks [2016-11-02 02:41:19 -0700]: > with your help i got a page to load, thank you, but it's mostly just a > white screen and thus unusable. you might be right that this method won't > work. but do you have any idea how to keep it html parsable, so it produces > the same page -- minus the edits? You'd need to download the page with all resources, like ":download --mhtml" in qutebrowser. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From exo660 at gmail.com Sat Nov 5 06:59:57 2016 From: exo660 at gmail.com (william tonks) Date: Fri, 4 Nov 2016 22:59:57 -0700 Subject: [qutebrowser] wordfilter userscript with sed: local file fails to load. In-Reply-To: <20161102104913.bbdrf4l4apxpclsa@tonks> References: <20161102073450.jgazqzsx7nb5fjp2@tonks> <20161102104913.bbdrf4l4apxpclsa@tonks> Message-ID: > You'd need to download the page with all resources, like > ":download --mhtml" in qutebrowser. does this replace curl? On Wed, Nov 2, 2016 at 3:49 AM, Florian Bruhin wrote: > * william tonks [2016-11-02 02:41:19 -0700]: > > with your help i got a page to load, thank you, but it's mostly just a > > white screen and thus unusable. you might be right that this method won't > > work. but do you have any idea how to keep it html parsable, so it > produces > > the same page -- minus the edits? > > You'd need to download the page with all resources, like > ":download --mhtml" in qutebrowser. > > Florian > > -- > http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) > GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc > I love long mails! | http://email.is-not-s.ms/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Sat Nov 5 23:45:18 2016 From: me at the-compiler.org (Florian Bruhin) Date: Sat, 5 Nov 2016 23:45:18 +0100 Subject: [qutebrowser] qutebrowser v0.8.3 released! Message-ID: <20161105224518.6d3hrxbnftlyzzyu@tonks> Hi, I just released qutebrowser v0.8.3 with a handful of bugfixes: - Fixed crash when doing `:`, another corner-case introduced in v0.8.0 - Fixed `:open-editor` (``) on Windows - Fixed crash when setting `general -> auto-save-interval` to a too big value. - Fixed crash when using hints on Void Linux. - Fixed compatibility with Python 3.5.2+ on Debian unstable - Compatibility with pdfjs v1.6.210 - `:bind` can now be used to bind to an alias (binding by editing `keys.conf` already worked before) - The command completion now updates correctly when changing aliases - The tabbar now displays correctly with the Adwaita Qt theme - The default `sk` keybinding now sets the commandline to `:bind` correctly - Fixed crash when closing a window without focusing it This is a bugfix-only release, but hopefully a bigger one with a lot of changes will follow somewhen in the next few weeks. As usual, the source/Linux release is available, while Windows was "Working on updates..." and OS X is rebuilding Qt because it was broken somehow - so those will follow later. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From me at the-compiler.org Sun Nov 6 01:01:15 2016 From: me at the-compiler.org (Florian Bruhin) Date: Sun, 6 Nov 2016 01:01:15 +0100 Subject: [qutebrowser] qutebrowser v0.8.4 released! In-Reply-To: <20161105224518.6d3hrxbnftlyzzyu@tonks> References: <20161105224518.6d3hrxbnftlyzzyu@tonks> Message-ID: <20161106000115.picuj64pcn6woukk@tonks> Hi, * Florian Bruhin [2016-11-05 23:45:18 +0100]: > I just released qutebrowser v0.8.3 with a handful of bugfixes: Unfortunately a fix in v0.8.3 broke compatibility with Python 3.4 which was fixed on master but not backported to the v0.8.x branch. Since I'm running Python 3.5, I didn't catch that in time - so I just released v0.8.4 to fix that. The source release is up, Windows packages are too, OS X and Debian packages will probably need another day or two. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From me at the-compiler.org Sun Nov 6 22:22:35 2016 From: me at the-compiler.org (Florian Bruhin) Date: Sun, 6 Nov 2016 22:22:35 +0100 Subject: [qutebrowser] wordfilter userscript with sed: local file fails to load. In-Reply-To: References: <20161102073450.jgazqzsx7nb5fjp2@tonks> <20161102104913.bbdrf4l4apxpclsa@tonks> Message-ID: <20161106212235.hy47dxivauttpfth@tonks> * william tonks [2016-11-04 22:59:57 -0700]: > > You'd need to download the page with all resources, like > > ":download --mhtml" in qutebrowser. > > does this replace curl? In your example, yes - but I'm still skeptical this will work out ;) Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From me at the-compiler.org Tue Nov 22 22:10:00 2016 From: me at the-compiler.org (Florian Bruhin) Date: Tue, 22 Nov 2016 22:10:00 +0100 Subject: [qutebrowser] qutebrowser v0.8.4 released! In-Reply-To: <20161106000115.picuj64pcn6woukk@tonks> References: <20161105224518.6d3hrxbnftlyzzyu@tonks> <20161106000115.picuj64pcn6woukk@tonks> Message-ID: <20161122211000.qecb5drwqzfrivz7@tonks> Hey, it took a bit longer than expected, but the OS X .dmg as well as the .deb are now online for v0.8.4 too. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: From me at the-compiler.org Wed Nov 23 08:22:57 2016 From: me at the-compiler.org (Florian Bruhin) Date: Wed, 23 Nov 2016 08:22:57 +0100 Subject: [qutebrowser] Security issue with QtWebEngine web inspector Message-ID: <20161123072257.akcz4ovzws4ip4bo@tonks> Hi, if you're using qutebrowser from git with --backend webengine and have general -> developer-extras enabled, the inspector runs on a port bound to localhost (which is the only way to access it currently). However, this is not as unproblematic as it might seem, and might actually allow any website to access the inspector (and thus control other websites): http://bouk.co/blog/hacking-developers/ Until there's a better solution in QtWebEngine, I'd recommend not enabling the web inspector when navigating to untrusted websites. The newest git commit now disables the web inspector (even with developer-extras enabled) and requires a --enable-webengine-inspector commandline switch to enable it. If you can't update for some reason, disabling developer-extras and restarting qutebrowser will have the same effect. If you aren't using --backend webengine, or aren't using qutebrowser from git, or have developer-extras disabled, this does not affect you in any way. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: