Greasy Fork

kocmapper

tester

目前为 2025-04-26 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.cloud/scripts/534027/1578001/kocmapper.js

Tabs.TabDemo = {
    tabOrder: 8001,
    tabLabel: 'triplej',
    tabColor: 'blue',
    myDiv: null,
    Options: {
        Counter: 0,
    },

    init(div) {
        this.myDiv = div;
        
        if (!Options.TabDemo) {
            Options.TabDemo = {...this.Options};
        } else {
            Options.TabDemo = {
                ...this.Options,
                ...Options.TabDemo
            };
        }
    },

    show() {
        const url = 'https://www.abc.net.au/triplej/live/triplej';
        this.myDiv.innerHTML = url;
        
        document.getElementById('pbpdemoreset')
            ?.addEventListener('click', this.ResetTimer.bind(this));
    }
    // ... rest of the methods
};