cfinke / comment-snob Goto Github PK
View Code? Open in Web Editor NEWComment Snob is a browser extension that filters out undesirable comments from comment threads on the Web.
License: GNU General Public License v2.0
Comment Snob is a browser extension that filters out undesirable comments from comment threads on the Web.
License: GNU General Public License v2.0
I am trying to set up a filter for GomTV.net it works fine when the page first loads. However when the "View More Comments" button (found at the bottom of the page) is pressed none of the new comments are filtered. As you can see I have the dynamic option set to true, but I have tried with it set to false.
Another likely related issue is that if you click the "hide comments" link then click to show the comments again they will no longer be filtered.
Here is a sample page: http://www.gomtv.net/2011gslsponsors4/vod/65741
And the filter I am using:
{ "id":"gomtvnet@hamradio", "label":"GomTV.net", "url":"^http://www.gomtv\\.net/", "allCommentsSelector":"#reply", "commentContainerSelector":"#gomChat li", "commentTextSelector":".status-body", "commentHideSelector":"> *", "statusPlacement":"before", "statusElementTag":"div", "statusElementAttributes":{ "class":"status-content" }, "ajaxInitiatorSelector":".comment_control, .comment_control a, #btnMore, a.expand_list", "dynamic":true }
Hey Chris,
I am trying to get this extension working with the comments at http://www.cavstheblog.com/?p=28611.
Right now I am using the following custom rule (which looking at the site source I think should work)
{
"id": "cavstheblog",
"label": "cavstheblog.com",
"url": "cavstheblog\\.com",
"allCommentsSelector": ".commentlist",
"commentContainerSelector": ".comment"
}
However I am getting the following error
Error in event handler for extension.onRequest: Cannot read property 'html' of undefined
Stack trace: TypeError: Cannot read property 'html' of undefined
at createPlaceholder (chrome-extension://gfbnmebccmipejnnlcaenkhfhniaielg/content.js:303:4)
at HTMLLIElement.<anonymous> (chrome-extension://gfbnmebccmipejnnlcaenkhfhniaielg/content.js:254:31)
at Function.e.extend.each (chrome-extension://gfbnmebccmipejnnlcaenkhfhniaielg/jquery-1.7.2.min.js:2:11776)
at e.fn.e.each (chrome-extension://gfbnmebccmipejnnlcaenkhfhniaielg/jquery-1.7.2.min.js:2:8304)
at filterComments (chrome-extension://gfbnmebccmipejnnlcaenkhfhniaielg/content.js:69:54)
at chrome-extension://gfbnmebccmipejnnlcaenkhfhniaielg/content.js:29:4
at EventImpl.dispatchToListener (extensions::event_bindings:397:22)
at Event.publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:93:26)
at EventImpl.dispatch_ (extensions::event_bindings:379:35)
at EventImpl.dispatch (extensions::event_bindings:403:17)
I am not sure what the problem is. Does comment snob still work? I see it has not been updated in a while. Or am I doing something wrong with my rule.
Thanks for your help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.