Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CEF post blocker? [PROBLEM SOLVED]
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
BreakinGods
How do I cheat?
Reputation: 17

Joined: 13 Jan 2013
Posts: 0

PostPosted: Sun Apr 24, 2016 6:26 pm    Post subject: CEF post blocker? [PROBLEM SOLVED] This post has 2 review(s) Reply with quote

Does anyone have the link for that. I think it would be a good time for everyone to use it so we don't have to do extra scrolling.

EDIT: Found the code you just need tampermonkey and go to add new script and paste this in:

Code:
// ==UserScript==
// @name         phpBB User Hide (Firefox 3 compatible)
// @include      */viewtopic.php*
// @description  Hide posts of the selected users on any phpBB system. Usage: On topic view [X] appears before every username. Click it to hide the selected user. This version works with Firefox 3. Original author of this script is unknown, so please tell me, if you know.
// @exclude
// ==/UserScript==

(function() {
   // Get stored hidden users from cookie
   var users = [];
   var cookieName = "phpUserHide";
   for (var i = 0; i < document.cookie.split('; ').length; i++) {
      var oneCookie = document.cookie.split('; ')[i].split('=');
      if (oneCookie[0] == cookieName) {
         users = oneCookie[1].split(', ');
         break;
      }
   }

   // Cursor functions
   var curPointer = function(event) {
      event.target.style.cursor = 'pointer';
      event.preventDefault();
   };
   var curDefault = function(event) {
      event.target.style.cursor = 'default';
      event.preventDefault();
   };

   // Add or remove a user from the cookie
   var addRemoveUser = function(event) {
      // Parse current cookie
      for(j = 0; j < document.cookie.split('; ').length; j++ ) {
         var oneCookie = document.cookie.split('; ')[j].split('=');
         if (oneCookie[0] == cookieName) {
            users = oneCookie[1].split(', ');
            break;
         }
      }
      var user = escape(event.target.nextSibling.innerHTML)
      notFound = true;
      for (var j = 0; j < users.length; j++) {
         if (users[j] == user) {
            users.splice(j, 1);
            notFound = false;
         }
      }
      if (notFound)
         users.push(user);
      if (users.length > 0) {
         var date = new Date();
         var days = 365;
         date.setTime(date.getTime() + (days*24*60*60*1000));
         var expires = '; expires=' + date.toGMTString();
         var value = users.join(', ');
         document.cookie = cookieName + '=' + value + expires + '; path=/';
      } else {
         document.cookie = cookieName + '=;expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/';
      }
      window.alert(unescape(user) + ' has been ' + (notFound ? 'added to' : 'removed from')
         + ' your hide list\n'
         + 'You must refresh the page to view the changes.');
      event.preventDefault();
   };
   // Toggle display of user's post
   var togglePost = function(event) {
      var displayState = event.target.getAttribute('displaystate');
      if (displayState == 'none')
         displayState = '';
      else
         displayState = 'none';
      event.target.setAttribute('displaystate', displayState);

      containingRow = event.target.parentNode.parentNode;
      var innerTags = containingRow.getElementsByTagName('*');
      for (var i = 0; i < innerTags.length; i++) {
         var tagClass = innerTags[i].getAttribute('class');
         if (tagClass == 'postbody' || tagClass == 'postsig'
            || tagClass == 'postdetails' || innerTags[i].tagName == 'TABLE')
            innerTags[i].style.display = displayState;
      }
      event.preventDefault();
   };
   // Toggle display of user's quote
   var toggleQuote = function(event) {
      var displayState = event.target.getAttribute('displaystate');
      if (displayState == 'none')
         displayState = 'table-row';
      else
         displayState = 'none';
      event.target.setAttribute('displaystate', displayState);

      // Jump to parent row
      var containingRow = event.target.parentNode.parentNode.parentNode.parentNode.nextSibling;
      // Find containing row
      while (containingRow.nodeType != 1)
         containingRow = containingRow.nextSibling;
      containingRow.style.display = displayState;

      event.preventDefault();
   };

   // Find all the usernames in the page
   var results = document.evaluate("//span[@class='name']/b|//span[@class='name']/strong", document, null,
      XPathResult.ANY_TYPE, null);
   var resultNodes = [];
   var aResult;
   while (aResult = results.iterateNext())
      resultNodes.push(aResult);

   // Loop through every user post on the page
   for (var i in resultNodes) {
      var containingRow = resultNodes[i].parentNode.parentNode.parentNode;
      // Format whitespace
      var user = escape(resultNodes[i].innerHTML);

      // Flag whether the user is in our hide list
      var notFound = true;
      for (var j = 0; j < users.length; j++) {
         if (users[j] == user) {
            notFound = false;
         }
      }

      // Add relevant event handlers to user's name and a toggler node
      var toggler = document.createElement('span');
      toggler.setAttribute('title', "click to add or remove this user from your hide list");
      toggler.appendChild(document.createTextNode('[X] '));
      toggler.style.fontSize = "7pt";
      toggler.addEventListener('mouseover', curPointer, true);
      toggler.addEventListener('mouseout', curDefault, true);
      toggler.addEventListener('click', addRemoveUser, true);

      resultNodes[i].parentNode.insertBefore(toggler, resultNodes[i]);

      // If this user isn't in our hide list, skip to the next user
      if (notFound)
         continue;

      // Find the first element node (td) in the containing row
      var elem = containingRow.firstChild;
      while (elem.nodeType != 1)
         elem = elem.nextSibling;

      // Create a span to control toggling
      var span = document.createElement('span');
      span.appendChild(document.createTextNode('Toggle Display'));
      span.appendChild(document.createElement('br'));
      span.setAttribute('class', 'gensmallbold');
      span.style.textDecoration = 'underline';
      span.setAttribute('displaystate', 'none');
      span.addEventListener('mouseover', curPointer, true);
      span.addEventListener('mouseout', curDefault, true);
      span.addEventListener('click', togglePost, true);

      // Insert the span after the username and before the <br>
      elem.insertBefore(span, elem.firstChild.nextSibling.nextSibling);
      // Insert a <br> after the username and before the span
      elem.insertBefore(document.createElement('br'), elem.firstChild.nextSibling.nextSibling);

      var innerTags = containingRow.getElementsByTagName('*');
      for (var i = 0; i < innerTags.length; i++) {
         var tagClass = innerTags[i].getAttribute('class');
         if (tagClass == 'postbody' || tagClass == 'postsig'
            || tagClass == 'postdetails' || innerTags[i].tagName == 'TABLE')
            innerTags[i].style.display = 'none';
      }
   }

   // Find all the usernames quoted in the page
   var results = document.evaluate("//td[@class='quote']/parent::*/preceding-sibling::*/td/span/b|"
      + "//td[@class='quote']/parent::*/preceding-sibling::*/td/span/strong", document, null,
      XPathResult.ANY_TYPE, null);
   var resultNodes = [];
   var aResult;
   while (aResult = results.iterateNext())
      resultNodes.push(aResult);

   // Loop through every user quote on the page
   for (var i in resultNodes) {
      var containingRow = resultNodes[i].parentNode.parentNode.parentNode.nextSibling;
      while (containingRow.nodeType != 1)
         containingRow = containingRow.nextSibling;

      // Find username
      var usermatch = resultNodes[i].innerHTML.match(/(.*) wrote:$/);
      if (usermatch)
         var user = escape(usermatch[1]);
      else
         continue;

      // Flag whether the user is in our hide list
      var notFound = true;
      for (var j = 0; j < users.length; j++) {
         if (users[j] == user) {
            notFound = false;
         }
      }

      // If this user isn't in our hide list, skip to the next user
      if (notFound)
         continue;

      // Create a span to control toggling
      var span = document.createElement('span');
      span.appendChild(document.createElement('br'));
      span.appendChild(document.createTextNode('Toggle Display'));
      span.setAttribute('class', 'gensmallbold');
      span.style.textDecoration = 'underline';
      span.setAttribute('displaystate', 'none');
      span.addEventListener('mouseover', curPointer, true);
      span.addEventListener('mouseout', curDefault, true);
      span.addEventListener('click', toggleQuote, true);

      resultNodes[i].appendChild(span);
       
      // Hide the quote
      containingRow.style.display = 'none';
   }

})();


