Created
January 24, 2012 13:48
-
-
Save flashingpumpkin/1670245 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @name Gumtree location folder | |
| // @description Unfold the location navigation on gumtree | |
| // @match http://www.gumtree.com/* | |
| // @run-at document-start | |
| (function() { | |
| var css, head, node; | |
| css = "#location-tree { display: block !important; } .expandable-tree {visibility: visible !important;}"; | |
| try { | |
| head = document.getElementsByTagName("head")[0]; | |
| node = document.createElement("style"); | |
| node.type = "text/css"; | |
| node.appendChild(document.createTextNode(css)); | |
| head.appendChild(node); | |
| } catch (err) {} | |
| try{ | |
| $('#location-tree').show(); | |
| $('.expandable-tree').show(); | |
| $('.expandable-tree').css('visibility', 'visible'); | |
| } catch (err) {} | |
| }).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment