Reddit parent comment

By lazyttrick Last update Jun 23, 2009 — Installed 3,896 times.

Please update!

in
Subscribe to Please update! 5 posts, 3 voices



Augapfel User

Hey, please update this script so it works with reddit again! I'm really looking forward to that.

 
lazyttrick Script's Author

I'm trying, the new changes at the html are really non GM friendly.

 
Augapfel User

Ah, alright! Hope it works out fine.

 
pennig User

I've figured out the problem. Reddit changed the HTML all around, so there was no canonical way to reach the parent link. Instead, I'm finding all links with class 'bylink' and whose href is an anchor.

Then it was just a matter of crafting a new XPath query to find the entry itself.

Because I can't update the source code for this script myself, I pasted it here:

http://pastie.org/436893

 
lazyttrick Script's Author

wow! I was just working on this and when I came to upload I saw your message of 2 hours ago, so I modified a little... nice

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel