News for hackers. Stuff that matters.
Re:Show HN: Backtick – A console for bookmarklets and scripts by lox on Monday November 04, 2013 @08:13PM (#6672476)
I tried creating an "Add to Pinboard" backtick command:

https://gist.github.com/lox/7312183

The script works fine in Chrome's console, but fails as a backtick script.

Aside from that, icons served from http show mixed content warnings on https pages. Would be good to require icons are either data uris or https.

Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @08:52PM (#6672672)
Ah, thanks for reporting. It seems that having comments in a command messes up the execution, that's obviously something I'm going to fix ASAP. For now, just remove the comments and it should work.

You're right about the mixed content thing, I should make sure to use HTTPS urls on all icons. Data URIs would be convenient, but it would make the amount of data that is fetched on first run (to get all default commands) unnecessarily big.

Re:Show HN: Backtick – A console for bookmarklets and scripts by MrOrelliOReilly on Tuesday November 05, 2013 @03:05AM (#6673849)
I seriously love this and am already making some commands for personal use :)

However is there currently a way to pass parameters to a command? Right now I'm using window.prompt() to get user input. It'd be nice if I could enter something like 'mycommand:parameter1,parameter2'. Maybe an excuse to fork the repo...

Great work though!

EDIT I had only been using the extension on backtick.io before, but when I use it on other pages the console does not appear. This appears to be a problem with the CSS - when I inspect element on the page I can see that the HTML has rendered. By default opacity is set to 0 on the #console div - setting it to 1 fixes the problem.

Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Tuesday November 05, 2013 @03:54AM (#6674010)
Adding parameters to commands is something I've got planned for a future release, just need to figure out an elegant way to do that.

Have you updated to the latest version of Chrome? I have never run into the problem you're describing.

Re:Show HN: Backtick – A console for bookmarklets and scripts by crashandburn4 on Tuesday November 05, 2013 @05:34AM (#6674342)
I'm having a similar problem, except when I'm pressing backtick nothing happens at all, the __backtick__ div stays empty. similarly, it works fine on the backtick website Chrome 29.0.1547.57 on arch linux.

EDIT: in the interests of clarity, pressing the backtick the first time injects an empty __backtick__ div into the page nothing further happens.

EDIT: Fixed with update to latest chrome. Thanks for the extension, seems great.

Re:Show HN: Backtick – A console for bookmarklets and scripts by MrOrelliOReilly on Saturday November 09, 2013 @01:29AM (#6700889)
Updating to the latest version of chrome fixed this for me as well! Obviously should have been the first thing I tried
Re:Show HN: Backtick – A console for bookmarklets and scripts by ps4fanboy on Monday November 04, 2013 @06:19PM (#6671889)
I thought this was for bookmark searching, that would have been far more useful.
Re:Show HN: Backtick – A console for bookmarklets and scripts by shijie on Monday November 04, 2013 @07:08PM (#6672117)
I was hoping the same. I was nearly giddy with excitement, then I tried searching... no dice... re-read the description... ah.

I might try making this a reality. It'd be incredibly useful.

Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @07:12PM (#6672139)
I'm sorry to let you down, but what you're describing is not what I have visioned for this. But hey, if you're going to create this on your own, the source code for Backtick is available on GitHub (https://github.com/JoelBesada/Backtick) if there's anything you need to know!
Re:Show HN: Backtick – A console for bookmarklets and scripts by ps4fanboy on Tuesday November 05, 2013 @05:07PM (#6678760)
Free software is never a let down.
Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @07:14PM (#6672150)
Oh by the way, as mentioned in another comment, Vimium comes with a tool that probably is exactly what you're looking for. Just press 'b' to search through your bookmarks.
Re:Show HN: Backtick – A console for bookmarklets and scripts by xbryanx on Monday November 04, 2013 @06:16PM (#6671877)
This is a nice idea and the design is elegant. However, I already use Vimium's "b" key command for this, and it comes with so many other features too.
Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @07:21PM (#6672181)
Thanks! Vimium's "b" hotkey is not exactly the same though.

Backtick comes with a bunch of bookmarklets already available without you having to save them to your browser first. I'll also keep adding more commands to it as I get suggestions and find more to add.

The point is, Backtick allows you to discover new bookmarklets just by searching in the console while Vimium only has those that you've added yourself.

Re:Show HN: Backtick – A console for bookmarklets and scripts by Walkman on Monday November 04, 2013 @08:04PM (#6672415)
Please add pineapple bookmarklet: http://pineapple.io/discussion/bookmarklet-released
Re:Show HN: Backtick – A console for bookmarklets and scripts by k3n on Monday November 04, 2013 @10:39PM (#6673088)
Compatibility and UX qualms aside, this is a really fun little project.

It'd be fun to bake something like this into your app even, which I'm sure you've considered, but it'd make a nice little poweruser/admin tool, especially for those who prefer keyboard over mouse. For instance, I'm picturing Github with their command-bar backing it.

Re:Show HN: Backtick – A console for bookmarklets and scripts by crashandburn4 on Tuesday November 05, 2013 @06:07AM (#6674443)
Really like this, I think something that would be really helpful would be a repository website where you can collect any of these commands similar to will bonds package control. Automatic downloading doesn't have to be configured to start with, simply a central searchable place for people to share and find backtick commands. Thanks again.
Re:Show HN: Backtick – A console for bookmarklets and scripts by m-app on Tuesday November 05, 2013 @08:29AM (#6674888)
Cool! Created a Pocket command from the bookmarklet, went really smooth:

https://gist.github.com/michielappelman/7319013

Re:Show HN: Backtick – A console for bookmarklets and scripts by Flenser on Tuesday November 05, 2013 @08:56AM (#6675025)
I use GleeBox to execute the hundreds of bookmarklets I've found and created over the years.

http://thegleebox.com/

Re:Show HN: Backtick – A console for bookmarklets and scripts by jimmcslim on Monday November 04, 2013 @08:11PM (#6672458)
I'm finding that it swallows the first keystroke after `. So `fontBomb results in ontBomb appearing in the popup.

Windows; Chrome 30.0.1599.101

Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @08:20PM (#6672506)
Are you using Vimium, or some other extension that listens for the ` key? If so, you should be able to fix that problem by either rebinding the Backtick hotkey to something else in the settings, or by unbinding the ` key from the given extension.

If you're using Vimium, add "unmap `" to the custom key mappings in the advanced options.

Re:Show HN: Backtick – A console for bookmarklets and scripts by lightyrs on Monday November 04, 2013 @09:38PM (#6672864)
This is phenomenal but I feel a lot of people are not understanding its purpose. Perhaps you could better explain what it's really for.
Re:Show HN: Backtick – A console for bookmarklets and scripts by splatzone on Monday November 04, 2013 @07:22PM (#6672190)
Fantastic. I would never have thought of that. Great execution.

Is there a repository of bookmarklets that this could hook into?

Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @07:35PM (#6672262)
The ones you see on the demo page is what comes with Backtick out of the box. I'm constantly adding more bookmarklets to the default list, just tweet at me at @JoelBesada if you want to suggest anything to be added.
Re:Show HN: Backtick – A console for bookmarklets and scripts by wesley on Tuesday November 05, 2013 @04:01AM (#6674035)
Any chance of this coming to Safari too?
Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Tuesday November 05, 2013 @04:03AM (#6674043)
Since my time is limited, I try to keep the scope of the project down to something I can handle. This means I'm currently only focusing on Chrome, but if anyone wants to port the extension to other browsers, the source code is available on GitHub for them to fork.
Re:Show HN: Backtick – A console for bookmarklets and scripts by sushi on Monday November 04, 2013 @07:06PM (#6672114)
This is awesome. Quite possibly one of the best solutions I have seen so far to manage bookmarklets.
Re:Show HN: Backtick – A console for bookmarklets and scripts by krrishd on Monday November 04, 2013 @10:48PM (#6673116)
for some reason,the only site that backtick is working for me on is the backtick site itself.
Re:Show HN: Backtick – A console for bookmarklets and scripts by abimaelmartell on Monday November 04, 2013 @06:31PM (#6671955)
not working on spanish iMac keyboard...
Re:Show HN: Backtick – A console for bookmarklets and scripts by JoelBesada on Monday November 04, 2013 @06:35PM (#6671974)
You can change the hotkey from the extension settings.
Re:Show HN: Backtick – A console for bookmarklets and scripts by elwell on Monday November 04, 2013 @10:34PM (#6673072)
upvote for fontBomb!