The Word Around Town
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Immediate Redirection

Go down

Immediate Redirection Empty Immediate Redirection

Post by Hudson Mon Aug 08, 2016 1:06 am

This script will immediately redirect you after submitting a message and or sending a private message.

-Installing it-

To install this script go to Admin Panel > Modules > JavaScript codes management. Make sure JavaScript codes management is enabled, and then create a new script with the following settings:

Title: Immediate redirection
Placement: In all the pages
Code:
(function() {
  for (var meta = document.getElementsByTagName('META'), i = 0, j = meta.length; i < j; i++) {
    if (meta[i].httpEquiv && /refresh/i.test(meta[i].httpEquiv)) {
      window.location.href = meta[i].content.replace(/^.*;url=/, '');
      break;
    }
  }
}());

Save the script, and you should now be quickly redirected back to threads after making a post, your inbox after sending a PM, etc.. Cool

Hudson
Hudson
Admin

Posts : 13
Join date : 2016-07-26

https://thewordaroundtown.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum