This commit is contained in:
Vitaliy 2025-11-02 13:32:12 +00:00
parent 93c2b404de
commit 50646fae77

76
main.js Normal file → Executable file
View File

@ -1,10 +1,10 @@
// ==UserScript== // ==UserScript==
// @name New Userscript // @name Borders of BGM-26
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 2024-12-03 // @version 2025-11-02
// @description try to take over the world! // @description Границы БГМ-2026
// @author You // @author You
// @match https://rst.runcity.org/msk2025/cp_mgmt*action=edit* // @match https://rst.runcity.org/msk2026/cp_mgmt*action=edit*
// @icon https://www.google.com/s2/favicons?sz=64&domain=runcity.org // @icon https://www.google.com/s2/favicons?sz=64&domain=runcity.org
// @grant none // @grant none
// ==/UserScript== // ==/UserScript==
@ -12,6 +12,7 @@
(function() { (function() {
'use strict'; 'use strict';
/*
let polygonPoints = [ let polygonPoints = [
[55.82662092078347, 37.83321790528101], [55.82662092078347, 37.83321790528101],
[55.83050654313924, 37.8271350366672], [55.83050654313924, 37.8271350366672],
@ -60,6 +61,73 @@
[55.82287240269746, 37.83645332671465], [55.82287240269746, 37.83645332671465],
[55.82662092078347, 37.83321790528101] [55.82662092078347, 37.83321790528101]
]; ];
*/
let polygonPoints = [
[55.729657, 37.654531],
[55.732575, 37.666226],
[55.734084, 37.668643],
[55.729314, 37.676768],
[55.721741, 37.698405],
[55.716581, 37.709248],
[55.709507, 37.730076],
[55.709406, 37.737601],
[55.705577, 37.766976],
[55.702162, 37.793140],
[55.694899, 37.811358],
[55.687118, 37.831006],
[55.677195, 37.835022],
[55.664131, 37.839792],
[55.660886, 37.840139],
[55.657847, 37.839746],
[55.651897, 37.836658],
[55.647837, 37.831926],
[55.640553, 37.820310],
[55.630036, 37.804362],
[55.623895, 37.794938],
[55.617409, 37.782316],
[55.609783, 37.768366],
[55.601536, 37.753205],
[55.595039, 37.737785],
[55.591557, 37.729921],
[55.589476, 37.731790],
[55.581502, 37.748512],
[55.580078, 37.747120],
[55.580713, 37.744180],
[55.580820, 37.740983],
[55.581674, 37.733479],
[55.581283, 37.727821],
[55.582373, 37.722608],
[55.586514, 37.715329],
[55.589041, 37.720636],
[55.592303, 37.720386],
[55.596851, 37.714468],
[55.600086, 37.701648],
[55.607920, 37.690627],
[55.610277, 37.680828],
[55.616183, 37.679114],
[55.615805, 37.673716],
[55.615595, 37.659167],
[55.619821, 37.656778],
[55.628239, 37.657136],
[55.629663, 37.662643],
[55.629663, 37.662643],
[55.651252, 37.657662],
[55.662542, 37.632772],
[55.663068, 37.622372],
[55.667048, 37.622361],
[55.672746, 37.627129],
[55.691237, 37.621413],
[55.691237, 37.621413],
[55.705699, 37.628779],
[55.707223, 37.632799],
[55.706348, 37.641633],
[55.708340, 37.649883],
[55.711938, 37.650804],
[55.716523, 37.648999],
[55.723056, 37.658830],
[55.729579, 37.654510]
];
L.polygon(polygonPoints, {color: 'red', fill: false}).addTo(map); L.polygon(polygonPoints, {color: 'red', fill: false}).addTo(map);