News for hackers. Stuff that matters.
Re:uBlock Origin for Microsoft Edge by BugsJustFindMe on Sunday December 11, 2016 @08:59PM (#13154950)
> Edge's extension ecosystem is a walled garden. When it comes to browsers, I prefer freedom over performance and efficiency. This is why I'm still not switching to Edge.

That's one reason, I guess. My reason for not using Edge is that Edge still, after all this time, can't save files from the internet. That's, like, the second thing that I expect a web browser to be able to do after looking at files from the internet.

( You can test this at home. Go to visit some arbitrary text file in Edge. Let's say https://raw.githubusercontent.com/Microsoft/vscode/master/LI... for example. Now save it. File menu? Nope. Ctrl+S? Nope. Right-click? Nope. )

Re:uBlock Origin for Microsoft Edge by efraim on Monday December 12, 2016 @03:05AM (#13156435)
Just right-click the link and choose save target as. Saying that it can't save files from the internet is a bit exaggerated.
Re:uBlock Origin for Microsoft Edge by BugsJustFindMe on Monday December 12, 2016 @04:35AM (#13156831)
Link? What link? Did I say there was a link? I just gave you a URL. I said to go visit it. Once you're there, figure out how to save it.

(props to morganvachon for figuring out that you can use OneNote, but omg)

Re:uBlock Origin for Microsoft Edge by croon on Monday December 12, 2016 @06:28AM (#13157303)
I can't remember for sure the usecase or which specific browser, but I remember sometime in the 90s (whatever IE W95 or 98 had? Possible Netscape?) having to create a barebone .html with just the href and opening that to have a link to right click.

I think it actually was specifically to save files, before content types, and saving binaries as raw text was unreliable at best.

I didn't expect the same to be true 20 years later.

Re:uBlock Origin for Microsoft Edge by vorticalbox on Monday December 12, 2016 @05:38AM (#13157121)
Just tried this on my phone (Lumia 950) I never even noticed this was an issue until now. I tend to not download files on my phone and my pc has Linux.

Only option is to highlight it and save it using another program.

Re:uBlock Origin for Microsoft Edge by efraim on Monday December 12, 2016 @06:02AM (#13157215)
There is a link right in your comment, right click it to download the text file. There is usually a link to whatever file you want to download.
Re:uBlock Origin for Microsoft Edge by BugsJustFindMe on Monday December 12, 2016 @08:12AM (#13157777)
> There is a link right in your comment, right click it to download the text file

Go to the file. Then try to save it. Don't argue with a scenario that I'm not talking about.

HN adds that link, but not all links come from HN. I know this is asking a lot, but, maybe, just for the sake of argument, try to pretend like you were given the URL somewhere else that doesn't automatically hyperlink and that I didn't just make this up. Hell, pretend that you got it on a piece of paper and actually had to type it in like a caveman. Now save it.

> There is usually a link to whatever file you want to download.

If I understand correctly, what you're saying is that in some cases you just cannot save the file, and that in all other cases you just cannot save the file while looking at the file without knowing that you need to go...somewhere nebulously else? That's what I said too. I'm glad we're on the same page now.

Re:uBlock Origin for Microsoft Edge by efraim on Monday December 12, 2016 @10:08AM (#13158522)
You're right, there is no point in arguing this. You gave an example of a file that was "impossible" to download with Edge and I told you how to do it. If you really need to type in the URL yourself, just type in into Notepad's open file dialog and save it from there.

It doesn't seem to be possible to download a file you already have open in Edge that you have no link to, but how often does that happen, really? I'm sure you can come up with lots of other scenarios that you can't do with Edge either, or Chrome.

Re:uBlock Origin for Microsoft Edge by BugsJustFindMe on Monday December 12, 2016 @12:25PM (#13159823)
> You gave an example of a file that was "impossible" to download with Edge and I told you how to do it.

You told how to download something referenced by a hyperlink within the browser, a problem that I did not say I had. We call that moving the goalposts. It's very frustrating and I wish you would stop.

> If you really need to type in the URL yourself, just type in into Notepad's open file dialog and save it from there.

I 100% agree that the solution to a web browser not being able to do the 2nd most important function of a web browser is to use a different program. Suggesting Notepad instead of a more capable browser seems a tad strange though.

> but how often does that happen, really?

Why bend so far backwards to try to poke holes in my problem? Are you responsible for the decision to disallow saving documents? If I don't use Edge does your favorite nephew lose a toe? If you want to use Edge that's fine. Knock yourself out. I won't, and I gave my reason why.

Re:uBlock Origin for Microsoft Edge by scholia on Monday December 12, 2016 @04:42PM (#13162180)
Lack of save in Edge seems especially bizarre in view of IE's past. There were years when I used copy URLs from another browser to IE just to save them in mhtml (before extensions provided that on other browsers).
Re:uBlock Origin for Microsoft Edge by morganvachon on Sunday December 11, 2016 @09:19PM (#13155025)
I know it's not what you're looking for, but there is built in functionality to save a raw text file directly from Edge. You can click the Make a Web Note button to save it to OneNote. This, of course, requires that you actually use OneNote, which is not ideal for everyone.
Re:uBlock Origin for Microsoft Edge by koolba on Sunday December 11, 2016 @09:59PM (#13155165)
I can't tell if your comment is serious or sarcastic.
Re:uBlock Origin for Microsoft Edge by morganvachon on Sunday December 11, 2016 @11:37PM (#13155579)
Well I did say it wasn't what he was looking for. :-)

In all seriousness, it is definitely a glaring omission in Edge. Though, I can see the OneNote integration being useful on a tablet.

Re:uBlock Origin for Microsoft Edge by ukyrgf on Monday December 12, 2016 @10:10AM (#13158542)
Edge's right-click menu is a joke. It has to be a joke, right? Every so often I'll decide get my feet wet in Edge, maybe login to a few websites, and then I hit right click and it's right back to Chrome/Firefox.
Re:uBlock Origin for Microsoft Edge by fetbaffe on Monday December 12, 2016 @03:31AM (#13156543)
I guess someone needs to write an extension for that.
Re:uBlock Origin for Microsoft Edge by BugsJustFindMe on Monday December 12, 2016 @06:57PM (#13163256)
So I just spent the past few hours learning how and then trying...

msSaveOrOpenBlob currently silently fails in Edge extension content scripts.

My first workaround of creating an invisible objectURL download link from the document body text (trying to not re-download the file) and then programatically clicking it only partially works, because Edge currently ignores the download attribute value on links so you can't set the default file name and you get a disgusting GUID as the default filename instead. This is sadly the best option so far.

My second workaround of re-transferring the file using the document URL directly, again with injecting a hidden automatically clicked <a> tag, also only partially works. This is in fact worse than the first workaround, because it doesn't even prompt to save or choose a file name. It just pops the file open in Notepad with the right file name but the wrong file extension, changing, for instance, "constants.js" to "constants.txt".

And now I'm tired of this exercise. Back to just not caring about Edge.

Re:uBlock Origin for Microsoft Edge by bartread on Monday December 12, 2016 @03:16PM (#13161506)
BOOM!!