RedhorseMu Filter

Edit UI ReshorseMu

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

  1. // ==UserScript==
  2. // @name RedhorseMu Filter
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Edit UI ReshorseMu
  6. // @author Paul Nguyen
  7. // @grant none
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
  9. // @include /^http?://m\.redhorsemu\.com/index\.php\?op=user$/
  10.  
  11. // ==/UserScript==
  12.  
  13. $('body > table > tbody > tr:first').empty();
  14. $('body > table').css("width","auto");
  15. $('body').css("background-image","none");
  16. $('body > table > tbody > tr > td > table:first > tbody > tr > th ')[0].remove();
  17. $('body > table > tbody > tr > td > table:first > tbody > tr > th ')[0].remove();
  18. $('body > table > tbody > tr > td > table:first > tbody > tr > th ')[0].remove();
  19. $('body > table > tbody > tr > td > table:first > tbody > tr > th ')[1].remove();
  20. $('body > table > tbody > tr > td > table:first > tbody > tr > th ')[1].remove();
  21. $('body > table > tbody > tr > td > table:first ').css("background-image","none");
  22. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr')[0].remove();
  23. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr')[1].remove();
  24. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr')[1].remove();
  25. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> h2').remove();
  26. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> p').remove();
  27. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> table:last').remove();
  28. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table').css("height","auto");
  29. $('body > table > tbody > tr > td > table:first > tbody > tr > th > table > tbody > tr >th> br').remove();
  30. $('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();
  31. $('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();
  32. $('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();
  33. $('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();
  34. $('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();
  35. $(document).ready(function ()
  36. {
  37. var level = $('#table-1 > tbody:nth-child(2) > tr > td:nth-child(4) > font').html();
  38. var status = $('#table-1 > tbody:nth-child(2) > tr > td:nth-child(2) > img').attr( "src" );
  39. if(status = './images/Online.gif')
  40. status = 'On';
  41. else
  42. status = 'Off';
  43. document.title = level + ' - ' + status;
  44. });