Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $(".post").each(function() {
- var d = new Date();
- var hora = d.getHours();
- if (hora >= 7 && hora <= 22) {
- console.log(A funcionar Horario atual: ' horario atual');
- if (_userdata.user_level == 2 || _userdata.user_level == 1) {
- return;
- }
- if ($('.pathname-box:contains(Tarefas), .pathname-box:contains(Redações)').length > 0) {
- var username = _userdata.username;
- if ($(this).has('.staff').length) {
- return;
- }
- if ($(this).html().indexOf(username) <= 1) {
- $(this).remove();
- }
- if ($(this).html().indexOf(username) >= 1) {
- $(this).remove();
- }
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement