<div dir="ltr">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?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 2, 2016 at 12:34 AM, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* william tonks <<a href="mailto:exo660@gmail.com">exo660@gmail.com</a>> [2016-11-01 21:37:28 -0700]:<br>
<span class="">> i'm trying to download the current page, filter words, and then open the<br>
> edited page in the current tab.<br>
> where it fails is on the third step, this is the error message:<br>
><br>
</span>> Unable to load pageError while opening<br>
<span class="">> file://home/william/qutetemp/<wbr>newfile:<br>
><br>
> Request for opening non-local file file://home/william/qutetemp/<wbr>newfile<br>
><br>
><br>
> but i don't understand why it says it's a non local file; it's definitely<br>
> on my drive. could it be the "file://"?<br>
<br>
</span>I don't understand the error either (it's coming from QtWebKit) :D<br>
<br>
Try doing file:///home/... though, otherwise I think that'd be a<br>
relative path.<br>
<span class=""><br>
> but when i run it as "/home/william/qutetemp/<wbr>newfile" it tries to download<br>
> the file.<br>
<br>
</span>Try adding a .html extension - unfortunately QtWebKit doesn't do<br>
content sniffing.<br>
<span class=""><br>
> and when/if this works how do i run it? i intend to have it run on every<br>
> page load but i'm not sure how to accomplish that.<br>
<br>
</span>That's not possible yet. It might be with autocmds once I get to<br>
reviving this PR (which was deferred until after the QtWebEngine stuff<br>
is done): <a href="https://github.com/The-Compiler/qutebrowser/pull/1155" rel="noreferrer" target="_blank">https://github.com/The-<wbr>Compiler/qutebrowser/pull/1155</a><br>
<br>
However, I don't think userscripts are the right fit for this, you'll<br>
likely run into more issues.<br>
<br>
Once autocmds are in, you could run some javascript via :jseval which<br>
does the replacements you want, or you wait for the plugin API and<br>
write a plugin doing that.<br>
<span class="HOEnZb"><font color="#888888"><br>
Florian<br>
<br>
--<br>
<a href="http://www.the-compiler.org" rel="noreferrer" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
   GPG: 916E B0C8 FD55 A072 | <a href="http://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">http://the-compiler.org/<wbr>pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" rel="noreferrer" target="_blank">http://email.is-not-s.ms/</a><br>
</font></span></blockquote></div><br></div>