Bosh
Bosh

Reputation: 8738

Running bookmarklet from a keyboard shortcut in Opera

The Opera web browser makes it very easy for users to tie keyboard shortcuts to bookmarks by editing the keyboard.ini file, e.g.

F1 = http://google.com/

will allow a single keystroke F1 to Google.

I'd like to similarly tie a keyboard shortcut to a bookmarklet --- but the following doesn't work:

F1 = javascript:alert('Hello, World!')

Does anyone know how to achieve this, either using keyboard.ini or through some other means?

(The ultimate goal here is to build a TV-based browser that my grandparents can use. This means a set of labelled hotkeys on the keyboard that instantly visit sites they like or perform other useful functions. I'd like the whole package to be contained within Opera.)

Upvotes: 3

Views: 1294

Answers (2)

user815693
user815693

Reputation: 516

for chrome: right click on search bar -> edit search engines -> add new engine -> three fields 1. name of the engine 2. d 3. javascript: alert("hellow");

final step press Ctr-L + d + Enter Your bookmark in this case bookmarklet is opened

Upvotes: 0

hallvors
hallvors

Reputation: 6229

What about

F1 = Go to page, "javascript:alert('Hello world')"

Would that work?

Upvotes: 2

Related Questions