Title: nikneedshelp's Replies | WordPress.org

---

# nikneedshelp

  [  ](https://wordpress.org/support/users/nikneedshelp/)

 *   [Profile](https://wordpress.org/support/users/nikneedshelp/)
 *   [Topics Started](https://wordpress.org/support/users/nikneedshelp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nikneedshelp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nikneedshelp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nikneedshelp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nikneedshelp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nikneedshelp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[External Links in New Window / New Tab] How to Ignore More Than One Link?](https://wordpress.org/support/topic/how-to-ignore-more-than-one-link/)
 *  [nikneedshelp](https://wordpress.org/support/users/nikneedshelp/)
 * (@nikneedshelp)
 * [7 years ago](https://wordpress.org/support/topic/how-to-ignore-more-than-one-link/#post-11598688)
 * hey I have been going crazy around this, as well, and since the code provided
   by other users don’t work anymore, here is my “logical” fix:
 * simply change the standard behavior of opening all links in a new tab from true
   to false in line 53 of open-external-links-in-a-new-window.php. By this, no link
   will be opened in a new tab, but via the ‘Force links to open in a new window
   if they match:’ option in the settings, a single link type can be specified. 
   This is definitely not a satisfying solution, but allows to ignore more than 
   one link and serves my purpose. Hope this helps folks
 *     ```
       if(document.links[t].hasAttribute('onClick') == false) {
       				// forced if the address starts with http (or also https), but does not link to the current domain
       				if(all_links.href.search(/^http/) != -1 && all_links.href.search('".$blogdomain['host']."') == -1) {
       					// alert('Changeda '+all_links.href);
       					change_link = false;
       				}
       ```
   
    -  This reply was modified 7 years ago by [nikneedshelp](https://wordpress.org/support/users/nikneedshelp/).

Viewing 1 replies (of 1 total)