Google digits

Press 1-9 on Google search page to open the corresponding link

< Rückmeldungen auf Google digits

Rezension: Gut - Skript funktioniert

§
Veröffentlicht: 01.03.2021

How does this script open in a new tab with 🔢hotkey ? Just like target="_blank"

// location.href = link.href; line 36 change to 👇

window.open(link.href);

Is this the correct change? (Not familiar with JavaScript)

woxxomVerfasser
§
Veröffentlicht: 01.03.2021
Bearbeitet: 01.03.2021

Version 1.2.0 adds these:

  • Press Alt + 1...9 to open a new tab.
  • Press Shift + 1...9 to open a new window.

Alt/Shift works only in Chrome.

§
Veröffentlicht: 01.03.2021
Bearbeitet: 01.03.2021

Version 1.2.0 adds these:
Press Alt + 1...9 to open a new tab.
Alt/Shift works only in Chrome.

That increases the complexity of the operation, and it is not as good as a mouse click.

I still use version 1.1.4, and use window.open(link.href);

because I like new tab opening, ^_^

woxxomVerfasser
§
Veröffentlicht: 01.03.2021

I guess you have arthritis or some other condition. Normally there's no problem in pressing Shift or Alt, it comes as natural to me as breathing.

woxxomVerfasser
§
Veröffentlicht: 01.03.2021

Ah, you probably want to use the numeric keyboard... Well, in that case indeed my solution is not convenient.

§
Veröffentlicht: 01.03.2021

Ah, you probably want to use the numeric keyboard...

Yes!

woxxomVerfasser
§
Veröffentlicht: 01.03.2021

1.2.1 adds the numpad keys.

§
Veröffentlicht: 01.03.2021

1.2.1 adds the numpad keys.

Sorry, I got it wrong, no numpad keys , My expected behavior is :

  • 1) only use 🔢1-5 to open,

  • 2) and 🔢 will open it in a new tab.

There are only these 2 requirements.

§
Veröffentlicht: 01.03.2021

1.2.1 adds the numpad keys.

Sorry, I got it wrong, no numpad keys , My expected behavior is :

1) only use 🔢1-5 to open,
2) and 🔢 will open it in a new tab.

There are only these 2 requirements.

The inverse means:

  • Press 1...9 to open a new tab.

  • Press Alt + 1...9 to open current tab.

  • Press Shift + 1...9 to open a new window.

woxxomVerfasser
§
Veröffentlicht: 01.03.2021

Well, I won't be doing it in this script so you can modify it for yourself.

§
Veröffentlicht: 01.03.2021

OK, thank you very much for writing this script, and finally I want to ask you : Is this the correct change of open a new tab?

version 1.1.4

// location.href = link.href; line 36 change to 👇

window.open(link.href);

woxxomVerfasser
§
Veröffentlicht: 01.03.2021

If it works for you then it's okay.

§
Veröffentlicht: 01.03.2021

If it works for you then it's okay.

it can works, Thank you very much!!

Antwort schreiben

Anmelden um eine Antwort zu senden.