gooverbatim

Puts a verbatim button on Google for when you want to tell it yes, you really meant what you typed.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name gooverbatim
// @namespace http://polpo.org/
// @description Puts a verbatim button on Google for when you want to tell it yes, you really meant what you typed.
// @include http://www.google.*/search*
// @include https://www.google.*/search*
// @include http://www.google.*/webhp*
// @include https://www.google.*/webhp*
// @include http://www.google.*/
// @include https://www.google.*/
// @include https://encrypted.google.*/search*
// @include https://encrypted.google.*/webhp*
// @include https://encrypted.google.*/
// @version 0.5
// ==/UserScript==
(function () {
  // Only enable for the "Everything" results page.
  var ms = document.getElementById('ms');
  if (ms) {
    var elms = ms.getElementsByTagName('li');
    if (elms[0].className.indexOf("msel") === -1) {
      return false;
    }
  }
  var btn = document.createElement('button');
  btn.setAttribute('style', 'height: 100%; background-color: #fff; border: 1px solid #999; margin-left: 10px');
  var btntxt = document.createTextNode('Yes,\u00a0really');
  btn.appendChild(btntxt);
  btn.addEventListener('click', function () {
    var verboseItem = document.createElement('input');
    verboseItem.setAttribute('type', 'hidden');
    verboseItem.setAttribute('name', 'tbs');
    verboseItem.setAttribute('value', 'li:1');
    var tsf = document.forms.namedItem('tsf');
    if (tsf) {
      tsf.appendChild(verboseItem);
      tsf.submit();
    }
  }, true);
  var td = document.createElement('td');
  td.appendChild(btn);
  var bar = document.getElementById('sftab').parentNode;
  if (bar) {
    bar.appendChild(td);
  }
})();