Show HN: Backtick – A console for bookmarklets and scripts
backtick.io
backtick.io
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.
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.
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.
Have you updated to the latest version of Chrome? I have never run into the problem you're describing.
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.
I might try making this a reality. It'd be incredibly useful.
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.
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.
Windows; Chrome 30.0.1599.101
If you're using Vimium, add "unmap `" to the custom key mappings in the advanced options.
Is there a repository of bookmarklets that this could hook into?