Then click the little X in the top left corner of their avi if you want to hide their posts and refresh for it to start working.

_________________
I'm a young producer and rapper from Washington D.C.


Last edited by BreakinGods on Sun Apr 24, 2016 11:37 pm; edited 3 times in total
Back to top
View user's profile Send private message
HitIer
How do I cheat?
Reputation: 22

Joined: 09 Feb 2013
Posts: 0
Location: Location Location Location

PostPosted: Sun Apr 24, 2016 7:04 pm    Post subject: Reply with quote

I think we all need to this now, thanks to that guy

You know who you are

_________________
With self driving cars, CE can work in real life

t328163 wrote:
Your username derives from the fact that this site cannot format special characters lol.


t328163 wrote:

lmfao, on reddit i'd get banned
Back to top
View user's profile Send private message MSN Messenger
HackOtaku
I posted the 500000th topic
Reputation: 81

Joined: 31 May 2007
Posts: 228

PostPosted: Sun Apr 24, 2016 7:42 pm    Post subject: Reply with quote

ThelndianGuy wrote:
I think we all need to this now, thanks to that guy

You know who you are
I know i could do better :c

I would also like this, though.
Back to top
View user's profile Send private message
BreakinGods
How do I cheat?
Reputation: 17

Joined: 13 Jan 2013
Posts: 0

PostPosted: Sun Apr 24, 2016 11:33 pm    Post subject: Reply with quote

