Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2014
    Thanked 0 Times in 0 Posts

    modifying Google Search to make results look inaccurate

    I already made a post at Superuser:How to make Google Search look dumb? - Super User

    My point is i do not want to see torrent sites in the search results,so if someone searches Google or any other search engine this phrase(-torrent-download-watch) should be automatically and invisibly added.

    And one of the answers was this userscript written by krowe:

    // ==UserScript==
    // @name       Tamper with Google Results
    // @namespace  http://superuser.com/users/145045/krowe
    // @version    0.1
    // @description  This just modifies google results to exclude certain things.
    // @match      http://*.google.com
    // @match      https://*.google.com
    // @copyright  2014+, KRowe
    // ==/UserScript==
    function GM_main () {
        window.onload = function () {
          var targ = window.location;
          if(targ && targ.href && targ.href.match('https?:\/\/www.google.com/.+#q=.+') && targ.href.search("/+-torrent/+-watch/+-download")==-1) {
            targ.href = targ.href +"+-torrent+-watch+-download";
    //-- This is a standard-ish utility function:
    function addJS_Node(text, s_URL, funcToRun, runOnLoad) {
        var D=document, scriptNode = D.createElement('script');
        if(runOnLoad) scriptNode.addEventListener("load", runOnLoad, false);
        scriptNode.type = "text/javascript";
        if(text) scriptNode.textContent = text;
        if(s_URL) scriptNode.src = s_URL;
        if(funcToRun) scriptNode.textContent = '(' + funcToRun.toString() + ')()';
        var targ = D.getElementsByTagName('head')[0] || D.body || D.documentElement;
    addJS_Node (null, null, GM_main);

    But the script is not working at all. I copied it to tampermonkey , tried it several times no luck.I need some help please.

    Thank you in advance.

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Thanked 1,008 Times in 1,005 Posts
    Google has a LARGE number of modifications. There is a cog-tooth icon to the far right on the page that will open the options.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  3. #3
    New Coder
    Join Date
    Aug 2014
    Thanked 0 Times in 0 Posts
    So can I make the excluded words invisible but still functioning.I don't want the kids to notice the tampering.(and please don't tell me to use safe search or something like)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts