User:Fjsawicki/FjsBookmarklets View history

mNo edit summary
mNo edit summary
Line 3: Line 3:
Code
Code
<blockquote>
<blockquote>
javascript:
<nowiki>javascript:
//fjsawicki  
//fjsawicki  


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


Line 19: Line 19:
Code
Code
<blockquote>
<blockquote>
javascript:
<nowiki>javascript:
//fjsawicki;  bmtg
//fjsawicki;  bmtg
var selectedText = ""
var selectedText = ""
Line 34: Line 34:
var splitText = selectedText.split(",");
var splitText = selectedText.split(",");
var wazePL = "https://www.waze.com/editor/?env=usa&lon=" + splitText[1] + "&lat=" + splitText[0] + "&zoom=8";
var wazePL = "https://www.waze.com/editor/?env=usa&lon=" + splitText[1] + "&lat=" + splitText[0] + "&zoom=8";
window.open(wazePL);
window.open(wazePL);</nowiki>
</blockquote>
</blockquote>

Revision as of 16:46, 11 May 2016

Coming soon ....

Code

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);


Code

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);