View Single Post
Old 10-11-2012, 03:02 AM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
I've never used greasemonkey, but in normal javascript you'd do something like this:

Code:
var tags=document.getElementsByTagName("H1");
for (var i = 0; i < tags.length; i++) {
if(tags[i].className=="title"){
var thetitle=tags[i].innerHTML; 
	}
}
xelawho is offline   Reply With Quote
Users who have thanked xelawho for this post:
MikeWalters (10-11-2012)