Skip to content

Instantly share code, notes, and snippets.

@simeonlg
Last active September 26, 2018 23:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save simeonlg/da655a46538c3cb96bc695918d4ac635 to your computer and use it in GitHub Desktop.
Save simeonlg/da655a46538c3cb96bc695918d4ac635 to your computer and use it in GitHub Desktop.
Pokemongomap.info scraper for pidgey bot
javascript:var markerList = markerList || {}; for (marker in markers) { if (!markerList.hasOwnProperty(markers[marker].options.locmarkerid)) { console.log("Marker added"); markerList[marker] = '"' + markers[marker].options.title.split(': ')[1] + '","' + markers[marker].options.title.split(': ', 2)[0] + '",' + markers[marker]._latlng.lat.toFixed(6) + ',' + markers[marker]._latlng.lng.toFixed(6); } } var markerString = ""; for (marker in markerList) { markerString += "[" + markerList[marker] + "],"; } (function (text) { var node = document.createElement('textarea'); var selection = document.getSelection(); node.textContent = "[" + text + "]"; document.body.appendChild(node); selection.removeAllRanges(); node.select(); document.execCommand('copy'); selection.removeAllRanges(); document.body.removeChild(node); })(markerString);
var markerList = markerList || {};
for (marker in markers) {
if (!markerList.hasOwnProperty(markers[marker].options.locmarkerid)) {
console.log("Marker added");
markerList[marker] = '"' + markers[marker].options.title.split(': ')[1] + '","' + markers[marker].options.title.split(': ', 2)[0] + '",' + markers[marker]._latlng.lat.toFixed(6) + ',' + markers[marker]._latlng.lng.toFixed(6);
}
}
var markerString = "";
for (marker in markerList) {
markerString += "[" + markerList[marker] + "],";
}
(function (text) {
var node = document.createElement('textarea');
var selection = document.getSelection();
node.textContent = "[" + text + "]";
document.body.appendChild(node);
selection.removeAllRanges();
node.select();
document.execCommand('copy');
selection.removeAllRanges();
document.body.removeChild(node);
})(markerString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment