Fix plugins that use alert with css styling, remove unused divs in body
This commit is contained in:
parent
0d51e045a0
commit
19a42b7c24
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-portals-count@yenky
|
// @id iitc-plugin-portals-count@yenky
|
||||||
// @name IITC plugin: Show total counts of portals
|
// @name IITC plugin: Show total counts of portals
|
||||||
// @version 0.0.6.@@DATETIMEVERSION@@
|
// @version 0.0.7.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -99,7 +99,6 @@ window.plugin.portalcounts.getPortals = function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
$('body').append('<div id="portalcounts" style="display:none;"></div>');
|
|
||||||
$('#toolbox').append('<a onclick="window.plugin.portalcounts.getPortals()">Portalcounts</a>');
|
$('#toolbox').append('<a onclick="window.plugin.portalcounts.getPortals()">Portalcounts</a>');
|
||||||
$('head').append('<style>' +
|
$('head').append('<style>' +
|
||||||
'#portalcounts table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +
|
'#portalcounts table {margin-top:5px; border-collapse: collapse; empty-cells: show; width:100%; clear: both;}' +
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-portals-list@teo96
|
// @id iitc-plugin-portals-list@teo96
|
||||||
// @name IITC plugin: show list of portals
|
// @name IITC plugin: show list of portals
|
||||||
// @version 0.0.9.@@DATETIMEVERSION@@
|
// @version 0.0.10.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -119,7 +119,7 @@ window.plugin.portalslist.displayPL = function() {
|
|||||||
} else {
|
} else {
|
||||||
html = '<table><tr><td>Nothing to Show !</td></tr></table>';
|
html = '<table><tr><td>Nothing to Show !</td></tr></table>';
|
||||||
};
|
};
|
||||||
alert('<div id="portalslist">' + html + '</div>');
|
alert('<div id="portalslist">' + html + '</div>', true, function() {$(".ui-dialog").removeClass('ui-dialog-portalslist');});
|
||||||
$(".ui-dialog").addClass('ui-dialog-portalslist');
|
$(".ui-dialog").addClass('ui-dialog-portalslist');
|
||||||
|
|
||||||
// Setup sorting
|
// Setup sorting
|
||||||
@ -403,7 +403,6 @@ window.plugin.portalslist.getPortalLink = function(portal,guid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
$('body').append('<div id="portalslist" style="display:none;"></div>');
|
|
||||||
$('#toolbox').append('<a onclick="window.plugin.portalslist.displayPL(0)">Portals List</a>');
|
$('#toolbox').append('<a onclick="window.plugin.portalslist.displayPL(0)">Portals List</a>');
|
||||||
$('head').append('<style>' +
|
$('head').append('<style>' +
|
||||||
'.ui-dialog-portalslist {position: absolute !important; top: 10px !important; left: 30px !important;max-width:800px !important; width:733px !important;}' +
|
'.ui-dialog-portalslist {position: absolute !important; top: 10px !important; left: 30px !important;max-width:800px !important; width:733px !important;}' +
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-scoreboard@vita10gy
|
// @id iitc-plugin-scoreboard@vita10gy
|
||||||
// @name IITC plugin: show a localized scoreboard.
|
// @name IITC plugin: show a localized scoreboard.
|
||||||
// @version 0.1.5.@@DATETIMEVERSION@@
|
// @version 0.1.6.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -362,7 +362,7 @@ window.plugin.scoreboard.display = function() {
|
|||||||
scoreHtml += 'You need something in view.';
|
scoreHtml += 'You need something in view.';
|
||||||
}
|
}
|
||||||
|
|
||||||
alert('<div id="scoreboard">' + scoreHtml + '</div>');
|
alert('<div id="scoreboard">' + scoreHtml + '</div>', true, function() {$(".ui-dialog").removeClass('ui-dialog-scoreboard');});
|
||||||
$(".ui-dialog").addClass('ui-dialog-scoreboard');
|
$(".ui-dialog").addClass('ui-dialog-scoreboard');
|
||||||
|
|
||||||
// Setup sorting
|
// Setup sorting
|
||||||
@ -389,7 +389,6 @@ window.plugin.scoreboard.fieldArea = function(field) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var setup = function() {
|
var setup = function() {
|
||||||
$('body').append('<div id="scoreboard" style="display:none;"></div>');
|
|
||||||
$('#toolbox').append('<a onclick="window.plugin.scoreboard.display()">scoreboard</a>');
|
$('#toolbox').append('<a onclick="window.plugin.scoreboard.display()">scoreboard</a>');
|
||||||
$('head').append('<style>' +
|
$('head').append('<style>' +
|
||||||
'.ui-dialog-scoreboard {max-width:600px !important; width:600px !important;}' +
|
'.ui-dialog-scoreboard {max-width:600px !important; width:600px !important;}' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user