| View previous topic :: View next topic |
| Author |
Message |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:05 pm Post subject: I heard there was a way to block full posts by certain peopl |
|
|
How do? _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
| Back to top |
|
 |
HeIios Master Cheater
Reputation: -1
Joined: 06 Oct 2009 Posts: 252
|
|
| Back to top |
|
 |
Anarchy Expert Cheater
Reputation: 29
Joined: 15 Feb 2009 Posts: 104 Location: There.
|
Posted: Sun Aug 08, 2010 5:13 pm Post subject: |
|
|
It was a greasemonkey script.
By Cris, I think. Dunno though. |
|
| Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:14 pm Post subject: |
|
|
kay I'll do some serchin around
for now, bump _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
| Back to top |
|
 |
Hero I'm a spammer
Reputation: 79
Joined: 16 Sep 2006 Posts: 7154
|
Posted: Sun Aug 08, 2010 5:15 pm Post subject: |
|
|
Use grease monkey
| 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';
}
})(); |
After that a x appears near everyones name. It will hide this users posts if clicked. |
|
| Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:19 pm Post subject: |
|
|
| Hero wrote: | Use grease monkey
After that a x appears near everyones name. It will hide this users posts if clicked. |
Thanks bro, but I must be a dumbass because I don't understand how to use scripts unless they're a link.
Moar help? _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
| Back to top |
|
 |
HeIios Master Cheater
Reputation: -1
Joined: 06 Oct 2009 Posts: 252
|
Posted: Sun Aug 08, 2010 5:23 pm Post subject: |
|
|
| BlackAzn wrote: | | Hero wrote: | Use grease monkey
After that a x appears near everyones name. It will hide this users posts if clicked. |
Thanks bro, but I must be a dumbass because I don't understand how to use scripts unless they're a link.
Moar help? |
lol |
|
| Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:24 pm Post subject: |
|
|
| ViraI wrote: | | BlackAzn wrote: | | Hero wrote: | Use grease monkey
After that a x appears near everyones name. It will hide this users posts if clicked. |
Thanks bro, but I must be a dumbass because I don't understand how to use scripts unless they're a link.
Moar help? |
lol |
No, you're not supposed to post yet _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
| Back to top |
|
 |
HeIios Master Cheater
Reputation: -1
Joined: 06 Oct 2009 Posts: 252
|
Posted: Sun Aug 08, 2010 5:27 pm Post subject: |
|
|
| BlackAzn wrote: | | ViraI wrote: | | BlackAzn wrote: | | Hero wrote: | Use grease monkey
After that a x appears near everyones name. It will hide this users posts if clicked. |
Thanks bro, but I must be a dumbass because I don't understand how to use scripts unless they're a link.
Moar help? |
lol |
No, you're not supposed to post yet |
Ok? O_o |
|
| Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:46 pm Post subject: |
|
|
:I _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
| Back to top |
|
 |
Anarchy Expert Cheater
Reputation: 29
Joined: 15 Feb 2009 Posts: 104 Location: There.
|
Posted: Sun Aug 08, 2010 5:47 pm Post subject: |
|
|
| He posted the script already o_o. |
|
| Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:48 pm Post subject: |
|
|
nevermind _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
Last edited by Nirojan on Sun Aug 08, 2010 5:51 pm; edited 1 time in total |
|
| Back to top |
|
 |
Loganator Master Cheater
Reputation: 4
Joined: 29 Oct 2008 Posts: 472
|
Posted: Sun Aug 08, 2010 5:49 pm Post subject: |
|
|
| Durrrrrr. |
|
| Back to top |
|
 |
Nirojan How do I cheat?
Reputation: 108
Joined: 16 Sep 2008 Posts: 0 Location: seshville
|
Posted: Sun Aug 08, 2010 5:50 pm Post subject: |
|
|
What happens if I block someone cool like loganator and I can't un-block him? (not that I did) _________________
| Quote: | | yo i b 22 tryna make it in dis rap game but da steetz dont got luv for no wun na mean so im out hea tryna holla at da fams on dis innernet shit u no way i sayin |
|
|
| Back to top |
|
 |
Loganator Master Cheater
Reputation: 4
Joined: 29 Oct 2008 Posts: 472
|
Posted: Sun Aug 08, 2010 5:54 pm Post subject: |
|
|
| Then you will die due to the lack of exposure to awesomeness. |
|
| Back to top |
|
 |
|