Advertisement
Guest User

Untitled

a guest
Feb 15th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        blog.stanis.ru_userignor
  3. // @namespace   blog.stanis.ru
  4. // @description Игнорирование пользователей
  5. // @require     http://code.jquery.com/jquery-1.8.1.min.js
  6. // @version     2
  7. // ==/UserScript==
  8.  
  9. if (window.location.hostname.indexOf('blog.stanis.ru') != -1) {
  10.   $ = window.$;
  11.   // список игнорируемых
  12.   var ignored = ["мольфар", "другой ник", "десятый ник"];
  13.   $('.box').each(function() {
  14.     current_b = $(this).children('.materialheader').children('b');
  15.     current_text = "";
  16.     current_b.children('a').each(function() {
  17.       current_text = $(this).text();
  18.       for (i in ignored) {
  19.     if (current_text == ignored[i]) {
  20.       header_div = $(this).parent('b').parent('.materialheader');
  21.       text_div = header_div.next();
  22.       img_div = text_div.next();
  23.       header_div.css('display', 'none');
  24.       text_div.css('display', 'none');
  25.       img_div.css('display', 'none');
  26.     }
  27.       }
  28.     });
  29.   });
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement