[wp-hackers] Possible to remove elements of 2.5 admin?

Jeremy Visser jeremy.visser at gmail.com
Sun May 11 04:40:26 GMT 2008


On Sat, 2008-05-10 at 12:55 -0400, Jeremy Clarke wrote:
> So, is there some other way to remove the categories box (and the
> other default boxes)?

Would you be comfortable doing it in JavaScript?

        function removeContent(id) {
        
          var node =
            document.getElementById(id);
        
          if (node) {
            node.parentNode.removeChild(node);
            node = null;
          }
        
        }

Credit goes to Paul Fenwick, who showed this JS example in a lightning
talk ("Fixing the web") at linux.conf.au this year.

http://www.youtube.com/watch?v=8hghpuxCHTc

-- 
Jeremy Visser                                 http://jeremy.visser.name/

()                           ascii ribbon campaign — against HTML e-mail
/\                                               http://asciiribbon.org/



More information about the wp-hackers mailing list