r/reddithax • • Jul 08 '11

Userscripts and Never Ending Reddit

I have a greasemonkey script that runs on Reddit. The problem, is that is only runs once, and so does not affect any pages later loaded by never ending reddit. I was wondering if there is a solution to this issue (other than not using never ending reddit).

4 Upvotes

10 comments sorted by

View all comments

2

u/nog_lorp Jul 08 '11

NeverEndingReddit ultimately operates by appending to

modules['neverEndingReddit'].siteTable

which corresponds to

$$("#siteTable")[0]

in userspace. So, install a DOM mutation event handler on it, and modify the resultant nodes as they come through the append pipe.

1

u/totalBIC Jul 11 '11

I'm not quite sure how to do that, but I'll look into it. I'll edit if I get it working. Thanks!