Backspace History

Makes backspace go back instead of modifying the search

目前為 2015-12-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Backspace History
// @namespace   https://www.google.com
// @description Makes backspace go back instead of modifying the search
// @include     https://www.google.com/*
// @version     1.1
// @grant       none
// @locale      en
// ==/UserScript==

$(function() {
  $(document).on('keydown', function(e) {
    console.log(e.which);
    if (e.which === 8) {
      window.history.back();
      return false;
    }
  })
});