Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

xStripper

Lets you strip down any page to the bare essentials just by adding an XPath to the end of the URL. Great with LookItUp

Simply add #xpath= then the appropriate path to the end of the URL and only things that match the path will be shown.

I have adapted the xpath to accept CSS syntax for the selection of classes and IDs.

It works great with LookItUp

for example:
Google definehttp://www.google.com/search?lookitup&q=define:[words]&xpath=//body/ul
or
Free Dictionaryhttp://www.thefreedictionary.com/dict.asp?lookitup&Word=[words]#xpath=#MainTxt
or (thanks Bjørn)
Google Imageshttp://images.google.com/images?svnum=10&q=[words]&xpath=//a[img] If you like this script fell free to donate.






1 point
login to vote
isuru user
Posted Feb 20, 2008

Awesome script. Can you help me? I've used Xpath Checker on a site to get this value:
id('ajaxResults')/div/table

How would I go about adding this to the URL with xpath?

1 point
login to vote
isuru user
Posted Feb 20, 2008

Awesome script. Can you help me? I've used Xpath Checker on a site to get this value:
id('ajaxResults')/div/table

How would I go about adding this to the URL with xpath?

1 point
login to vote
dschoon scriptwright
Posted May 12, 2007

Amazing script--I totally agree with Zur. Very clever.

You may not get a thousand downloads, but you're likely to enable a thousand new scripts. :)

1 point
login to vote
alien_scum script's author
Posted Apr 15, 2007

Bjørn, go for it, I like the idea of adding CSS, and javascript as well. Keep up the good work dude!

1 point
login to vote
Bjørn Rosell scriptwright
Posted Apr 15, 2007

Its a great idea to send stripping instructions in url. And its clever to use xpath to select nodes, because the syntax is extremely compact. I would like to implement it in LookItUp. May I reuse your code?

I'm extending the idea, so its also possible to send a xpath that selects nodes that should be removed. And its also possible to send css to be applied, and even javascript to be evaluated. Its quite useful to be able to mix several techniques.

Btw, here is an example of google images:
http://images.google.com/images?svnum=10&hl=en&...]

1 point
login to vote
Lior Zur scriptwright
Posted Apr 8, 2007

That's an extremely clever script.

You could comment on this script if you were logged in.