Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name blog.stanis.ru_userignor
- // @namespace blog.stanis.ru
- // @description Игнорирование пользователей
- // @require http://code.jquery.com/jquery-1.8.1.min.js
- // @version 2
- // ==/UserScript==
- if (window.location.hostname.indexOf('blog.stanis.ru') != -1) {
- $ = window.$;
- // список игнорируемых
- var ignored = ["мольфар", "другой ник", "десятый ник"];
- $('.box').each(function() {
- current_b = $(this).children('.materialheader').children('b');
- current_text = "";
- current_b.children('a').each(function() {
- current_text = $(this).text();
- for (i in ignored) {
- if (current_text == ignored[i]) {
- header_div = $(this).parent('b').parent('.materialheader');
- text_div = header_div.next();
- img_div = text_div.next();
- header_div.css('display', 'none');
- text_div.css('display', 'none');
- img_div.css('display', 'none');
- }
- }
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement