m (Fjsawicki moved page Livemapbookmarklet to FjsBookmarklets) |
m (PesachZ moved page FjsBookmarklets to User:Fjsawicki/FjsBookmarklets: should be in users space) |
||
(21 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
< | |||
== Livemap to WME == | |||
===== Shortcut Manager Setup for Livemap to WME ===== | |||
[[File:Livemaptowme.png|thumb|none||Livemap to WME Shortcut settings]] | |||
===== Code: Livemap to WME ===== | |||
<nowiki> | |||
javascript: | javascript: | ||
//fjsawicki | //fjsawicki | ||
Line 12: | Line 20: | ||
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> | ||
</ | |||
== Google to WME == | |||
===== Shortcut Manager Setup for Google to WME ===== | |||
[[File:Googletowaze.png|thumb|none||Google to WME Shortcut settings]] | |||
===== Code:Google to WME ===== | |||
<nowiki>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);</nowiki> | |||
---- |
Latest revision as of 17:43, 8 August 2016
Livemap to WME
Shortcut Manager Setup for Livemap to WME
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
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);