a guest Mar 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Open any external links in a new tab rather than take user away from site.
  2. jQuery(document).ready(function ($) {
  3.     $(document.links).filter(function() {
  4.         return this.hostname !== window.location.hostname;
  5.     }).attr('target', '_blank');
  6. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand