Can't find filter for New posts

Discussion in 'Discussion (AdGuard for Windows)' started by steve1209, Aug 3, 2014.

  1. steve1209

    steve1209 Beta Tester

    Joined:
    Mar 31, 2014
    Messages:
    442
    Evening everyone,

    There was recently a filter posted that would only show English Forums new posts (when clicking on new posts button) and not Russian, I lost the filter and can't find the post can someone help with the user filter again (I'll be glad when all User filters stay).

    Appreciate the help again!!
     
  2. Rian

    Rian Beta Tester

    Joined:
    Jun 6, 2014
    Messages:
    137
    is this the one

    Code:
    forum.adguard.com###cat1
     
  3. steve1209

    steve1209 Beta Tester

    Joined:
    Mar 31, 2014
    Messages:
    442
    Rian,

    Very Sorry for the very slow response that user filter doesn't work for me on English only new posts??
     
  4. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,213
  5. steve1209

    steve1209 Beta Tester

    Joined:
    Mar 31, 2014
    Messages:
    442
    Boo,

    No when I click on the NEW post tabs see here it shows new posts for Russian and English forums, I only want to see new posts for English forum, there was a filter shown for that, not long ago
     
  6. mysteriously

    mysteriously Beta Tester & Translator

    Joined:
    May 4, 2014
    Messages:
    508
    I made the update yesterday:
    http://forum.adguard.com/showthread.php?1605-Adguard-Forum-acting-weird&p=30127&viewfull=1#post30127

    forum.adguard.com###cat1

    Hides only Rusian subforum part at main forums page. To hide russian posts on "new posts" lists I just made filter that block all content with russian letters. Yes I know it's not perfect but I don't know any other way to do it.

    [​IMG]

    You can export your user filters to text file, then add my filters from pastebin to this text file and reimport user filters.
     
    Last edited by a moderator: Aug 6, 2014
  7. steve1209

    steve1209 Beta Tester

    Joined:
    Mar 31, 2014
    Messages:
    442
  8. mysteriously

    mysteriously Beta Tester & Translator

    Joined:
    May 4, 2014
    Messages:
    508
    Like I posted above, export your custom filters to text file, add to this text file filters with russian letters from:
    http://pastebin.com/AHEbRPu6
    and reimport text file
     
    Last edited by a moderator: Aug 7, 2014
  9. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,896
    Interesting question, Steve:)

    Add these 3 rules to your User Filter:
    Code:
    forum.adguard.com#%#var AG_check_russian = function(li) { var forumTitle = li.find('.threadpostedin a[href^="forumdisplay.php"]').attr('title'); if (forumTitle.match(/[А-я]+/)) { li.remove(); } };
    
    Code:
    forum.adguard.com#%#var AG_remove_russian = function() { $('#searchbits>li').each(function() { AG_check_russian($(this)); });};
    
    Code:
    forum.adguard.com#%#window.addEventListener('DOMContentLoaded', function() { AG_remove_russian(); });
    
     
  10. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,213
    I wonder if there's a mod or option within the forum software to allow this as an account setting?
     
  11. steve1209

    steve1209 Beta Tester

    Joined:
    Mar 31, 2014
    Messages:
    442
    Thanks Avatar that works!!
     
  12. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,896
    I think we can add this javascript for all users if English language is selected.