Created
May 28, 2013 14:37
-
-
Save mir4a/5663212 to your computer and use it in GitHub Desktop.
Simple street parser from http://mosopen.ru/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
/** | |
* простой букмарклет, который парсит улицы из http://mosopen.ru/ | |
*/ | |
(function () { | |
var txt = "["; | |
var a = document.querySelectorAll(".double_part li > a"); | |
for (var i=0;i<a.length;i++) { | |
var t = a[i].innerText; | |
txt += '"'+t+'",'; | |
} | |
txt += "]"; | |
var sp = document.createElement("div"); | |
sp.id = "aaaa"; | |
sp.innerText = txt; | |
document.body.appendChild(sp); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment