Leider bringe ich folgendes Greasemonkey-Script zur Darstellung von Google Maps etc. http://userscripts.org/scripts/show/125949 unter Opera 11.61 nicht zum Laufen. Kann mir hier bitte jemand weiterhelfen?
// ==UserScript==
// @name Geocaching.com Google maps
// @namespace gccomgoooglemaps
// @include http://www.geocaching.com/map/*
// ==/UserScript==
opera.addEventListener('AfterScript',function (e) {
if (e == null) return;
if (e.element == null) return;
if (e.element.getAttribute('src') == null) return;
if( e.element.getAttribute('src').match(/groundspeak\.map\.js$/) ) {
opera.removeEventListener('AfterScript',arguments.callee,false);
if (navigator.appName.indexOf('Opera') == -1) {
layers = unsafeWindow.Groundspeak.Map.MapLayers;
} else {
layers = Groundspeak.Map.MapLayers;
}
//alternativ geht auch layers.unshift zum Einfügen am Anfang
layers.push(
{tileUrl:"http://mt.google.com/vt?x={x}&y={y}&z={z}",name:"googlemaps",alt:"Google Maps",attribution:"Google maps",subdomains:"1234",tileSize:256,minZoom:0,maxZoom:18});
layers.push(
{tileUrl:"http://mt0.google.com/vt/lyrs=s@110&hl=de&x={x}&y={y}&z={z}",name:"googlemaps",alt:"Google Maps (Satellite)",attribution:"Google maps",subdomains:"1234",tileSize:256,minZoom:0,maxZoom:20});
layers.push(
{tileUrl:"http://mt0.google.com/vt/lyrs=y@110&hl=de&x={x}&y={y}&z={z}",name:"googlemaps",alt:"Google Maps (Hybrid)",attribution:"Google maps",subdomains:"1234",tileSize:256,minZoom:0,maxZoom:20});
layers.push(
{tileUrl:"http://mt0.google.com/vt/v=w2p.110&hl=de&x={x}&y={y}&z={z}",name:"googlemaps",alt:"Google Maps (Terrain)",attribution:"Google maps",subdomains:"1234",tileSize:256,minZoom:0,maxZoom:18});
}
},false);