Keep Awake: keep screen on as long as the wiki is being viewed

The Keep Awake plugin keeps screen on, as long as the wiki is open.

  • Useful in recipe or other reference wiki viewed on a mobile device.
  • Right now the only way to disable keeping awake is to disable/uninstall the plugin and reload the wiki (or switch to a different tab/app of course). I would like to add a page toolbar button to switch it in the future.
  • Credits to @jondyer for the script provided here: Adding a tag and screen wake - Developers - Talk TW.
  • I’m no JS expert, so there might be a better or more efficient way to write the script, feedback welcome. It works properly on various mobile devices (Android and iOS).
1 Like