<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Platypus code:

&lt;pre style=&quot;overflow: auto; width: 99%;&quot;&gt;// ==UserScript==
// @name            Remove Chipmark Sidebar
// @description     This script takes off the left Chipmark sidebar at &quot;chipmark management&quot;
// @namespace       Platypus
// @include         *chipmark.com/Manage
function do_platypus_script() {
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[1]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[2]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[3]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[4]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
}; // Ends do_platypus_script
window.addEventListener(&quot;load&quot;, function() { do_platypus_script() }, false);
//
//  Mon Dec 19 15:59:37 2005 -- Scott R. Turner
//  Short, uncommented file containing all the code to implement Platypus
//  actions.  Can be &quot;included&quot; into the Platypus script.
//
// 
// 
function walk_down(node, func) {
  if (node.nodeType == 1) {
    if (node.tagName != &quot;IMG&quot;) func(node);
    if (node.childNodes.length != 0)
      for (var i=0; i&lt;node.childNodes.length; i++)
walk_down(node.childNodes.item(i),func);
  }
}
function make_bw(doc, node) {
  walk_down(node,
            function (node) {
      if (node.tagName != 'A') {
  node.bgcolor = &quot;white&quot;;
  node.color = &quot;black&quot;;
  node.style.backgroundColor = &quot;white&quot;;
  node.style.color = &quot;black&quot;;
  node.style.backgroundImage = &quot;&quot;;
      }});
}
function center_it(doc, node) {
  var center_node = doc.createElement (&quot;CENTER&quot;);
  node.parentNode.insertBefore(center_node, node);
  node.parentNode.removeChild(node);  
  center_node.appendChild(node);
  return center_node;
};
function erase_it(doc, node) {
  var offset_height = node.offsetHeight;
  var offset_width = node.offsetWidth;
  var replacement_div = doc.createElement (&quot;DIV&quot;);
  replacement_div.setAttribute('style',
       &quot;height: &quot;+offset_height+&quot;; width: &quot;+offset_width+&quot;;&quot;);
  node.parentNode.insertBefore(replacement_div, node);
  node.style.display = &quot;none&quot;;
  return replacement_div;
};
function smart_remove(doc, node) {
    if (node.parentNode.childNodes.length == 1) {
smart_remove(doc, node.parentNode);
    } else {
remove_it(doc, node);
    };
};
function remove_it(doc, node) {
  if (doc == null || node == null) return;
  if (!node.parentNode) return;
  node.style.display = &quot;none&quot;;
  doc.last_removed_node = node;
};
function script_paste(doc, where, what) {
    var new_node = what.cloneNode(true);
    new_node.style.display = &quot;&quot;;
    where.parentNode.insertBefore(new_node, where);
};
function isolate(doc, node) {
  if (!node.parentNode) return;
  node.parentNode.removeChild(node);
  while (doc.body.childNodes.length &gt; 0) {
    doc.body.removeChild(doc.body.childNodes[0]);
  };
  var replacement_div = doc.createElement (&quot;DIV&quot;);
  replacement_div.setAttribute('style',
       &quot;margin: 0 2%; text-align: left&quot;);
  replacement_div.appendChild(node);
  doc.body.appendChild(replacement_div);
};
function set_style_script(doc, element, new_style) {
    element.setAttribute('style', new_style);
};
function modify_single_url(doc, match_re, replace_string, node) {
    if (node.href) {
node.href = node.href.replace(match_re, replace_string);
    };
};
function do_modify_url_it(doc, node, match_re, replace_string, global_flag) {
    match_re = new RegExp(match_re);
    if (global_flag) {
var allurls = doc.getElementsByTagName('A');
for(var i = 0, url; url = allurls[i]; i++)
  modify_single_url(doc, match_re, replace_string, url);
    } else {
modify_single_url(doc, match_re, replace_string, node);
    };
};
function do_modify_html_it(doc, element, match_re, replace_string) {
    match_re = new RegExp(match_re);
    if (element.innerHTML) {
element.innerHTML = element.innerHTML.replace(match_re, replace_string);
    };
};
function relax(doc, node) {
  walk_down(node, function (node) {
      node.style.width = 'auto';
      node.style.marginLeft = '0pt';
      node.style.marginRight = '0pt';
      if (node.width) node.width = null; });
}
function fix_page_it(doc, node) {
    doc.background = null;
    doc.bgColor = &quot;white&quot;;
    if (doc.style) {
      doc.style.backgroundColor = &quot;white&quot;;
      doc.style.backgroundImage = &quot;none&quot;;
      if (doc.style.color == &quot;white&quot;) {
doc.style.color = &quot;black&quot;;
      };
      if (doc.text == &quot;white&quot;) {
doc.text = &quot;black&quot;;
      };
    };
    doc.body.background = null;
    doc.body.bgColor = &quot;white&quot;;
    if (doc.body.style) {
      doc.body.style.backgroundColor = &quot;white&quot;;
      doc.body.style.backgroundImage = &quot;none&quot;;
      if (doc.body.style.color == &quot;white&quot;) {
doc.body.style.color = &quot;black&quot;;
      };
      if (doc.body.text == &quot;white&quot;) {
doc.body.text = &quot;black&quot;;
      };
    };
};
function insertAfter(newNode, target) {
    var parent = target.parentNode;
    var refChild = target.nextSibling;
    if(refChild != null)
parent.insertBefore(newNode, refChild);
    else
parent.appendChild(newNode);
};
function html_insert_it(doc, element, new_html, before, insert_as_block) {
  var new_element;
  if (insert_as_block) {
    new_element = doc.createElement (&quot;DIV&quot;);
  } else {
    new_element = doc.createElement (&quot;SPAN&quot;);
  };
  new_element.innerHTML = new_html;
  if (before) {
      element.parentNode.insertBefore(new_element, element);
  } else {
      insertAfter(new_element, element);
  };
};
function auto_repair_it(doc, node) {
  var biggest_elem = find_biggest_elem(doc);
  isolate(doc, biggest_elem);
  relax(doc, biggest_elem);
  make_bw(doc, biggest_elem);
  fix_page_it(doc, biggest_elem);
};
function find_biggest_elem(doc) {
  const big_element_limit = 0.25;
  var size_of_doc = doc.documentElement.offsetHeight *
      doc.documentElement.offsetWidth;
  var body = doc.body;
  var size_of_body = body.offsetHeight * body.offsetWidth;
  if (size_of_body &lt; (0.80 * size_of_doc)) {
      size_of_body = size_of_doc;
  };
  var max_size = 0;
  var max_elem = doc;
  var allElems = document.evaluate(&quot;//*&quot;,
 doc.body, null,
 XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
 null);
  for (var i = 0; i &lt; allElems.snapshotLength; i++) {
    var thisElem = allElems.snapshotItem(i);
    var thisElem_size = thisElem.offsetHeight * thisElem.offsetWidth;

    if (thisElem_size &lt; size_of_body &amp;&amp;
thisElem_size &gt; max_size &amp;&amp;
!contains_big_element(thisElem, size_of_body * big_element_limit)) {
      max_size = thisElem_size;
      max_elem = thisElem;
    };
  };
  return max_elem;
};

