Results 1 to 4 of 4

Thread: modifying Google Search to make results intentionally inaccurate

  1. #1
    Join Date
    Aug 2014

    modifying Google Search to make results intentionally inaccurate

    I already made a post at Superuser http://superuser.com/questions/80032...arch-look-dumb

    I will summerize here:

    [1] http://i.stack.imgur.com/ZN60B.jpg

    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.

    [2] http://i.stack.imgur.com/4mUSt.jpg

    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.

    I will be happy if this script can atleast work in YouTube,Bing and Yahoo.

    Thank you in advance.

  2. #2
    Join Date
    Jan 2005
    Okay, lets take a step back - are you the admin for a school or something, or is this purely for your own PC?

    What _does_ happen when you try to use this?

  3. #3
    Join Date
    Aug 2014
    This is purely for my own PC.

    What _does_ happen when you try to use this?
    If my family members open google and type xxxxxxxxxx or something in the search box this text(-torrent-download-watch) should to automatically added but with an opacity of zero(this should be happened before they hit the enter button)

    My reason:really, really want to exclude torrent sites from search results.If lowering the opacity is difficult,Can we try like adding a blank white layer over the text and sync them?

    If all of this is cumbersome,can we try a different approch to exclude torrent sites from search results.I already tried google cse and chrome's personal block-list

  4. #4
    Join Date
    Jan 2005
    Quote Originally Posted by jarid3421 View Post
    This is purely for my own PC.
    There are numerous bits of software out there either directly intended for this (eg NetNanny) or general-purpose (eg Apache used as a proxy) so I wouldn't recommend trying to re-invent the wheel.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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