显示被隐藏的 12306 订票帮手

显示被隐藏的12306订票帮手

// ==UserScript==
// @name         显示被隐藏的 12306 订票帮手
// @namespace    ShowMe12306TicketHelper
// @version      1.3
// @description  显示被隐藏的12306订票帮手
// @author       maidmeow4
// @license GPL-3.0-or-later
// @match        *://kyfw.12306.cn/otn/leftTicket/*
// ==/UserScript==

var drawer = document.getElementById("sear-sel-bd");
var drawerHeight = 40;
drawer.style.height = drawerHeight + 'px';
console.log('Helper: Enlarged drawer to ' + drawerHeight + 'px!');

let collection = document.getElementsByClassName("section clearfix");
for (let i = 0; i < collection.length; i++) {
    collection[i].style.display = "";
}