Hi,

I took a quick look at reddit.js and put a fix together.. I don't have
time to test it properly, but it seems to work for me. 

If anyone could test it i'd be thankful.

Thanks,
Tom

diff --git a/modules/page-modes/reddit.js b/modules/page-modes/reddit.js
index e299629..1cd0e98 100644
--- a/modules/page-modes/reddit.js
+++ b/modules/page-modes/reddit.js
@@ -59,10 +59,9 @@ function reddit_mode_setup(buffer) {
     // Get all divs that have a id that starts with "thingrow"
     var links = siteTable.getElementsByTagName("div");
     links = Array.filter(links, function (element) {
-        var start = element.id.substr(0, 12);
-        if (start === "thingrow_t3_") {
-
-            element.articleId  = element.id.substr(12, element.id.length-12);
+        var start = element.className.substr(0, 12);
+        if (start === "thing id-t3_") {
+            element.articleId  = element.className.substr(12, 5);
             element.highlighted = false;
             if(element.style.backgroundColor == "")
                 element.originalBackgroundColor = "transparent";

_______________________________________________
Conkeror mailing list
Conkeror@mozdev.org
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to