Quantcast

Maximum PC

It is currently Fri Nov 28, 2014 1:55 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: How to Customize User Comments on MaximumPC’s Website
PostPosted: Mon Feb 10, 2014 11:33 am 
8086
8086

Joined: Thu Oct 23, 2008 1:49 pm
Posts: 6
A few years ago, I wrote a little userscript that automatically removes trolls from the comments to articles posted on the main page of maximumpc.com. The script is now on Userscripts.org, and I’ve tweaked it so that people with no programming experience can easily modify the script to make maximumpc.com a more pleasant place to visit.

For anyone unfamiliar with userscripts, they require a browser productivity extension for playback. Firefox uses the Greasemonkey extension:

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

Chrome uses the Tampermonkey extension:

https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

Edit: Changed the script hosting site from userscripts.org to http://www.greasyfork.org. To install the script, go to the the following link, click the Install button on the page and wait for the installer permissions dialog to appear:

https://greasyfork.org/scripts/48


Last edited by RandomInt on Sun Feb 23, 2014 5:20 am, edited 1 time in total.

Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Thu Feb 20, 2014 8:52 am 
8086
8086

Joined: Thu Oct 23, 2008 1:49 pm
Posts: 6
Uploaded version 1.0.2. Same URL as above.

No bug fixes.

Changes:
  • Small tweak to the way username conversions are handled by the MPC site.


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Sun Feb 23, 2014 5:45 am 
8086
8086

Joined: Thu Oct 23, 2008 1:49 pm
Posts: 6
Uploaded version 1.0.3. Same URL as above.

No bug fixes.

Change, per user request: If at least one troll is found in a comment thread, the number of trolls' comments removed from the current page will be displayed in parentheses, just above the first comment on the page. Image uploading is broken in the MPC forums, so here's a link to a screen grab that shows what it looks like:

http://imgur.com/0xCbmlw


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Fri Feb 28, 2014 9:49 am 
8086
8086

Joined: Thu Oct 23, 2008 1:49 pm
Posts: 6
Uploaded version 1.0.4

Changes:
  • Modified the comment bubble at the top of the page to display the number of trolls' comments removed from the current page. This is the same modification made in version 1.0.3, but applied to a different element on the page.
  • Added a trollbot to the default joList


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Fri Mar 07, 2014 10:38 am 
8086
8086

Joined: Thu Oct 23, 2008 1:49 pm
Posts: 6
A suggestion for the main site's webmaster: consider restricting usernames to alphanumeric characters. There's no good reason to allow people to submit any/every character, and it's increasing your chances of getting hacked.


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Fri Mar 07, 2014 10:51 am 
Monkey Federation (Top 10)*
Monkey Federation (Top 10)*
User avatar

Joined: Thu Jun 24, 2004 1:22 pm
Posts: 27390
Location: In a cage, dumbass.
RandomInt wrote:
A suggestion for the main site's webmaster: consider restricting usernames to alphanumeric characters. There's no good reason to allow people to submit any/every character, and it's increasing your chances of getting hacked.

Hey bro, I don't know who you think you're talking to but there's no webmaster here. In fact there's no one behind the wheel at all.


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Fri Mar 14, 2014 5:51 am 
8086
8086

Joined: Thu Oct 23, 2008 1:49 pm
Posts: 6
Spider Monkey wrote:
In fact there's no one behind the wheel at all.


Then someone could slip in, update the site, and they would never notice? :wink:


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Mon Mar 17, 2014 11:17 am 
Monkey Federation (Top 10)*
Monkey Federation (Top 10)*
User avatar

Joined: Thu Jun 24, 2004 1:22 pm
Posts: 27390
Location: In a cage, dumbass.
RandomInt wrote:
Spider Monkey wrote:
In fact there's no one behind the wheel at all.


Then someone could slip in, update the site, and they would never notice? :wink:

If only said someone would slip in and update the forum.. lol


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Wed Mar 19, 2014 10:04 am 
Team Member
Team Member

Joined: Wed Aug 12, 2009 12:09 pm
Posts: 622
Spider Monkey wrote:
RandomInt wrote:
Spider Monkey wrote:
In fact there's no one behind the wheel at all.


Then someone could slip in, update the site, and they would never notice? :wink:

If only said someone would slip in and update the forum.. lol


Hey, you got to be more specific than that. Otherwise, they may "update" the forum into a facebook page :cringe:


Top
  Profile  
 
 Post subject: Re: How to Customize User Comments on MaximumPC’s Website
PostPosted: Wed Mar 19, 2014 9:32 pm 
Team Member Top 250
Team Member Top 250

Joined: Sat May 11, 2013 9:05 am
Posts: 545
Location: Sittin' downtown at the railway station, one toke over the line.
phillyj wrote:

Hey, you got to be more specific than that. Otherwise, they may "update" the forum into a facebook page :cringe:

I'd sure miss it.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.