Greasy Fork

来自缓存

Greasy Fork is available in English.

巴哈姆特之勇造介面固定每頁筆數40

都9102年了怎麼還會有人想用每頁8筆?

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         巴哈姆特之勇造介面固定每頁筆數40
// @description  都9102年了怎麼還會有人想用每頁8筆?
// @namespace    nathan60107
// @version      1.3
// @author       nathan60107(貝果)
// @homepage     https://home.gamer.com.tw/homeindex.php?owner=nathan60107
// @include      https://avatar1.gamer.com.tw/shop.php*
// @include      https://avatar1.gamer.com.tw/wardrobe.php*
// @include      https://avatar1.gamer.com.tw/store_shop.php*
// @include      https://avatar1.gamer.com.tw/search.php*
// @noframes
// ==/UserScript==

function change(){
    if(document.getElementsByClassName("AR-array")[0]==undefined){
        setTimeout(function(){change();}, 2000);
    }else{
        var AR = document.getElementsByClassName("AR-array");
        if(location.toString().match(`https://avatar1.gamer.com.tw/shop.php.*`) ||
           location.toString().match(`https://avatar1.gamer.com.tw/store_shop.php*`)){
            AR[0].children[4].children[0].onclick();
        }else if(location.toString().match(`https://avatar1.gamer.com.tw/wardrobe.php.*`)){
            AR[0].children[3].onclick();
        }else if(location.toString().match(`https://avatar1.gamer.com.tw/search.php.*`)){
            AR[0].children[4].onclick();
        }
    }
}

(function() {
    'use strict';
    change();
})();