- 1.2.4: The Print menu item is now hidden in web apps added to the Home Screen on iPhone and iPad. iOS ignores the browser print command there, so the button did nothing; the share sheet’s Print option still works. Print is unchanged in Safari and on every other platform.
- 1.2.3: Fullscreen and Wake Lock menu items now cope with a browser refusing the request. Fullscreen: the in_fullscreen/out_fullscreen body class now follows the document’s real fullscreen state (set on load and on fullscreenchange) instead of a window-size guess, so a refused request no longer leaves the item showing as active, and a refused request no longer throws an uncaught promise rejection. Wake Lock: a refused request (e.g. page not visible) is caught instead of logging an uncaught NotAllowedError; turning the lock off now releases the lock actually held (previously it requested and released a second one, leaving the original active); the item resets when the browser drops the lock, and a lock turned on earlier in the session is re-acquired when the page becomes visible again. Debug console output removed.
- 1.2.2: Wakelock’s inline icon switches again while the screen is kept awake: the item prints both icons (crossed-out eye, open eye) and the plugin shows the right one from the in_wakelock body class its script sets, so sites no longer need their own CSS for the swap. Icons in the menu array can declare an active state (‘active’ => path and body_class) for the same behaviour.
- 1.2.1: Wakelock’s inline icon is now the crossed-out eye (LH 2015’s hide icon), matching the icon sites already show for it, instead of the open eye.
- 1.2.0: Print each javascript menu item’s icon as inline SVG. Fullscreen, Subscribe to RSS, Wakelock, Refresh and Print now render their own icon (aria-hidden, focusable=false, fill=currentColor) before the label, using the same path data as LH 2015’s icons, in Navigation blocks and classic menus alike. Items that print an icon get the has-inline-icon class, so a theme drawing icons in CSS can skip them. In the block editor the variations show their icon in the inserter and the canvas draws it with editor-only CSS. Items added by other plugins through lh_jmis_return_basic_menu_array can supply an icon with an ‘icon’ key (viewbox and path).
- 1.1.4: Fixes a crash loop during a database outage: when WordPress showed its “Error establishing a database connection” screen, the robots filter that keeps the JavaScript problem page out of search engines looked the page up in the database, which failed again and nested the error screen several levels deep. The filter now uses the page already loaded for the current request and makes no database query, and does nothing before the main query has run.
- 1.1.3: Share, push notification and app install links (from LH Web Share, LH Web Push Notifications and LH Web Application, which add their links through this plugin) now fall back to the matching section of the JavaScript problem page (?action=share, push or install) instead of its general advice. Other plugins can map their own links to a section with the lh_jmis_return_actions filter. Adds the licence to the plugin header.
- 1.1.2: Makes sure the JavaScript problem page repair from 1.1.1 reaches every site: the background pass now keeps its progress per pass, so it starts from the first site instead of carrying on from where the original page-creation pass had got to.
- 1.1.1: Fixes the JavaScript problem page created by 1.1.0: the general advice section showed on every visit, alongside the section for the action that failed, because the line breaks in its visibility rule were stripped when the page was saved. New pages are now saved intact, and a background pass across the network rewrites any page 1.1.0 created with the broken rule; pages that have been edited since are left alone.
- 1.1.0: The javascript menu items now work in navigation blocks, and their fallback page is a real page on every site. Print, Refresh, Fullscreen, Wakelock and Subscribe to RSS are available by name in a navigation block’s inserter; each loads its script only on pages where the link is actually output. Every javascript link, in classic menus and navigation blocks, points at the site’s JavaScript problem page with the action in the address (for example /javascript-problem/?action=print) and carries rel=nofollow. That page is now an ordinary, editable page, created automatically on every site where the plugin is active (existing sites in the background, new sites when they are created); its sections explain each action, and Block Visibility’s query string rules show only the section for the action that failed. The page is kept out of search engines and the sitemap. The old virtual page and the block on creating a page with that slug are removed.
Changelog
If you like this plugin please consider making a donation to further development

