Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Fix Slashdot Trolls
- // @description Fixes what the devs won't
- // @author Kielistic
- // @include http://*.slashdot.org/*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
- // @grant none.
- // ==/UserScript==
- $(document).ready(function()
- {
- $("li.comment").each(function()
- {
- if ($(this).children(".cw").find("div.commentBody p").length > 10)
- {
- var text = $(this).children(".cw").find("div.commentBody").text();
- if (text.indexOf("CUSTOM HOSTS FILES") >= 0
- || text.indexOf("'Acceptable Ads'")>=0
- || text.indexOf("Alexander Peter Kowalski") >= 0)
- {
- $(this).children(".cw").find("div.commentBody").html("I'm an ineffective troll.");
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement