Skip to content

Instantly share code, notes, and snippets.

@lavie
Last active July 1, 2016 05:58
Show Gist options
  • Save lavie/a7390b54d55507419e73fb12b10c2e83 to your computer and use it in GitHub Desktop.
Save lavie/a7390b54d55507419e73fb12b10c2e83 to your computer and use it in GitHub Desktop.
Adds prefix to google search result links, so they're easier to hit with Vimium
// ==UserScript==
// @name Google Search Result Markers
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds prefix to Google search result links, to make it easier to hit them with Vimium
// @author Assaf Lavie
// @match https://*.google.co.il/*
// @match https://*.google.com/*
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
jQuery(".r a").text(function(i, t) { return "ff" + String.fromCharCode(65 + i) + " " + t; });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment