Clean Travel

Cleaner travel screen

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Clean Travel
// @namespace    https://greasyfork.org/en/scripts/386587-clean-travel
// @version      0.3.1
// @description  Cleaner travel screen
// @author       cryosis7 [926640]
// @match        *.torn.com/index.php*
// ==/UserScript==

$(window).load(function() {
    if ($('h4#skip-to-content:contains(Traveling)').length) {
        let forums = $('a:contains(Forums)');
        $(forums).appendTo($('#top-page-links-list'));
        $(forums).addClass('right line-h24');
        $(forums).css('textDecoration', 'none');

        let settings = $('a[href="/preferences.php"]')
        $(settings).appendTo($('#top-page-links-list'));
        $(settings).addClass('right line-h24');
        $(settings).removeClass('top_header_link');
        $(settings).text('Settings');
        $(settings).css('textDecoration', 'none');

        $('[class|="custom-bg"]').css('background-color', 'white');
        $('body').css('background', 'none');
        $('.stage').remove();
        $('[class*="tooltip"]').remove();
        $('[class*="popup"]').remove();
        $('[class*="header"]').remove();
        $('.delimiter-999').eq(0).remove();
    }
});