Jump to content

User:Themeparks/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Themeparks (talk | contribs) at 12:08, 18 March 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript( 'User:Enterprisey/copy-section-link.js' ); // Backlink: [[User:Enterprisey/copy-section-link.js]]
importScript('User:Caorongjin/wordcount.js');

(function() {
    'use strict';
    function highlightPipeLinks() {
        const links = document.querySelectorAll('[[*="|"]');
        links.forEach(link => {
            link.style.color = '#FF0000'; 
            link.style.fontWeight = 'bold'; 
        });
    }
    window.addEventListener('load', highlightPipeLinks);
})();