Open in New Window Plugin

ཞིབ་བརྗོད།

The Open in New Window Plugin Plugin uses JavaScript to target external links to a new browser window, leaving your blog page open.
Since it uses javascript, it targets more links than using a plugin that filter pages and rewrite the link. The plugin will find many links generated in scripts or pasted into posts and comments.
Due to the limitations of javascript it will not be able target links in iframes such as Adsense and some other affiliate links.

Support

This plugin is free and I expect nothing in return. If you wish to support my programming, buy my book:
Error Message Eyes: A Programmer’s Guide to the Digital Soul

སྒྲིག་འཇུག

  1. Download the plugin.
  2. Upload the plugin to your wp-content/plugins directory.
  3. Activate the plugin.

གདེང་འཇོག

2021 ལོའི་ཟླ 2 ཚེས 6 ཉིན།
Install, check the Settings page Settings > Open in New Window and uncheck the images etc checkbox if you want, and you're done. Nifty. Works. No fuss.
2019 ལོའི་ཟླ 4 ཚེས 9 ཉིན།
Not much to say, but it worked as advertised. 🙂
2018 ལོའི་ཟླ 2 ཚེས 24 ཉིན།
I installed different plugins with that purpose, but none of them worked with my custom theme. This one works like magic! Thank you! You saved me lots of time!
2017 ལོའི་ཟླ 10 ཚེས 6 ཉིན།
Works fine here on Twenty Seventeen Theme and this is a multisite install
2018 ལོའི་ཟླ 4 ཚེས 30 ཉིན།
I've been using this plugin for a few years. I am pleased with the functionality of the plugin. No problem whatsoever.
2016 ལོའི་ཟླ 10 ཚེས 7 ཉིན།
There's not much to say. I installed the plug-in and just like that external links opened in new tabs. This shouldn't be necessary since WordPress offers an "Open in new window" option when creating a link, but it doesn't seem to work, so third party developers have make it work.
གདེང་འཇོག 16 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Open in New Window Plugin” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

དག་བཅོས་ཉིན་ཐོ།

2.9

  • Tested under WordPress 6.4.2

2.8

  • Tested under WordPress 5.7

2.7

  • Tested under WordPress 5.4

2.6

  • Fixed a bug in the javascript loader url.

2.5

  • Changed comments to // so that javascript compressors will not get confused.
  • Fixed bug in the way options are stored.
  • Fixed bug in the way control js was loaded.

2.4

  • Major rewrite.
  • Uses script enqueue methods so WP loads the scripts.
  • Fixed some problems with the scripts. THey should compress correctly now.
  • set up so translations might work (but I doubt it).

2.3

  • Added security check.
  • broke up the program to reduce load overhead
  • added the first settings option to this plugin. Some files types, when found in local site, can be forced to open in a new window. These include: .pdf, .mp3, .jpg, .gif, .tiff, .png, .doc, .rtf, .docx, .xls, .wmv, .mov, .avi, .zip, .rar, .7z and .arc. Check off the option box in the settings. On by default.

2.2

Fixed bug in javascript that allowed some types to open in new window.

2.1

Added support to load certain file types in a new window. Disabled in wp-admin screens to prevent reported issues with the admin toolbar.

2.0

Now loading the script as a js file in order to cache the hits and speed page loads.