I found it and it's still working well although I had some issues at first, but you just got to refresh. The code is up top.
_________________
I'm a young producer and rapper from Washington D.C.
Back to top
View user's profile Send private message
HackOtaku
I posted the 500000th topic
Reputation: 81

Joined: 31 May 2007
Posts: 228

PostPosted: Mon Apr 25, 2016 12:46 am    Post subject: Reply with quote

Thanks for that.
Back to top
View user's profile Send private message
BreakinGods
How do I cheat?
Reputation: 17

Joined: 13 Jan 2013
Posts: 0

PostPosted: Mon Apr 25, 2016 2:50 am    Post subject: Reply with quote

HackOtaku wrote:
Thanks for that.
Np it was kinda hard to find for some reason.
_________________
I'm a young producer and rapper from Washington D.C.
Back to top
View user's profile Send private message
Fafaffy
Cheater
Reputation: 65

Joined: 12 Dec 2007
Posts: 28

PostPosted: Mon Apr 25, 2016 10:31 am    Post subject: Reply with quote

BreakinGods wrote:
HackOtaku wrote:
Thanks for that.
Np it was kinda hard to find for some reason.


Really? How did you end up finding it?

When I went to go find it, I simply did a google search:
Code:
site:cheatengine.org block user script


First link: http://www.cheatengine.org/forum/viewtopic.php?t=552495

The thread links to this website: http://userscripts.org/scripts/show/50036

But it doesn't work, so we simply go to web archive to get it:
http://web.archive.org/web/*/http://userscripts.org/scripts/show/50036


and boom, script: http://web.archive.org/web/20131113235815/http://userscripts.org/scripts/review/50036

_________________
Brillia wrote:
I FUCKING FUCK SEX
Back to top
View user's profile Send private message Send e-mail
AverageAzn247
Grandmaster Cheater
Reputation: 34

Joined: 01 Oct 2007
Posts: 909
Location: Austin,TX with 72 virgins

PostPosted: Mon Apr 25, 2016 11:09 am    Post subject: Reply with quote

thanks and keep it bumped
_________________


Waxxup wrote:
What are Night Elves?
A girl group?
Back to top
View user's profile Send private message MSN Messenger
BreakinGods
How do I cheat?
Reputation: 17

Joined: 13 Jan 2013
Posts: 0

PostPosted: Mon Apr 25, 2016 6:54 pm    Post subject: Reply with quote

blablfy wrote:
BreakinGods wrote:
HackOtaku wrote:
Thanks for that.
Np it was kinda hard to find for some reason.


Really? How did you end up finding it?

When I went to go find it, I simply did a google search:
Code:
site:cheatengine block user script


First link:
I think because I was using the CEF search engine one and was searching for a "post blocker" which is kind of not what it does. Then I started searching toggle display or whatever and eventually found a thread...anyways glad I found it lets make cef great again.
_________________
I'm a young producer and rapper from Washington D.C.
Back to top
View user's profile Send private message
BreakinGods
How do I cheat?
Reputation: 17

Joined: 13 Jan 2013
Posts: 0

PostPosted: Tue Apr 26, 2016 5:27 pm    Post subject: Reply with quote

Just keeping this post up top because it has helped me a lot it should help others.
_________________
I'm a young producer and rapper from Washington D.C.
Back to top
View user's profile Send private message
Deleted User 197371
Guest





PostPosted: Tue Apr 26, 2016 7:44 pm    Post subject: Reply with quote

As Friedrich Nietzsche once said... "God is dead"
Back to top
HackOtaku
I posted the 500000th topic
Reputation: 81

Joined: 31 May 2007
Posts: 228

PostPosted: Tue Apr 26, 2016 8:01 pm    Post subject: Reply with quote

(dib1500) wrote:
As Friedrich Nietzsche once said... "God is dead"
and we killed him.
Back to top
View user's profile Send private message
HitIer
How do I cheat?
Reputation: 22

Joined: 09 Feb 2013
Posts: 0
Location: Location Location Location

PostPosted: Wed Apr 27, 2016 12:36 am    Post subject: Reply with quote

GodOfShitPosting
_________________
With self driving cars, CE can work in real life

t328163 wrote:
Your username derives from the fact that this site cannot format special characters lol.


t328163 wrote:

lmfao, on reddit i'd get banned
Back to top
View user's profile Send private message MSN Messenger
TheIndianGuy
Advanced Cheater
Reputation: 101

Joined: 14 Jan 2007
Posts: 88

PostPosted: Wed Apr 27, 2016 2:43 am    Post subject: Reply with quote

thanks for posting this.
Back to top
View user's profile Send private message
BreakinGods
How do I cheat?
Reputation: 17

Joined: 13 Jan 2013
Posts: 0

PostPosted: Wed Apr 27, 2016 6:20 am    Post subject: Reply with quote

np guys make cef great again
_________________
I'm a young producer and rapper from Washington D.C.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites