Immediate Redirection

View previous topic View next topic Go down

Immediate Redirection

Post by Hudson on 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

avatar
Hudson
Admin

Posts : 13
Join date : 2016-07-26

View user profile http://thewordaroundtown.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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