Jump to content
  • Advertisement
Sign in to follow this  
  • entry
    1
  • comments
    0
  • views
    3544

About this blog

Things... and stuff... but mostly things...

Entries in this blog

 

Latest forum content change

If you go to the forums via the 'View Latest Content' link, clicking on a thread title will take you to the first new post since the thread was last read. I didn't care for this feature (I prefer to always go to the top of the thread) so I submitted feedback about it and was informed that it was related to the Last Content thing and not a general forum issue. (oops... sorry Gaiiden)

I did, however, decide to take matters into my own hands and fix this little issue... and thus is born a new Greasemonkey script. So if you're using greasemonkey and also don't like this feature, here you go:

// ==UserScript==
// @name Latest forum content link changer
// @namespace my scripts
// @description remove page__view__getnewpost__fromsearch__1 from forum links
// @include https://www.gamedev.net/index.php*
// ==/UserScript==

if(location.href.indexOf('search_app=forum') != -1)
{
var links = document.getElementById('forum_table').getElementsByTagName('a');

for(i = 0; i {
var pos = links.href.indexOf('page__view__getnewpost__fromsearch__1');
if(pos != -1)
{
links.href = links.href.substr(0, pos);
}
}
}


I am by no means a web developer so there may be better ways to do this but this does get the job done.

If you're curious, it appears to be the "page__view__getnewpost__fromsearch__1" appended to thread URLs that makes this feature work so all I'm doing is removing that from the links.

px

px

Sign in to follow this  
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!