Skip to content

Instantly share code, notes, and snippets.

@flashingpumpkin
Created January 24, 2012 13:48
Show Gist options
  • Select an option

  • Save flashingpumpkin/1670245 to your computer and use it in GitHub Desktop.

Select an option

Save flashingpumpkin/1670245 to your computer and use it in GitHub Desktop.
// @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