Skip to content

Commit 3419873

Browse files
chore: autopublish 2025-04-29T01:15:15Z
1 parent bb8f602 commit 3419873

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ Add one or more player markers and his ranges (hack/deploy range and xmp ranges)
796796
Pokemon Go tools over IITC. Support in #tools-chat on https://discord.gg/niawayfarer
797797

798798
*[Homepage](https://gitlab.com/NvlblNm/pogo-s2/)* |
799-
*Version:* 0.106
799+
*Version:* 0.107
800800

801801

802802

dist/NvlblNm/s2check.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @updateURL https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/NvlblNm/s2check.meta.js
99
// @homepageURL https://gitlab.com/NvlblNm/pogo-s2/
1010
// @supportURL https://discord.gg/niawayfarer
11-
// @version 0.106
11+
// @version 0.107
1212
// @description Pokemon Go tools over IITC. Support in #tools-chat on https://discord.gg/niawayfarer
1313
// @match https://intel.ingress.com/*
1414
// @grant none

dist/NvlblNm/s2check.user.js

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @updateURL https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/NvlblNm/s2check.meta.js
99
// @homepageURL https://gitlab.com/NvlblNm/pogo-s2/
1010
// @supportURL https://discord.gg/niawayfarer
11-
// @version 0.106
11+
// @version 0.107
1212
// @description Pokemon Go tools over IITC. Support in #tools-chat on https://discord.gg/niawayfarer
1313
// @match https://intel.ingress.com/*
1414
// @grant none
@@ -5329,21 +5329,21 @@
53295329

53305330
const formContent = `<div class="pogo-s2-popup"><form id="submit-to-pogo-s2">
53315331
<label>Type
5332-
<select name="pokestopType">
5332+
<select id="pogo-s2-pokestopType" name="pokestopType">
53335333
<option value="pokestops">PokéStop</option>
53345334
<option value="gyms">Gym</option>
53355335
<option value="powerspots">Power Spot</option>
53365336
<option value="notpogo">Not in PoGo</option>
53375337
</select>
53385338
</label>
53395339
<label>Title
5340-
<input name="pokestopTitle" type="text" autocomplete="off" placeholder="Title (required)" required value="${title}">
5340+
<input id="pogo-s2-pokestopTitle" name="pokestopTitle" type="text" autocomplete="off" placeholder="Title (required)" required value="${title}">
53415341
</label>
53425342
<label>Latitude
5343-
<input name="pokestopLatitude" type="text" autocomplete="off" placeholder="Latitude (required)" required value="${lat}">
5343+
<input id="pogo-s2-pokestopLatitude" name="pokestopLatitude" type="text" autocomplete="off" placeholder="Latitude (required)" required value="${lat}">
53445344
</label>
53455345
<label>Longitude
5346-
<input name="pokestopLongitude" type="text" autocomplete="off" placeholder="Longitude (required)" required value="${lng}">
5346+
<input id="pogo-s2-pokestopLongitude" name="pokestopLongitude" type="text" autocomplete="off" placeholder="Longitude (required)" required value="${lng}">
53475347
</label>
53485348
<label>Image Url
53495349
<input name="pokestopImageUrl" type="text" autocomplete="off" placeholder="http://?.googleusercontent.com/***" value="${imageUrl}">
@@ -5353,6 +5353,31 @@
53535353

53545354
window.pokestoppopup.setContent(formContent)
53555355
window.pokestoppopup.openOn(map)
5356+
5357+
const rootNode = window.pokestoppopup.getElement().getRootNode()
5358+
const titleInput = rootNode.getElementById('pogo-s2-pokestopTitle')
5359+
titleInput.addEventListener('change', (ev) => {
5360+
try {
5361+
const asUrl = new URL(ev.target.value)
5362+
if (asUrl.host === 'campfire.onelink.me') {
5363+
const params = new URLSearchParams(
5364+
atob(asUrl.searchParams.get('deep_link_sub1'))
5365+
)
5366+
const lat = params.get('lat')
5367+
const lng = params.get('lng')
5368+
rootNode.getElementById(
5369+
'pogo-s2-pokestopLatitude'
5370+
).value = lat
5371+
rootNode.getElementById(
5372+
'pogo-s2-pokestopLongitude'
5373+
).value = lng
5374+
rootNode.getElementById('pogo-s2-pokestopType').value =
5375+
'powerspots'
5376+
titleInput.value = 'Powerspot '
5377+
titleInput.focus()
5378+
}
5379+
} catch (e) {}
5380+
})
53565381
}
53575382

53585383
window.submitNewStop = function () {

dist/meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@
12781278
"updateURL": "https://raw.githubusercontent.com/IITC-CE/Community-plugins/master/dist/NvlblNm/s2check.meta.js",
12791279
"homepageURL": "https://gitlab.com/NvlblNm/pogo-s2/",
12801280
"supportURL": "https://discord.gg/niawayfarer",
1281-
"version": "0.106",
1281+
"version": "0.107",
12821282
"description": "Pokemon Go tools over IITC. Support in #tools-chat on https://discord.gg/niawayfarer",
12831283
"match": [
12841284
"https://intel.ingress.com/*"
@@ -1287,7 +1287,7 @@
12871287
"none"
12881288
],
12891289
"id_hash": "s2check-by-NvlblNm",
1290-
"updatedAt": "2025-04-28T01:17:07.486Z"
1290+
"updatedAt": "2025-04-29T01:15:07.085Z"
12911291
},
12921292
{
12931293
"author": "NvlblNm",

0 commit comments

Comments
 (0)