Advertisement
Guest User

Untitled

a guest
May 11th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. if (EHH.settings.filterEnabled) {
  2. var filtered = regexes.filters.title.test(title) || tags.some(function(x) { return regexes.filters.tag.test(x.tag); });
  3. var nonEnglish=1;
  4. regexes.highlight.forEach(function(data) {
  5. if (data.type == 'tag') {
  6. tags.forEach(function(tag) {
  7. if(tag.tag.match(/english/i)) {
  8. nonEnglish=0;
  9. }
  10. });
  11. }
  12. });
  13. if (nonEnglish || filtered) return { result: 'filtered' };
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement