User:Fjsawicki/Bookmarklets View history

Revision as of 18:53, 7 August 2016 by Fjsawicki (talk | contribs) (Fjsawicki moved page FjsBookmarklets to User:Fjsawicki/Bookmarklets)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Livemap to WME

Shortcut Manager Setup for Livemap to WME
Livemap to WME Shortcut settings
Code: Livemap to WME
javascript:
//fjsawicki 

debugger;  
var list = document.getElementsByClassName("mouse-position")
var latLon = list[0].innerHTML;


var splitText = latLon.split(",");
var wazePL = "https://www.waze.com/editor/?env=usa&lon=" + splitText[0] + "&lat=" + splitText[1] + "&zoom=3";
window.open(wazePL);


Google to WME

Shortcut Manager Setup for Google to WME
Google to WME Shortcut settings
Code:Google to WME
javascript:
//fjsawicki;  bmtg
var selectedText = ""
   
        //selectedText = window.getSelection().toString();

        selectedText = document.getElementsByClassName('widget-reveal-card-lat-lng')[0].innerText;
        if (selectedText == ""){
            alert("No Lat/Lon Diaglog");
            return;
           }


var splitText = selectedText.split(",");
var wazePL = "https://www.waze.com/editor/?env=usa&lon=" + splitText[1] + "&lat=" + splitText[0] + "&zoom=8";
window.open(wazePL);