Billy Mission Mover

Moves those pesky buttons to an easy to click, top center location

  1. // ==UserScript==
  2. // @name Billy Mission Mover
  3. // @namespace Supa Epic - using Platypus
  4. // @description Moves those pesky buttons to an easy to click, top center location
  5. // @version 1.2
  6. // @history 1.2 New domain - animecubedgaming.com - Channel28
  7. // @history 1.1 Now https compatible (Updated by Channel28)
  8. // @include http*://*animecubed.com/billy/bvs/missions/mission*
  9. // @include http*://*animecubedgaming.com/billy/bvs/missions/mission*
  10. // @grant none
  11. // ==/UserScript==
  12. function do_platypus_script() {
  13. var getMissionTables = document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]/TABLE',document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
  14. var properTable = getMissionTables.snapshotLength;
  15. smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]/TABLE["properTable"]/TBODY[1]/TR[1]/TD[1]/FORM[1]/A[1]/IMG[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
  16. script_paste(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]/TABLE["properTable"]/TBODY[1]/TR[1]/TD[1]/FORM[1]/A[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null);
  17. smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]/TABLE["properTable"]/TBODY[1]/TR[1]/TD[1]/FORM[2]/A[1]/IMG[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
  18. script_paste(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[1]/TBODY[1]/TR[2]/TD[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[3]/TD[3]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/CENTER[1]/TABLE["properTable"]/TBODY[1]/TR[1]/TD[2]/FORM[1]/A[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null);
  19. }; // Ends do_platypus_script
  20. window.addEventListener("load", function() { do_platypus_script() }, false);
  21. var gplatypusBundle = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
  22. var mystrings = gplatypusBundle.createBundle("chrome://platypus/locale/platypusCore.properties");
  23. var platypusplatypuscouldntfi1 = mystrings.GetStringFromName("platypusplatypuscouldntfi1");
  24. var platypusthisusuallyhappens = mystrings.GetStringFromName("platypusthisusuallyhappens");
  25.  
  26. //
  27. // Mon Dec 19 15:59:37 2005 -- Scott R. Turner
  28. // Short, uncommented file containing all the code to implement Platypus
  29. // actions. Can be "included" into the Platypus script.
  30. //
  31. //
  32. //
  33. function walk_down(node, func) {
  34. if (node.nodeType == 1) {
  35. if (node.tagName != "IMG") func(node);
  36. if (node.childNodes.length != 0)
  37. for (var i=0; i<node.childNodes.length; i++)
  38. walk_down(node.childNodes.item(i),func);
  39. }
  40. }
  41. function smart_remove(doc, node) {
  42. if (node.parentNode.childNodes.length == 1) {
  43. smart_remove(doc, node.parentNode);
  44. } else {
  45. remove_it(doc, node);
  46. };
  47. };
  48. function remove_it(doc, node) {
  49. if (doc == null || node == null) return;
  50. if (!node.parentNode) return;
  51. node.style.display = "none";
  52. doc.last_removed_node = node;
  53. };
  54. function script_paste(doc, where, what) {
  55. var new_node = what.cloneNode(true);
  56. new_node.style.display = "";
  57. where.parentNode.insertBefore(new_node, where);
  58. };
  59. function platypus_do(win, func_name, o, other, other2, other3) {
  60. var func = eval(func_name);
  61. var doc = null;
  62. if (func == null) return;
  63. if (!o) {
  64. Warning(platypusplatypuscouldntfi1+
  65. func_name+platypusthisusuallyhappens);
  66. };
  67. doc = win.document;
  68. func(doc, o, other, other2, other3);
  69. };
  70.  
  71. //.user.js

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址