Sign up ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.


// ==UserScript==
// @name        StackExchange SymbolHound Search
// @description Uses SymbolHound instead of regular search if query begins with "sh:".
// @version     1.1
// @include*
// @include     http://**
// @include*
// @include     http://**
// @include*
// @include     http://**
// @include*
// @include     http://**
// @include*
// @include     http://**
// @include*
// @include     http://**
// @include*
// @include     http://**
// ==/UserScript==

document.getElementById("search").addEventListener("submit", function(event){
    var q = document.getElementById("search")["q"].value;
    if (!RegExp("^sh:").test(q))
    document.location = "" +
        encodeURIComponent(q.substr(3)) +
        "&l=&e=&n=&u=" +


Ever wanted to search for && on Stack Overflow but couldn't? SymbolHound makes it possible!

From their website:

SymbolHound is a new search engine that doesn't ignore special characters. This means you can easily search the web for symbols like &, %, and ^, or even less common characters such as ©, ¬, and µ.

See also: SymbolHound: Search Stack Overflow for special characters

With this User Script, you can override the built-in search with SymbolHound's.

Just begin type in your query as usual in the search in the upper right corner, but prefix it with sh:.


  • sh:&&
  • sh:php <<<
  • sh:difference between == and ===


I hereby release this script in the public domain.


This user script has been tested in Google Chrome 17.0.963.6 and Mozilla Firefox 8.0 with Greasemonkey 0.9.13.

share|improve this question

You must log in to answer this question.

Browse other questions tagged .