Advertisement
Guest User

Untitled

a guest
Oct 15th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function() {
  2.     $(".post").each(function() {
  3.         var d = new Date();
  4.         var hora = d.getHours();
  5.         if (hora >= 7 && hora <= 22) {
  6.             console.log(A funcionar Horario atual: ' horario atual');
  7.             if (_userdata.user_level == 2 || _userdata.user_level == 1) {
  8.                 return;
  9.             }
  10.             if ($('.pathname-box:contains(Tarefas), .pathname-box:contains(Redações)').length > 0) {
  11.                 var username = _userdata.username;
  12.                 if ($(this).has('.staff').length) {
  13.                     return;
  14.                 }
  15.                 if ($(this).html().indexOf(username) <= 1) {
  16.                     $(this).remove();
  17.                 }
  18.                 if ($(this).html().indexOf(username) >= 1) {
  19.                     $(this).remove();
  20.                 }
  21.             }
  22.         }
  23.     });
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement