Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name NoClownNoMore
- // @namespace bitcointalk.org
- // @description Remove giorgiotheclown user entries
- // @include https://bitcointalk.org/*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- // @version 1
- // @grant none
- // ==/UserScript==
- // add names of users to remove
- var rgtc_remove_these_users = [
- 'giorgiotheclown'
- ];
- // set to true to completely remove and not add
- // a new row informing that user was removed
- var rgtc_remove = false;
- // search for links containing defined name and replace/remove
- $('td.poster_info b a').each(function() {
- var me = $(this);
- var sName = me.html();
- for (var n in rgtc_remove_these_users) {
- if (sName == rgtc_remove_these_users[n]) {
- if (rgtc_remove == true) {
- me.parents('table').parents('table').parents('tr').remove();
- } else {
- var replaceWith = $('<tr><td colspan="4" style="padding:5px; background-color:#efefef; color:#333; border:1px solid #ADADAD; border-bottom-width:0;">User removed: '+sName+'</td></tr>');
- me.parents('table').parents('table').parents('tr').replaceWith(replaceWith);
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement