58:
30:
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by
31:
others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
232:
ghrs_mapprovider = "http://www.openstreetmap.org/index.html?mlat={latdegdec}&mlon={londegdec}&zoom={osmzoom}&layers=B000FTF";
68:
36:
218:
ghrs_mapprovider = "http://maps.google.com/maps?ll={latdegdec},{londegdec}&spn={span},{span}&q={latdegdec},{londegdec}";
35:
to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
105:
32:
64:
197:- <url> is the url to load, specifiying the replacement variables above instead of actual values
168:- Instructions: add the following two lines to your common.js (or skin-specific js):
119:/* Replace external links to GeoHack with direct links to a single mapping provider.
17:
57:
80:
After saving, you have to bypass your browser's cache to see the changes.
1625:// can replace it), or until the 20th repition (to avoid infinite loop).
1618:// check if the link has appeared - until the link is found (and then we
1604:// However, initially they are just plain text, and are made into a link
179:
importScript('User:Evad37/GeoHack_replacement_script.js'); // ]
104:
toolbar button. For details and instructions about other browsers, see
1611:// after a short delay. So for each caption, at intervals of 250ms, we
1597:// Coords statements have geohack links in kartographer map captions.
133:* It support the following replacement variables found in GeoHack:
52:
26:
1512:// Hook on to changes in page content, including initial load
1553:// Hook onto wikibase UI rendered (i.e. Wikidata mainspace)
885:/_type:(adm3rd|city|mountain|isle|river|waterbody)/
971:/_type:(airport|edu|pass|landmark|railwaystation)/
140:* {latdegdec} {londegdec} {scale} {span} {osmzoom}
1572:'wikibase.entityPage.entityView.rendered'
308:"//geohack.toolforge.org/geohack.php"
327:/params=(+)_(*)_?(*)_?()_(+)_(*)_?(*)_?()(*)/
8:
186:ghrs_mapprovider = "<url>";
1681:".wikibase-kartographer-caption"
1647:".wikibase-kartographer-caption"
97:
69:User:Evad37/GeoHack replacement script
67:seems to have a documentation page at
45:be executed when previewing this page.
7:
112:
24:
106:Knowledge (XXG):Bypass your cache
56:
445:" caption link href:"
928:/_type:(event|forest|glacier)/
204:- These urls can be found at ]
1:
211:- For example, Google Maps:
154:* Based on a script by ]: ]
2002:
1531:'wikipage.content'
1982:
1975:
1968:
1955:
1942:
1935:
1925:
1909:
1884:
1877:
1867:
1851:
1835:
1798:
1773:
1748:
1732:
1716:
1703:
1672:
1629:
1622:
1615:
1608:
1601:
1594:
1557:
1550:
1516:
1509:
1502:
1495:
1488:
1418:
1285:
1278:
1274:
1216:
1140:
1094:
1021:
1002:
959:
916:
876:
842:
817:
810:
806:
766:
669:
629:
532:
528:// latitude and longitude
525:
476:
430:
393:
362:
334:
315:
296:
268:
243:
236:
229:
222:
215:
208:
201:
194:
190:
183:
176:
851:/_globe:(?!earth|_|$ )/i
172:
165:
158:
151:
144:
137:
130:
123:
116:
113:
37:appropriate village pump
813:// Determine scale/zoom
225:- or for OpenStreetMap:
1481:"plainlinks"
1463:"plainlinks"
1103:/_scale:(\d+)(_|$ )/
100:key and click the
1030:/_dim:(+)(km)?m?/
75:
74:
49:
48:
1993:
1987:
1986:
1980:
1979:
1973:
1972:
1966:
1965:
1962:
1959:
1953:
1952:
1949:
1946:
1940:
1939:
1933:
1932:
1929:
1923:
1922:
1919:
1916:
1913:
1907:
1906:
1903:
1900:
1897:
1894:
1891:
1888:
1882:
1881:
1875:
1874:
1871:
1865:
1864:
1861:
1858:
1855:
1849:
1848:
1845:
1842:
1839:
1833:
1832:
1829:
1826:
1823:
1820:
1817:
1814:
1811:
1808:
1805:
1802:
1796:
1795:
1792:
1789:
1786:
1783:
1780:
1777:
1771:
1770:
1767:
1764:
1761:
1758:
1755:
1752:
1746:
1745:
1742:
1739:
1736:
1730:
1729:
1726:
1723:
1720:
1714:
1713:
1710:
1707:
1701:
1700:
1697:
1694:
1691:
1688:
1685:
1682:
1679:
1676:
1670:
1669:
1666:
1663:
1660:
1657:
1654:
1651:
1648:
1645:
1642:
1639:
1636:
1633:
1627:
1626:
1620:
1619:
1613:
1612:
1606:
1605:
1599:
1598:
1592:
1591:
1588:
1585:
1582:
1579:
1576:
1573:
1570:
1567:
1564:
1561:
1555:
1554:
1548:
1547:
1544:
1541:
1538:
1535:
1532:
1529:
1526:
1523:
1520:
1514:
1513:
1507:
1506:
1500:
1499:
1493:
1492:
1486:
1485:
1482:
1479:
1476:
1473:
1470:
1467:
1464:
1461:
1458:
1455:
1452:
1449:
1446:
1443:
1440:
1439:"href"
1437:
1434:
1431:
1428:
1425:
1422:
1416:
1415:
1412:
1409:
1406:
1403:
1400:
1397:
1394:
1391:
1388:
1385:
1382:
1379:
1376:
1373:
1370:
1367:
1364:
1361:
1358:
1355:
1352:
1349:
1346:
1343:
1340:
1337:
1334:
1331:
1328:
1327:/\{londegdec\}/g
1325:
1322:
1319:
1316:
1313:
1310:
1309:/\{latdegdec\}/g
1307:
1304:
1301:
1298:
1297:ghrs_mapprovider
1295:
1292:
1289:
1283:
1282:
1276:
1272:
1271:
1268:
1265:
1262:
1259:
1256:
1253:
1250:
1247:
1244:
1241:
1238:
1235:
1232:
1229:
1226:
1223:
1220:
1214:
1213:
1210:
1207:
1204:
1201:
1198:
1195:
1192:
1189:
1186:
1183:
1180:
1177:
1174:
1171:
1168:
1165:
1162:
1159:
1156:
1153:
1150:
1147:
1144:
1138:
1137:
1134:
1131:
1128:
1125:
1122:
1119:
1116:
1113:
1110:
1107:
1104:
1101:
1098:
1092:
1091:
1088:
1085:
1082:
1079:
1076:
1073:
1070:
1067:
1064:
1061:
1058:
1055:
1052:
1049:
1046:
1043:
1040:
1037:
1034:
1031:
1028:
1025:
1019:
1018:
1015:
1012:
1009:
1006:
1000:
999:
996:
993:
990:
987:
984:
981:
978:
975:
972:
969:
966:
963:
957:
956:
953:
950:
947:
944:
941:
938:
935:
932:
929:
926:
923:
920:
914:
913:
910:
907:
904:
901:
898:
895:
892:
889:
886:
883:
880:
874:
873:
870:
867:
864:
861:
858:
855:
852:
849:
846:
840:
839:
836:
833:
830:
827:
824:
821:
815:
814:
808:
804:
803:
800:
797:
794:
791:
788:
785:
782:
779:
776:
773:
770:
764:
763:
760:
757:
754:
751:
748:
745:
742:
739:
736:
733:
730:
727:
724:
721:
718:
715:
712:
709:
706:
703:
700:
697:
694:
691:
688:
685:
682:
679:
676:
673:
667:
666:
663:
660:
657:
654:
651:
648:
645:
642:
639:
636:
633:
627:
626:
623:
620:
617:
614:
611:
608:
605:
602:
599:
596:
593:
590:
587:
584:
581:
578:
575:
572:
569:
566:
563:
560:
557:
554:
551:
548:
545:
542:
539:
536:
530:
529:
523:
522:
519:
516:
515:"href"
513:
510:
507:
504:
501:
498:
495:
492:
489:
486:
483:
480:
474:
473:
470:
469:"href"
467:
464:
461:
458:
455:
452:
449:
446:
443:
440:
437:
434:
428:
427:
424:
421:
418:
415:
412:
409:
406:
403:
400:
397:
391:
390:
387:
384:
381:
378:
375:
372:
369:
366:
360:
359:
356:
353:
350:
347:
344:
341:
338:
332:
331:
328:
325:
322:
319:
313:
312:
309:
306:
303:
300:
294:
293:
290:
287:
284:
281:
278:
275:
272:
266:
265:
262:
259:
256:
253:
250:
247:
241:
240:
234:
233:
227:
226:
220:
219:
213:
212:
206:
205:
199:
198:
192:
188:
187:
181:
180:
174:
170:
169:
163:
162:
156:
155:
149:
148:
142:
141:
135:
134:
128:
127:
121:
120:
109:
96:: Hold down the
60:
53:
27:
2001:
2000:
1996:
1995:
1994:
1992:
1991:
1990:
1989:
1988:
1984:
1981:
1977:
1974:
1970:
1967:
1963:
1960:
1957:
1954:
1950:
1947:
1944:
1941:
1937:
1934:
1930:
1927:
1924:
1920:
1917:
1914:
1911:
1908:
1904:
1901:
1898:
1895:
1892:
1889:
1886:
1883:
1879:
1876:
1872:
1869:
1866:
1862:
1859:
1856:
1853:
1850:
1846:
1843:
1840:
1837:
1834:
1830:
1827:
1824:
1821:
1818:
1815:
1812:
1809:
1806:
1803:
1800:
1797:
1793:
1790:
1787:
1784:
1781:
1778:
1775:
1772:
1768:
1765:
1762:
1759:
1756:
1753:
1750:
1747:
1743:
1740:
1737:
1734:
1731:
1727:
1724:
1721:
1718:
1715:
1711:
1708:
1705:
1702:
1698:
1695:
1692:
1689:
1686:
1683:
1680:
1677:
1674:
1671:
1667:
1664:
1661:
1658:
1655:
1652:
1649:
1646:
1643:
1640:
1637:
1634:
1631:
1628:
1624:
1621:
1617:
1614:
1610:
1607:
1603:
1600:
1596:
1593:
1589:
1586:
1583:
1580:
1577:
1574:
1571:
1568:
1565:
1562:
1559:
1556:
1552:
1549:
1545:
1542:
1539:
1536:
1533:
1530:
1527:
1524:
1521:
1518:
1515:
1511:
1508:
1504:
1501:
1497:
1494:
1490:
1487:
1483:
1480:
1477:
1474:
1471:
1468:
1465:
1462:
1459:
1456:
1453:
1450:
1447:
1445:replacement_url
1444:
1441:
1438:
1435:
1432:
1429:
1426:
1423:
1420:
1417:
1413:
1410:
1407:
1404:
1401:
1398:
1395:
1392:
1389:
1386:
1383:
1380:
1377:
1374:
1371:
1368:
1365:
1362:
1359:
1356:
1353:
1350:
1347:
1344:
1341:
1338:
1335:
1332:
1329:
1326:
1323:
1320:
1317:
1314:
1311:
1308:
1305:
1302:
1299:
1296:
1293:
1291:replacement_url
1290:
1287:
1284:
1281:// Replace link
1280:
1277:
1273:
1269:
1266:
1263:
1260:
1257:
1254:
1251:
1248:
1245:
1242:
1239:
1236:
1233:
1230:
1227:
1224:
1221:
1218:
1215:
1211:
1208:
1205:
1202:
1199:
1196:
1193:
1190:
1187:
1184:
1181:
1178:
1175:
1172:
1169:
1166:
1163:
1160:
1157:
1154:
1151:
1148:
1145:
1142:
1139:
1135:
1132:
1129:
1126:
1123:
1120:
1117:
1114:
1111:
1108:
1105:
1102:
1099:
1096:
1093:
1089:
1086:
1083:
1080:
1077:
1074:
1071:
1068:
1065:
1062:
1059:
1056:
1053:
1050:
1047:
1044:
1041:
1038:
1035:
1032:
1029:
1026:
1023:
1020:
1016:
1013:
1010:
1007:
1004:
1001:
997:
994:
991:
988:
985:
982:
979:
976:
973:
970:
967:
964:
961:
958:
954:
951:
948:
945:
942:
939:
936:
933:
930:
927:
924:
921:
918:
915:
911:
908:
905:
902:
899:
896:
893:
890:
887:
884:
881:
878:
875:
871:
868:
865:
862:
859:
856:
853:
850:
847:
844:
841:
837:
834:
831:
828:
825:
822:
819:
816:
812:
809:
805:
801:
798:
795:
792:
789:
786:
783:
780:
777:
774:
771:
768:
765:
761:
758:
755:
752:
749:
746:
743:
740:
737:
734:
731:
728:
725:
722:
719:
716:
713:
710:
707:
704:
701:
698:
695:
692:
689:
686:
683:
680:
677:
674:
671:
668:
664:
661:
658:
655:
652:
649:
646:
643:
640:
637:
634:
631:
628:
624:
621:
618:
615:
612:
609:
606:
603:
600:
597:
594:
591:
588:
585:
582:
579:
576:
573:
570:
567:
564:
561:
558:
555:
552:
549:
546:
543:
540:
537:
534:
531:
527:
524:
520:
517:
514:
511:
508:
505:
502:
499:
496:
493:
490:
487:
484:
481:
478:
475:
471:
468:
465:
462:
459:
456:
453:
450:
447:
444:
441:
438:
435:
432:
429:
425:
422:
419:
416:
413:
410:
407:
404:
401:
398:
395:
392:
388:
385:
382:
379:
376:
373:
370:
367:
364:
361:
357:
354:
351:
348:
345:
342:
339:
336:
333:
329:
326:
323:
320:
317:
314:
310:
307:
304:
301:
298:
295:
291:
288:
285:
282:
279:
276:
273:
270:
267:
263:
260:
257:
254:
251:
248:
245:
242:
238:
235:
231:
228:
224:
221:
217:
214:
210:
207:
203:
200:
196:
193:
189:
185:
182:
178:
175:
171:
167:
164:
160:
157:
153:
150:
146:
143:
139:
136:
132:
129:
125:
122:
118:
115:
111:
110:
99:
76:
50:
40:
22:
21:
20:
12:
11:
5:
1999:
1997:
1387:/\{osmzoom\}/g
114:
90:Microsoft Edge
73:
72:
61:
51:
47:
46:
25:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1998:
1983:
1976:
1969:
1956:
1943:
1936:
1926:
1912:clearInterval
1910:
1885:
1878:
1868:
1854:clearInterval
1852:
1836:
1819:"a"
1799:
1774:
1749:
1733:
1717:
1704:
1673:
1630:
1623:
1616:
1609:
1602:
1595:
1558:
1551:
1517:
1510:
1503:
1496:
1489:
1419:
1286:
1279:
1275:
1217:
1141:
1095:
1022:
1003:
960:
917:
877:
843:
818:
811:
807:
767:
670:
630:
533:
526:
477:
431:
408:"a"
394:
363:
335:
316:
297:
269:
244:
237:
230:
223:
216:
209:
202:
195:
191:
184:
177:
173:
166:
159:
152:
145:
138:
131:
124:
117:
107:
103:
95:
91:
87:
83:
82:Google Chrome
79:
70:
66:
62:
59:
55:
54:
44:
38:
34:
29:
28:
19:
1838:replaceLinks
1543:replaceLinks
1345:/\{scale\}/g
485:coord_filter
340:replaceLinks
321:coord_filter
302:geohack_base
101:
93:
89:
85:
81:
77:
42:
1757:setInterval
1475:removeClass
1457:removeClass
1405:/\{zoom\}/g
1363:/\{span\}/g
787:'W'
650:'N'
65:user script
18:User:Evad37
41:This code
1945:repitions
1893:repitions
1844:$ caption
1807:$ caption
1779:$ caption
1719:repitions
396:$ content
352:$ content
283:undefined
1918:interval
1860:interval
1763:function
1751:interval
1709:interval
1693:function
1584:function
420:function
346:function
252:function
1791:context
1735:context
1399:replace
1393:osmzoom
1381:replace
1357:replace
1339:replace
1321:replace
1303:replace
1146:osmzoom
433:console
98:⇧ Shift
86:Firefox
33:A guide
1928:return
1870:return
1825:length
1662:return
1653:length
1469:parent
1451:parent
1127:RegExp
1115:params
1069:RegExp
1054:RegExp
1042:params
1014:300000
983:params
940:params
909:100000
897:params
869:return
863:params
829:RegExp
823:params
775:RegExp
759:3600.0
738:RegExp
705:RegExp
687:RegExp
638:RegExp
622:3600.0
601:RegExp
568:RegExp
550:RegExp
289:return
277:window
246:jQuery
102:Reload
94:Safari
1369:scale
1351:scale
1246:scale
1240:1.5e8
1182:scale
1164:round
1121:scale
1081:10000
1048:scale
1008:scale
995:10000
989:scale
952:50000
946:scale
903:scale
386:scale
78:Note:
63:This
16:<
1813:find
1741:this
1687:each
1566:hook
1525:hook
1433:attr
1427:this
1411:zoom
1255:Math
1228:Math
1222:zoom
1197:Math
1188:1693
1170:Math
1158:Math
1109:exec
1036:exec
1005:else
977:test
962:else
934:test
919:else
891:test
857:test
726:60.0
589:60.0
509:attr
503:this
491:exec
463:attr
457:this
414:each
402:find
368:link
92:and
43:will
1985:});
1978:});
1971:});
1961:250
1896:===
1776:var
1706:var
1578:add
1537:add
1498:});
1472:().
1454:().
1375:1e6
1333:lon
1315:lat
1288:var
1261:log
1234:log
1219:var
1212:));
1203:log
1176:log
1143:var
1133:$ 1
1075:$ 2
1060:$ 1
835:$ 9
820:var
796:*=-
793:lon
781:$ 8
744:$ 7
711:$ 6
693:$ 5
681:1.0
672:lon
659:*=-
656:lat
644:$ 4
607:$ 3
574:$ 2
556:$ 1
544:1.0
535:lat
518:)))
472:));
439:log
380:lon
374:lat
365:var
337:var
318:var
299:var
280:===
1964:);
1958:},
1948:++
1921:);
1899:20
1887:if
1863:);
1847:);
1822:).
1801:if
1794:);
1785:$
1766:()
1696:()
1684:).
1675:$
1650:).
1641:$
1632:if
1587:()
1575:).
1560:mw
1546:);
1534:).
1519:mw
1505:};
1484:);
1466:).
1448:).
1430:).
1421:$
1414:);
1396:).
1378:).
1354:).
1336:).
1318:).
1270:);
1152:18
1118:))
1097:if
1090:);
1087:10
1045:))
1024:if
986:))
965:if
943:))
922:if
900:))
879:if
866:))
845:if
784:==
769:if
762:);
747:||
735:((
714:||
702:((
647:!=
632:if
625:);
610:||
598:((
577:||
565:((
506:).
497:$
479:if
460:).
451:$
423:()
411:).
271:if
258:$
239:*/
88:,
84:,
1951:;
1938:}
1931:;
1915:(
1905:{
1902:)
1890:(
1880:}
1873:;
1857:(
1841:(
1831:{
1828:)
1816:(
1810:.
1804:(
1788:(
1782:=
1769:{
1760:(
1754:=
1744:;
1738:=
1728:,
1725:0
1722:=
1712:,
1699:{
1690:(
1678:(
1668:}
1665:;
1659:{
1656:)
1644:(
1638:!
1635:(
1590:{
1581:(
1569:(
1563:.
1540:(
1528:(
1522:.
1491:}
1478:(
1460:(
1442:,
1436:(
1424:(
1408:,
1402:(
1390:,
1384:(
1372:/
1366:,
1360:(
1348:,
1342:(
1330:,
1324:(
1312:,
1306:(
1300:.
1294:=
1267:2
1264:(
1258:.
1252:/
1249:)
1243:/
1237:(
1231:.
1225:=
1209:2
1206:(
1200:.
1194:/
1191:)
1185:/
1179:(
1173:.
1167:(
1161:.
1155:-
1149:=
1136:;
1130:.
1124:=
1112:(
1106:.
1100:(
1084::
1078:?
1072:.
1066:(
1063:*
1057:.
1051:=
1039:(
1033:.
1027:(
1017:;
1011:=
998:;
992:=
980:(
974:.
968:(
955:;
949:=
937:(
931:.
925:(
912:;
906:=
894:(
888:.
882:(
872:;
860:(
854:.
848:(
838:;
832:.
826:=
802:;
799:1
790:)
778:.
772:(
756:/
753:)
750:0
741:.
732:+
729:)
723:/
720:)
717:0
708:.
699:+
696:)
690:.
684:*
678:(
675:=
665:;
662:1
653:)
641:.
635:(
619:/
616:)
613:0
604:.
595:+
592:)
586:/
583:)
580:0
571:.
562:+
559:)
553:.
547:*
541:(
538:=
521:{
512:(
500:(
494:(
488:.
482:(
466:(
454:(
448:,
442:(
436:.
426:{
417:(
405:(
399:.
389:;
383:,
377:,
371:,
358:{
355:)
349:(
343:=
330:;
324:=
311:;
305:=
292:;
286:)
274:(
264:{
261:)
255:(
249:(
161:*
147:*
126:*
108:.
71:.
39:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.