function contains_big_element(node, limit) {
    if (node.childNodes.length != 0)
for (var i=0; i&lt;node.childNodes.length; i++) {
    var child = node.childNodes.item(i);
    var child_size = child.offsetHeight * child.offsetWidth;
    if (child_size &gt; limit) return true;
};
    return false;
};

function platypus_do(win, func_name, o, other, other2, other3) {
    var func = eval(func_name);
    var doc = null;
    if (func == null) return;
    if (!o) {
Warning(&quot;Platypus couldn't find a page element when executing the command &quot;+
func_name+&quot;.  This usually happens when running a script -- maybe the&quot;+
&quot; web page the script is running on has changed.&quot;);
    };
    doc = win.document;
    func(doc, o, other, other2, other3);
};
//.user.js&lt;/pre&gt;</body>
  <body-html>&lt;p&gt;Platypus code:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;// ==UserScript==
// @name            Remove Chipmark Sidebar
// @description     This script takes off the left Chipmark sidebar at &quot;chipmark management&quot;
// @namespace       Platypus
// @include         *chipmark.com/Manage
function do_platypus_script() {
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[1]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[2]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[3]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]/TABLE[4]/TBODY[1]/TR[2]/TD[2]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
smart_remove(window.document,document.evaluate('/HTML[1]/BODY[1]/CENTER[1]/TABLE[1]/TBODY[1]/TR[1]/TD[1]/TABLE[3]/TBODY[1]/TR[2]/TD[2]/TABLE[2]/TBODY[1]/TR[1]/TD[3]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,null,null,null);
}; // Ends do_platypus_script
window.addEventListener(&quot;load&quot;, function() { do_platypus_script() }, false);
//
//  Mon Dec 19 15:59:37 2005 -- Scott R. Turner
//  Short, uncommented file containing all the code to implement Platypus
//  actions.  Can be &quot;included&quot; into the Platypus script.
//
// 
// 
function walk_down(node, func) {
  if (node.nodeType == 1) {
    if (node.tagName != &quot;IMG&quot;) func(node);
    if (node.childNodes.length != 0)
      for (var i=0; i&amp;lt;node&gt; 0) {
    doc.body.removeChild(doc.body.childNodes[0]);
  };
  var replacement_div = doc.createElement (&quot;DIV&quot;);
  replacement_div.setAttribute('style',
       &quot;margin: 0 2%; text-align: left&quot;);
  replacement_div.appendChild(node);
  doc.body.appendChild(replacement_div);
};
function set_style_script(doc, element, new_style) {
    element.setAttribute('style', new_style);
};
function modify_single_url(doc, match_re, replace_string, node) {
    if (node.href) {
node.href = node.href.replace(match_re, replace_string);
    };
};
function do_modify_url_it(doc, node, match_re, replace_string, global_flag) {
    match_re = new RegExp(match_re);
    if (global_flag) {
var allurls = doc.getElementsByTagName('A');
for(var i = 0, url; url = allurls[i]; i++)
  modify_single_url(doc, match_re, replace_string, url);
    } else {
modify_single_url(doc, match_re, replace_string, node);
    };
};
function do_modify_html_it(doc, element, match_re, replace_string) {
    match_re = new RegExp(match_re);
    if (element.innerHTML) {
element.innerHTML = element.innerHTML.replace(match_re, replace_string);
    };
};
function relax(doc, node) {
  walk_down(node, function (node) {
      node.style.width = 'auto';
      node.style.marginLeft = '0pt';
      node.style.marginRight = '0pt';
      if (node.width) node.width = null; });
}
function fix_page_it(doc, node) {
    doc.background = null;
    doc.bgColor = &quot;white&quot;;
    if (doc.style) {
      doc.style.backgroundColor = &quot;white&quot;;
      doc.style.backgroundImage = &quot;none&quot;;
      if (doc.style.color == &quot;white&quot;) {
doc.style.color = &quot;black&quot;;
      };
      if (doc.text == &quot;white&quot;) {
doc.text = &quot;black&quot;;
      };
    };
    doc.body.background = null;
    doc.body.bgColor = &quot;white&quot;;
    if (doc.body.style) {
      doc.body.style.backgroundColor = &quot;white&quot;;
      doc.body.style.backgroundImage = &quot;none&quot;;
      if (doc.body.style.color == &quot;white&quot;) {
doc.body.style.color = &quot;black&quot;;
      };
      if (doc.body.text == &quot;white&quot;) {
doc.body.text = &quot;black&quot;;
      };
    };
};
function insertAfter(newNode, target) {
    var parent = target.parentNode;
    var refChild = target.nextSibling;
    if(refChild != null)
parent.insertBefore(newNode, refChild);
    else
parent.appendChild(newNode);
};
function html_insert_it(doc, element, new_html, before, insert_as_block) {
  var new_element;
  if (insert_as_block) {
    new_element = doc.createElement (&quot;DIV&quot;);
  } else {
    new_element = doc.createElement (&quot;SPAN&quot;);
  };
  new_element.innerHTML = new_html;
  if (before) {
      element.parentNode.insertBefore(new_element, element);
  } else {
      insertAfter(new_element, element);
  };
};
function auto_repair_it(doc, node) {
  var biggest_elem = find_biggest_elem(doc);
  isolate(doc, biggest_elem);
  relax(doc, biggest_elem);
  make_bw(doc, biggest_elem);
  fix_page_it(doc, biggest_elem);
};
function find_biggest_elem(doc) {
  const big_element_limit = 0.25;
  var size_of_doc = doc.documentElement.offsetHeight *
      doc.documentElement.offsetWidth;
  var body = doc.body;
  var size_of_body = body.offsetHeight * body.offsetWidth;
  if (size_of_body &amp;lt; (0.80 * size_of_doc)) {
      size_of_body = size_of_doc;
  };
  var max_size = 0;
  var max_elem = doc;
  var allElems = document.evaluate(&quot;//*&quot;,
 doc.body, null,
 XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
 null);
  for (var i = 0; i &amp;lt; allElems.snapshotLength; i++) {
    var thisElem = allElems.snapshotItem(i);
    var thisElem_size = thisElem.offsetHeight * thisElem.offsetWidth;

    if (thisElem_size &amp;lt; size_of_body &amp;amp;&amp;amp;
thisElem_size &gt; max_size &amp;amp;&amp;amp;
!contains_big_element(thisElem, size_of_body * big_element_limit)) {
      max_size = thisElem_size;
      max_elem = thisElem;
    };
  };
  return max_elem;
};

function contains_big_element(node, limit) {
    if (node.childNodes.length != 0)
for (var i=0; i&amp;lt;node&gt; limit) return true;
};
    return false;
};

function platypus_do(win, func_name, o, other, other2, other3) {
    var func = eval(func_name);
    var doc = null;
    if (func == null) return;
    if (!o) {
Warning(&quot;Platypus couldn't find a page element when executing the command &quot;+
func_name+&quot;.  This usually happens when running a script -- maybe the&quot;+
&quot; web page the script is running on has changed.&quot;);
    };
    doc = win.document;
    func(doc, o, other, other2, other3);
};
//.user.js&lt;/pre&gt;&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-05-02T09:44:18Z</created-at>
  <forumable-id type="integer">9359</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">46575</id>
  <topic-id type="integer">13810</topic-id>
  <updated-at type="datetime">2008-11-16T23:52:52Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">21222</user-id>
</post>
