您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Makes the people page thread like the old site again.
// ==UserScript== // @name [Katcr.co] People Page Revive // @namespace pxgamer // @version 0.3 // @description Makes the people page thread like the old site again. // @author pxgamer // @include *katcr.co/community/index.php/topic,177* // @require https://code.jquery.com/jquery-3.1.0.min.js // @grant none // ==/UserScript== /*jshint multistr: true */ (function() { 'use strict'; let titles = { lower: '<span style="font-size: 12pt;" class="bbc_size"><strong>Forum Moderators</strong></span>', middle: '<span style="font-size: 12pt;" class="bbc_size"><strong>Super Moderators</strong></span>', upper: '<span style="font-size: 12pt;" class="bbc_size"><strong>Site Administrators</strong></span>' }; let people = { lower: $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(2) > td:nth-child(2)').html(), middle: $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(2) > td:nth-child(21)').html(), upper: $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(2) > td:nth-child(52)').html() }; // Append titles $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(1)').empty(); $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(1)').append('<td class="p1p">'+titles.lower+'</td><td class="p1p">'+titles.middle+'</td><td class="p1p">'+titles.upper+'</td>'); // Append Users $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(2)').empty(); $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(2)').append('<td class="p1p">'+titles.lower+'<br/>'+people.lower+'</td><td class="p1p">'+titles.middle+'<br/>'+people.middle+'</td><td class="p1p">'+titles.upper+'<br/>'+people.upper+'</td>'); $('#msg_964 > div:nth-child(6) > table > tbody > tr:nth-child(1)').empty(); // Theming $('.p1p').css('padding', '2%'); $('.bbc_link').css('border', 'none'); $('#msg_964 > div:nth-child(6) > table > tbody tr').css('background', 'none'); $('#msg_964 > table').css('margin', 'auto'); })();