Monday, October 20, 2014

Kill internet trolls with fire

Well maybe it's not actual fire, but it certainly gives me a warm feeling inside.

Do you frequent any sites where the user comment section is overrun with trolls, plants, and paid shills? Are you sick of their comments reminding you that they remain capable of breathing? Use YARIP to eliminate all their comments from view. Just use Firefox's element inspector (use the right-click menu) to take a peek at the local structure and put together an appropriate XPATH to use in YARIP.

For example, delete entire posts based on a partial name match on reason.com:
//li[child::p/strong[contains(., 'Viagra')]]
Or delete just the post content based on a full name match on zerohedge.com:
//div[child::div/b/a[@href="/users/bangalore-equity-trader"]]/div[@class='comment-content']
Adapt to suit your browsing habits.

No comments:

Post a Comment