3
3
// @name IITC plugin: COMM Filter
4
4
// @author udnp
5
5
// @category COMM
6
- // @version 0.5.2.20160406.102111
6
+ // @version 0.5.2.20160411.123020
7
7
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
8
8
// @source https://github.com/udnp/iitc-plugins
9
- // @updateURL https://github.com/udnp/iitc-plugins/raw/comm-filter-plugin/develop /built/comm-filter.meta.js
10
- // @downloadURL https://github.com/udnp/iitc-plugins/raw/comm-filter-plugin/develop /built/comm-filter.user.js
11
- // @description [udnp-2016-04-06-102111 ] COMM Filter
9
+ // @updateURL https://github.com/udnp/iitc-plugins/raw/master /built/comm-filter.meta.js
10
+ // @downloadURL https://github.com/udnp/iitc-plugins/raw/master /built/comm-filter.user.js
11
+ // @description [udnp-2016-04-11-123020 ] COMM Filter
12
12
// @include https://www.ingress.com/intel*
13
13
// @include http://www.ingress.com/intel*
14
14
// @match https://www.ingress.com/intel*
@@ -28,7 +28,7 @@ if(typeof window.plugin !== 'function') window.plugin = function() {};
28
28
//PLUGIN AUTHORS: writing a plugin outside of the IITC build environment? if so, delete these lines!!
29
29
//(leaving them in place might break the 'About IITC' page or break update checks)
30
30
plugin_info . buildName = 'udnp' ;
31
- plugin_info . dateTimeVersion = '20160406.102111 ' ;
31
+ plugin_info . dateTimeVersion = '20160411.123020 ' ;
32
32
plugin_info . pluginId = 'comm-filter' ;
33
33
//END PLUGIN AUTHORS NOTE
34
34
@@ -271,6 +271,7 @@ window.plugin.commfilter = (function() {
271
271
this . checked = config . filter [ action ] ;
272
272
273
273
this . dom = document . createElement ( 'label' ) ;
274
+ this . dom . className = 'switch' ;
274
275
this . dom . textContent = action ;
275
276
this . dom . insertBefore ( switchDom , this . dom . firstChild ) ;
276
277
} ;
@@ -520,10 +521,15 @@ window.plugin.commfilter = (function() {
520
521
new FilterSwitch ( 'created' ) ,
521
522
new FilterSwitch ( 'destroyed' ) ] ;
522
523
524
+ var switchesDom = document . createElement ( 'span' ) ;
525
+ switchesDom . className = 'switchgroup' ;
526
+
523
527
for ( var i = 0 ; i < filterSwitches . length ; i ++ ) {
524
- dom . appendChild ( filterSwitches [ i ] . dom ) ;
528
+ switchesDom . appendChild ( filterSwitches [ i ] . dom ) ;
525
529
}
526
530
531
+ dom . appendChild ( switchesDom ) ;
532
+
527
533
dom . addEventListener ( 'click' , function ( event ) {
528
534
for ( var i = 0 ; i < filterSwitches . length ; i ++ ) {
529
535
if ( event . target . name === filterSwitches [ i ] . name ) {
@@ -538,7 +544,7 @@ window.plugin.commfilter = (function() {
538
544
539
545
$ ( "<style>" )
540
546
. prop ( "type" , "text/css" )
541
- . html ( "#PLUGIN_COMM_FILTER {\n height: 24px;\n display: flex;\n align-items: center;\n padding: 0 0.5ex;\n}\n\n#PLUGIN_COMM_FILTER>.title {\n padding-right: 0.5ex;\n}\n\n#PLUGIN_COMM_FILTER>select {\n margin: 0 1ex;\n}\n\n#PLUGIN_COMM_FILTER>label {\n white-space: nowrap;\n margin-left: 1.2ex;\n}\n\n#PLUGIN_COMM_FILTER>input {\n height: 24px;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni] {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0;\n min-width: 6ex;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni]:focus~label {\n display: none;\n}\n\n#PLUGIN_COMM_FILTER>button {\n padding: 2px;\n min-width: 40px;\n color: #FFCE00;\n border: 1px solid #FFCE00;\n background-color: rgba(8, 48, 78, 0.9);\n text-align: center;\n}\n\n#chat {\n padding-bottom: 24px;\n}\n\n#chatall>.status, #chatfaction>.status, #chatalerts>.status {\n height: 20px;\n text-align: center;\n font-style: italic;\n}\n\n#chatall>table, #chatfaction>table, #chatalerts>table {\n table-layout: auto;\n}\n\n#chatall>table td:nth-child(2),\n#chatfaction>table td:nth-child(2),\n#chatalerts>table td:nth-child(2) {\n width: 15ex;\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chat {\n height: 84px; /* 60px + 24px */\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chatcontrols {\n bottom: 106px; /* 82px + 24px */\n}\n\n/* hack chat.js divider */\n#chatall>table tr.divider,\n#chatfaction>table tr.divider,\n#chatalerts>table tr.divider {\n border-top: solid 1px #bbb;\n}\n\n#chatall>table tr.divider>td,\n#chatfaction>table tr.divider>td,\n#chatalerts>table tr.divider>td {\n padding-top: 3px;\n}\n\n#chatall>table tr.divider summary,\n#chatfaction>table tr.divider summary,\n#chatalerts>table tr.divider summary {\n box-sizing: border-box;\n padding-left: 2ex;\n}\n" )
547
+ . html ( "#PLUGIN_COMM_FILTER {\n display: flex;\n align-items: center;\n padding: 0 0.5ex;\n}\n\n#PLUGIN_COMM_FILTER .title {\n padding-right: 0.5ex;\n flex: none; /* for Android K WebView */\n}\n\n#PLUGIN_COMM_FILTER>select {\n margin: 0 1ex;\n}\n\n#PLUGIN_COMM_FILTER>.switchgroup {\n overflow-x: auto;\n display: inline-flex;\n}\n\n#PLUGIN_COMM_FILTER .switch {\n white-space: nowrap;\n margin-left: 1.2ex;\n flex: none; /* for Android K WebView */\n display: inline-flex;\n align-items: center;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni] {\n flex-grow: 1;\n flex-shrink: 0;\n flex-basis: auto;\n width: 16ex;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni]:focus~.switchgroup {\n display: none;\n}\n\n#PLUGIN_COMM_FILTER>button {\n padding: 2px;\n min-width: 40px;\n color: #FFCE00;\n border: 1px solid #FFCE00;\n background-color: rgba(8, 48, 78, 0.9);\n text-align: center;\n}\n\n#chat {\n padding-bottom: 24px;\n}\n\n#chatall>.status, #chatfaction>.status, #chatalerts>.status {\n height: 20px;\n text-align: center;\n font-style: italic;\n}\n\n#chatall>table, #chatfaction>table, #chatalerts>table {\n table-layout: auto;\n}\n\n#chatall>table td:nth-child(2),\n#chatfaction>table td:nth-child(2),\n#chatalerts>table td:nth-child(2) {\n width: 15ex;\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chat {\n height: 84px; /* 60px + 24px */\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chatcontrols {\n bottom: 106px; /* 82px + 24px */\n}\n\n/* hack chat.js divider */\n#chatall>table tr.divider,\n#chatfaction>table tr.divider,\n#chatalerts>table tr.divider {\n border-top: solid 1px #bbb;\n}\n\n#chatall>table tr.divider>td,\n#chatfaction>table tr.divider>td,\n#chatalerts>table tr.divider>td {\n padding-top: 3px;\n}\n\n#chatall>table tr.divider summary,\n#chatfaction>table tr.divider summary,\n#chatalerts>table tr.divider summary {\n box-sizing: border-box;\n padding-left: 2ex;\n}\n" )
542
548
. appendTo ( "head" ) ;
543
549
}
544
550
0 commit comments