News for hackers. Stuff that matters.
Re:Firefox 29 by k2enemy on Tuesday April 29, 2014 @12:54PM (#7668255)
> There isn't a feature in Chromium or Google Chrome that Firefox doesn't deliver.

Applescript support. This prevents me from using Firefox.

Re:Firefox 29 by mblakele on Tuesday April 29, 2014 @01:02PM (#7668315)
That sounds interesting. What sort of things do you do with AppleScript and the browser?
Re:Firefox 29 by k2enemy on Tuesday April 29, 2014 @03:28PM (#7669390)
Nothing too crazy. I have a keyboard shortcut that grabs the URL from chrome, then passes it off to a script that interfaces with pass [0] to have a rudimentary, but secure and cross platform password manager.

[0]: http://www.zx2c4.com/projects/password-store/

Re:Firefox 29 by 3rd3 on Tuesday April 29, 2014 @06:15PM (#7670279)
Try this:

    tell application "Firefox"
       activate
               
       set pb to the clipboard
               
       tell application "System Events"
           keystroke "l" using command down
           keystroke "c" using command down
       end tell
               
       set page_url to the clipboard

       set the clipboard to pb
    end tell
It’s kind of hacked together and I haven’t tested it with rigor but until now it did its job. If you use it, please let me know if you could enhance it or whether it breaks for certain pasteboard contents.
Re:Firefox 29 by k2enemy on Thursday May 01, 2014 @12:12PM (#7680645)
Thanks, that worked well. I needed to add a pause between cmd-l and cmd-c though.
Re:Firefox 29 by shabble on Tuesday April 29, 2014 @09:28PM (#7671049)
I'm using mozrepl[1] which exposes all sorts of FF guts over a simple localhost telnet connection to automate stuff that might otherwise be applescripted.

It's a bit of a hassle, but for simple things like 'get url of current tab', 'open new tab', 'switch to tab x', etc, it's reasonably simple and can be scripted.

[1] https://addons.mozilla.org/en-US/firefox/addon/mozrepl/