This repository has been archived by the owner on Apr 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
iitc-pogo.user.js
54 lines (43 loc) · 1.61 KB
/
iitc-pogo.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// ==UserScript==
// @id iitc-plugin-pogo
// @name IITC plugin: pogo for portals
// @category Controls
// @version 0.5
// @description Mark Ingress portals as a pokestop or gym in Pokemon Go.
// @include https://www.ingress.com/intel*
// @include https://ingress.com/intel*
// @match https://www.ingress.com/intel*
// @match https://ingress.com/intel*
// @include https://www.ingress.com/mission/*
// @match https://www.ingress.com/mission/*
// @grant none
// ==/UserScript==
/* eslint-env es6 */
/* eslint no-var: "error" */
/* globals $, L, GM_info, plugin, dialog */
/* globals renderPortalDetails, findPortalGuidByPositionE6 */
;(function () { // eslint-disable-line no-extra-semi
'use strict';
const plugin_info = {};
if (typeof GM_info !== 'undefined' && GM_info && GM_info.script) {
plugin_info.script = {
version: GM_info.script.version,
name: GM_info.script.name,
description: GM_info.script.description
};
}
const setup = function () {
alert('The iitc-plugin-pogo, "pogo for portals" plugin is outdated and its features are included in "s2Check".\r\n' +
'Please, uninstall this plugin to avoid conflicts');
};
// PLUGIN END //////////////////////////////////////////////////////////
setup.info = plugin_info; //add the script info data to the function as a property
if (!window.bootPlugins) {
window.bootPlugins = [];
}
window.bootPlugins.push(setup);
// if IITC has already booted, immediately run the 'setup' function
if (window.iitcLoaded && typeof setup === 'function') {
setup();
}
})();