philc / vimium

The hacker's browser.
https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
MIT License
23.05k stars 2.48k forks source link

Flipping F and f not Working on Google search results #3628

Open Zackhardtoname opened 4 years ago

Zackhardtoname commented 4 years ago

Describe the bug

map F LinkHints.activateModeToOpenInNewForegroundTab 
map f LinkHints.activateMode

It works on many sites to flip F and f, but not on Google search results

To Reproduce Steps to reproduce the behavior:

  1. Apply the settings above
  2. Go to google.com, and search for something
  3. press "F," and then the "hint key" for any website

Expected Open in the current tab

Actual Open in a new tab

gdh1995 commented 4 years ago

The modes of LinkHints just means Vimium will provide such suggestions to web pages, and a page can apply its rules to decide whether to open in a new tab or not.

Zackhardtoname commented 4 years ago

Is there a way to force it? If so, are there reasons not to?

gdh1995 commented 4 years ago

No, because a page can always call preventDefault on Vimium's simulated events, and then open its wanted URL in a tab using JavaScript