您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
puts pets that are on a course at the top of the page
// ==UserScript== // @name GC - MI training school pet reorganizer // @namespace http://tampermonkey.net/ // @version 0.1 // @description puts pets that are on a course at the top of the page // @author wibreth // @match https://www.grundos.cafe/island/training/?type=status* // @icon https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; /* globals $:false */ GM_addStyle('.threequarters-width {\ display: flex;\ flex-direction: column;\ }'); $('document').ready(() => { let order = 0; // check each pet $('.flex.med-gap.center-items').each(function() { //not on a course if (!$.trim($(this).find('.center.flex-grow').html()).length) return; $(this).css('order', --order); $(this).prev().css('order', --order); }); }); })();