Clickable domain in Google search results

Ever wanted to get at the main page of the sought-for website right from the Google search results? Now you can

< Commentaires sur Clickable domain in Google search results

Question / commentaire

KonfAuteur
§
Posté le: 2023-03-09

It's broken right now because of the google search update, I will look into it a bit later. Maybe

KonfAuteur
§
Posté le: 2023-03-10

I've decided to not to fix it. The feature is not worth the time that need to be spend to do that

Alternatives:

  • Alt+select a domain part of a link → RMB → Open in new tab
  • Open the website → select the domain part from the search bar → drag it to the top of the tab or the https lock icon
  • Only Chromium based browsers:
// ==UserScript==
// @name          Go to domain
// @description   RMB any link and go to domain using context menu
// @version       1
// @match         http://*/*
// @match         https://*/*
// @run-at        context-menu
// @grant         none
// ==/UserScript==

(function() {
  if (
    document.activeElement &&
    document.activeElement.nodeName === 'A' &&
    document.activeElement.origin
  ) {
    window.open(document.activeElement.origin, '_blank');
  }
})();

Poster une réponse

Connectez-vous pour poster une réponse.