Skip to content

Instantly share code, notes, and snippets.

@mir4a
Created May 28, 2013 14:37
Show Gist options
  • Save mir4a/5663212 to your computer and use it in GitHub Desktop.
Save mir4a/5663212 to your computer and use it in GitHub Desktop.
Simple street parser from http://mosopen.ru/
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