Freitag, 11. Dezember 2015

Automatically follow IFRAME wrapper in Google's image search

Google adds a wrapper around the search result of image searches. They say that this might add some kind of convenience, which is by no means obvious to me. I would say that this is just another way to monitor your internet usage.

In order to get rid of it, you need Tampermonkey, if you use Chrome. The following script automatically follows the IFRAME in the search result.

// ==UserScript==
// @name         Follow IFRAME in Google image search
// @namespace
// @version      0.1
// @description  try to take over the world!
// @author       You
// @include      *://*/imgres?*
// @grant        none
// ==/UserScript==
/* jshint -W097 */
'use strict';


By default Tampermonkey uses the @match option, which is quite limited, because it is not possible to match any top level domain. Instead of @match you have to use @include, which supports a more general globing.

Keine Kommentare: