RedhorseMu Filter

Edit UI ReshorseMu

目前為 2016-01-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name         RedhorseMu Filter
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Edit UI ReshorseMu
// @author       Paul Nguyen
// @grant        none
// @require         http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @include        /^http?://m\.redhorsemu\.com/index\.php\?op=user$/

// ==/UserScript==

$('body > table > tbody > tr:first').empty();
$('body > table').css("width","auto");
$('body').css("background-image","none");
$('body > table > tbody > tr > td > table:first > tbody > tr > th ')[0].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th ')[0].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th ')[0].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th ')[1].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th ')[1].remove();
$('body > table > tbody > tr > td > table:first ').css("background-image","none");
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr')[0].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr')[1].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr')[1].remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> h2').remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> p').remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> table:last').remove();
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table').css("height","auto");
$('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> br').remove();
$('body > table > tbody > tr:nth-child(2) > td > table > tbody > tr > th > table > tbody > tr > th > table:nth-child(2) > tbody > tr > td > div > table:nth-child(2)').remove();
$('body > table > tbody > tr:nth-child(2) > td > table > tbody > tr > th > table > tbody > tr > th > table:nth-child(2) > tbody > tr > td > div > table > tbody > tr:nth-child(2)').remove();
$('body > table > tbody > tr:nth-child(2) > td > table > tbody > tr > th > table > tbody > tr > th > table:nth-child(2) > tbody > tr > td > div > table > tbody > tr:nth-child(2)').remove();
$('body > table > tbody > tr:nth-child(2) > td > table > tbody > tr > th > table > tbody > tr > th > table:nth-child(2) > tbody > tr > td > div > table > tbody > tr:nth-child(2)').remove();
$('body > table > tbody > tr:nth-child(2) > td > table > tbody > tr > th > table > tbody > tr > th > table:nth-child(2) > tbody > tr > td > div > table > tbody > tr:nth-child(2)').remove();
$(document).ready(function ()
{
    var level = $('#table-1 > tbody:nth-child(2) > tr > td:nth-child(4) > font').html();
    var status = $('#table-1 > tbody:nth-child(2) > tr > td:nth-child(2) > img').attr( "src" );
    if(status = './images/Online.gif')
        status = 'On';
    else
        status = 'Off';
    document.title = level + '-' + status;
    
});