Pukiwiki Remove Redundency

Pukiwiki からいらない項目を消す

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Pukiwiki Remove Redundency
// @description  Pukiwiki からいらない項目を消す
// @match        https://www.icd.cs.tut.ac.jp/pukiwiki/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version 0.0.1.20190402092213
// @namespace https://greasyfork.org/users/167332
// ==/UserScript==

(function() {
    'use strict';
    var indexs = [2, 4, 6, 7, 8, 10, 11]
    var navi = $("#navigator>a");

    for ( var i = 0; i < indexs.length; i++){
        navi.eq(indexs[i]).remove();
    }

    var menu = $("#menubar>p>a");
    indexs = [3, 7, 8, 12, 13, 18, 19, 20, 21]

    for ( i = 0; i < indexs.length; i++){
        menu.eq(indexs[i]).remove();
    }
})();