Blocking google thumbnails/images with my add-on

Maybe this is the solution ?

// ==UserScript== // @name Lewd Google Image Search // @namespace 156 // @include https://www.google.com/search* // @version 1 // @grant none // ==/UserScript== var url = window.location.href; var safe = "&safe=off"; if(url.indexOf(safe) == -1){ url += safe; window.location = url; }