Advanced Element Grabber ($g)

By JoeSimmons Last update Nov 17, 2009 — Installed 15,061 times. Daily Installs: 127, 115, 120, 88, 110, 120, 131, 147, 143, 135, 165, 116, 153, 148, 167, 135, 154, 133, 154, 142, 164, 183, 129, 142, 167, 151, 181, 164, 169, 606, 1054, 1149
Script Summary:
Advanced Element Grabber by JoeSimmons. Supports ID, Class, and XPath (full with types) in one query. Supports multiple id/class grabs in one query (split by spaces), and the ability to remove all nodes regardless of type
Version: 1.0.6
Copyright: JoeSimmons
License: http://creativecommons.org/licenses/by-nc-nd/3.0/us/

Script homepage

This script has no discussions.

start the discussion

This script has no reviews.

Google Homepage/Searchpage Syntax Examples

$g("#gbar"); // Grab the links bar
$g("id('gbar')"); // Grab the links bar
$g("//*[@id='gbar']"); // Grab the links bar
$g("//a | //cite" , {del:true}); // Deletes all links
//alert('Head element text:\n'+$g("//head", {type:2})); // Alerts the text of the head element
//alert('Number of span elements: '+$g("count(//span)", {type:1})); // Alerts the number of span elements
$g(".gac_m .gl .s .r #ghead #user #footer", {del:true}); // Removes a bunch of stuff on a search page