PageSourceSearch

https://www.flyinwrench.com/wp-content/plugins/admin-site-enhancem…/assets/js/external-permalinks.js?ver=7.9.7

js flyinwrench.com collected 2026-10-08 01:26:36 UTC 839 bytes, 26 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function() {
2
3   // console.log( phpVars );
4
5   // When External Permalinks is enabled, remove #new_tab from external permalinks and set target to _blank
6   if (phpVars.externalPermalinksEnabled) {
7
8      var links = document.getElementsByTagName('a');
9
10      for (var i = 0; i < links.length; i++) {
11         var url = links[i].getAttribute('href');
12         var target = links[i].getAttribute('target');
13
14         if (url != null) {
15            if (url.indexOf('#new_tab') >= 0) {
16               url = url.replace('#new_tab', '');
17               target = '_blank';
18               links[i].setAttribute('href', url);
19               links[i].setAttribute('target', target);
20               links[i].setAttribute('rel', 'noopener noreferrer nofollow');
21            }
22         }
23      }
24   }
25
26});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.