diff --git a/html/mainPage/index.html b/html/mainPage/index.html index fc91942..08a6465 100644 --- a/html/mainPage/index.html +++ b/html/mainPage/index.html @@ -62,29 +62,31 @@

Packet

Filtering

Tick the box to show packets - - - - - - - - +
+ + + + + + + + +


diff --git a/html/mainPage/js/defaults.json b/html/mainPage/js/defaults.json index 832d96a..abc5e9a 100644 --- a/html/mainPage/js/defaults.json +++ b/html/mainPage/js/defaults.json @@ -3,12 +3,14 @@ "hiddenPackets": { "serverbound": ["move_player", "player_action", "level_sound_event"], "clientbound": ["level_chunk", "update_block", "network_chunk_publisher_update", "set_entity_motion", "move_entity_absolute", "set_entity_data", "level_sound_event"] - } + }, + "usePresets": false }, "^java-node-minecraft-protocol-.*$": { "hiddenPackets": { "serverbound": ["position", "position_look", "look", "keep_alive", "entity_action"], "clientbound": ["keep_alive", "update_time", "rel_entity_move", "entity_teleport", "map_chunk", "update_light", "update_view_position", "entity_metadata", "entity_update_attributes", "unload_chunk", "entity_velocity", "entity_move_look", "entity_head_rotation"] - } + }, + "usePresets": true } } \ No newline at end of file diff --git a/html/mainPage/js/main.js b/html/mainPage/js/main.js index 46f0f3d..2e317bd 100644 --- a/html/mainPage/js/main.js +++ b/html/mainPage/js/main.js @@ -144,6 +144,10 @@ function findDefault(setting) { } } +if (!findDefault('usePresets')) { + document.getElementById('presets').style.display = 'none' +} + sharedVars.hiddenPackets = getVersionSpecificVar('hiddenPackets', findDefault('hiddenPackets')) if (!sharedVars.proxyCapabilities.scriptingSupport) { diff --git a/html/mainPage/style.css b/html/mainPage/style.css index da8ed54..cb400ed 100644 --- a/html/mainPage/style.css +++ b/html/mainPage/style.css @@ -147,15 +147,6 @@ div#Scripting .CodeMirror.CodeMirror { background: rgb(36, 36, 36); } - - - - - - - - - /* Style the tab */ .tab { overflow: hidden; @@ -257,4 +248,8 @@ div.error { .packet.selected { background: rgba(64, 127, 255, 0.15); +} + +#presets { + display: contents; } \ No newline at end of file