// ==UserScript== // @name Oracle APEX Builder Click Menus // @run-at document-idle // @namespace https://github.com/lufcmattylad // @version 26.1.1 // @description Converts the hover menus on App Builder and SQL Workshop in the APEX 26.1 builder navigation into click-to-open menus (like Administration). The original links remain available as the first item of each menu, or via Ctrl+click / middle-click. // @author Matt Mulvaney - @Matt_Mulvaney // @match *://*/ords/* // @match *://*/pls/* // @tag orclapex // @grant none // @downloadURL https://raw.githubusercontent.com/lufcmattylad/oracle-apex-userscripts/refs/heads/main/scripts/oracle-apex-builder-click-menus/script.js // ==/UserScript== (function () { 'use strict'; /** * DISCLAIMER: * This code is unofficial and is not supported by Oracle APEX. * It is provided "as is" without warranty of any kind, either express or implied. * Use of this code is at your own risk. The authors and distributors accept no responsibility * for any consequences arising from its use. */ function isApexEnvironmentValid() { if (typeof apex === 'undefined') return false; const appId = parseInt(apex.env.APP_ID, 10); if (appId < 3000 || appId > 8999) return false; const version = apex.env.APEX_VERSION || ''; const major = parseInt(version.split('.')[0], 10); const minor = parseInt(version.split('.')[1], 10); return major > 26 || (major === 26 && minor >= 1); } if (!isApexEnvironmentValid()) return; const $ = apex.jQuery; // Prepend an "Open