// ==UserScript== // @name Map Linker GoogleMaps // @description Link Google with other maps // @namespace 1d196b78-800f-45a5-8c34-bfcf2f652eb4 // @version 0.2 // @match https://maps.google.se/maps* // @match https://www.google.se/maps/* // @match https://www.google.com/maps/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js // @require https://greasyfork.org/scripts/17293-alert/code/$alert.js?version=109035 // @require https://greasyfork.org/scripts/9160-my-function-library/code/My%20Function%20library.js?version=168434 // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant GM_xmlhttpRequest // @grant GM_getResourceURL // @resource Terraserver https://yt3.ggpht.com/-jiYzuprSqZQ/AAAAAAAAAAI/AAAAAAAAAAA/X0J7cmuseqU/s100-c-k-no-mo-rj-c0xffffff/photo.jpg // @resource Wikimapia http://monkeyscript.4all.nu/shareResorces/images/wikimapia.org_favicon.ico // @resource Panoramio http://monkeyscript.4all.nu/shareResorces/images/panoramio.com.webp // @resource Hitta http://monkeyscript.4all.nu/shareResorces/images/hitta.se_favicon.ico // @resource Eniro http://monkeyscript.4all.nu/shareResorces/images/eniro.com_favicon.ico // @resource zoomEarth http://monkeyscript.4all.nu/shareResorces/images/zoom.earth_globe-search-find-64.png // @resource Wiwosm http://monkeyscript.4all.nu/shareResorces/images/Wiwosm_Tool_Labs_logo_thumb.png // @resource Hitchwiki http://hitchwiki.org/maps/static/gfx/mobile/app_icons-screens/icon_57x57.png // @resource Bing https://www.bing.com/sa/simg/bing_p_rr_teal_min.ico // @resource Flickr https://s.yimg.com/pw/favicon.ico // @resource Wikimap http://wiki-map.com/favicon.ico // @resource Geonames http://www.geonames.org/img/globe.gif // @resource yandex https://yandex.com/maps/favicon.png // @resource Openstreetmap https://upload.wikimedia.org/wikipedia/commons/b/b0/Openstreetmap_logo.svg // @created 2015-03-06 // @released 2015-00-00 // @updated 2015-00-00 // @history @version 0.25 - Alpha version: @released - 2015-03-12 // @history @version 0.45 - Beta version: @released - 2015-03-17 // @history @version 0.5 - RC version: @released - 2016-02-21 // @compatible Greasemonkey, Tampermonkey // @license GNU GPL v3 (http://www.gnu.org/copyleft/gpl.html) // @copyright 2015+, Magnus Fohlström // @downloadURL https://update.greasyfork.icu/scripts/27054/Map%20Linker%20GoogleMaps.user.js // @updateURL https://update.greasyfork.icu/scripts/27054/Map%20Linker%20GoogleMaps.meta.js // ==/UserScript== /*global $, jQuery*/ /*jshint -W014, -W030, -W082*/ // -W014, laxbreak, Bad line breaking before '+' // -W030, Expected assignment or function call instead saw an expression (function() { var returnThis, css = { button : function(){ return '' + '#mapsHolder {' + 'position:absolute;' + 'right:150px;' + 'padding-top: 12px;' + 'height: 18px;' + 'background-color: rgba(83, 94, 72, 0.72);' + '}' + '#mapsHolder button {' + 'margin:-21px 6px;' + 'width:24px;' + 'height:24px;' + '}' + '.buttonPanoramio {' + 'position: relative;' + 'top: 13px;' + 'left: 11px;' + 'width: 52px !important;' + 'height: 40px !important;' + '}' + '#mapsHolder button img {' + 'width:100%;' + 'height:100%;' + '}'; }, style : function( id, var1, var2 ){ var $id = $( 'head #' + id ), cssID = css[ id ]( var1, var2 ).formatString(); $id.length ? $id.html( cssID ) : $( $( '