Wanikani Open Framework

Framework for writing scripts for Wanikani

These are versions of this script where the code was updated. Show all versions.

  • v1.2.10 01.12.2024.

    Fix pageload skipping after navigating before first turbo:load fires

  • v1.2.9 22.11.2024.

    Fix double pageload

  • v1.2.8 22.11.2024.

    Fix double-firing of pageload due to race condition

  • v1.2.7 22.11.2024.

    Increase z-index of menu on Reviews page to prevent other elements from obscuring it.

  • v1.2.6 01.10.2024.

    Fix regex_entry naming issue

  • v1.2.5 01.10.2024.

    Update internal version number to match header.

  • v1.2.4 01.10.2024.

    Added unload_handler to wkof.on_pageload. Added try-catch blocks around even handlers.

  • v1.2.3 25.09.2024.

    A more robust startup sequence for Turbo listener and first pageload.

  • v1.2.2 24.09.2024.

    Combine menu CSS for all site pages, and distinguish via class.

  • v1.2.1 23.09.2024.

    Fix pageload handler to be called when not on a Turbo page.

  • v1.2.0 23.09.2024.

    Improved support for Turbo navigation.
    Added wkof.on_pageload(urls, handler)

  • v1.1.12 28.06.2024.
  • v1.1.11 13.03.2024.

    Fix version number

  • v1.1.10 13.03.2024.

    Fix scripts menu after WK removal of FontAwesome

  • v1.1.9 03.01.2024.

    Modified module URLs to new "update.greatest.deepsurf.us" format.

  • v1.1.8 08.11.2023.

    Updated Menu.js to support changes on WK Lessons page

  • v1.1.7 23.08.2023.

    Add Menu support for /recent-mistakes/*/quiz

  • v1.1.6 20.08.2023.

    Fixed Menu links that are not in a submenu.
    Removed support for menu links for old version of WK

  • v1.1.5 30.06.2023.

    Fix insert_script_link() on lesson quiz

  • v1.1.4 30.05.2023.

    Add z-index to keep scripts menu on top of other screen elements when the menu gets long.

  • v1.1.3 07.05.2023.

    Add support for Kana Vocabulary

  • v1.1.2 24.04.2023.

    Update Apiv2 to improve rate-limit handling

  • v1.1.1 24.04.2023.

    Update APIv2 to remove dependency on Jquery

  • v1.1.0 29.03.2023.

    Support for new Hotwire-based WaniKani

  • v1.0.60 25.10.2022.

    Handle cached files that are null.

  • v1.0.59 10.09.2022.

    * Reduced dependency on jquery, since Wanikani is removing it from many pages.
    * Added ability for scripts to auto-load Jquery on Wanikani pages that don't have it, via wkof.include('Jquery') and wkof.ready('Jquery').
    * Increased pop-up delay of the Progress box.
    * Added ability for users to change the Progress pop-up delay via wkof.Progress.popup_delay().
    * Added option for scripts to disable pop-up on a per-transaction basis.

  • v1.0.58 19.03.2022.

    Improved filtering of key bubble capture in Settings dialogs.

  • v1.0.57 19.03.2022.

    Fixed "have_burned" filter when no assignments exist.
    Fixed key handling issue related to Self-Study Quiz.

  • v1.0.56 18.03.2022.

    Improved blocking of WK hotkeys when Settings dialog is open.

  • v1.0.55 17.03.2022.

    Added menu support to /extra_study.
    Added workaround for WK capturing keys while Settings dialog is open.

  • v1.0.54 23.02.2022.

    Update Menu module to add dropdown menu support on Lessons page.

  • v1.0.53 04.10.2021.

    Fix 'FontAwesome' icons after WK update.

  • v1.0.52 21.09.2020. Fix Settings dialog max height to account for bottom scrollbar
  • v1.0.51 21.09.2020.
  • v1.0.50 25.01.2020. Update wkof.ItemData.get_index() to distinguish between 'Locked' and 'Initiate' for 'srs_stage' and 'srs_stage_name' indices.
  • v1.0.49 26.12.2019. Changed deprecated "max_level_granted_by_subscription" to "subscription.max_level_granted"
  • v1.0.48 08.11.2019. Add support for preview.wanikani.com
  • v1.0.47 31.10.2019. Fix page scroll after menu link clicked
  • v1.0.46 31.10.2019. Menu: Fix page scroll after menu link clicked
  • v1.0.45 26.05.2019. Fixes to simplfy alternate item sources.
  • v1.0.44 25.05.2019. Fix submenus after WK site change.
  • v1.0.43 23.05.2019. Fix non-submenu Menu links. Add auto-generation of APIv2 keys. Add debug support functions.
  • v1.0.42 23.05.2019. Revert username fetch location.
  • v1.0.41 23.05.2019. Make versions match in Core.js
  • v1.0.40 23.05.2019. Fetch username from Javascript info instead of user menu.
  • v1.0.39 23.05.2019. Make version numbers match.
  • v1.0.38 23.05.2019. Fix username retrieval and menu integration after WK site change.
  • v1.0.37 19.03.2019. Apiv2: updated apikeyv2 fetching
  • v1.0.36 12.07.2018. Menu: Fix review menu selector
  • v1.0.35 08.07.2018. Fix classification of 'Locked' vs 'Initiate' items
  • v1.0.34 24.06.2018. Settings: FIx size when changing tabs. Remember active tabs. Fix html/attrib escaping. ItemData: Ignore quotes in Level filter.
  • v1.0.33 19.06.2018. Add menu support to Reviews page, fix Settings validation note CSS.
  • v1.0.32 04.06.2018. Switch to ISO dates in file_cache to prevent caching issues.
  • v1.0.31 01.06.2018. Add string escaping to Core, Menu, and Settings modules. Remove condition on Progress css url.
  • v1.0.30 29.05.2018. Fix load_file() reject
  • v1.0.29 21.05.2018. Add detection (and override) for missing indexedDB
  • v1.0.28 16.05.2018. ItemData: Remove hidden items by default.
  • v1.0.27 03.05.2018. Fix cache cleanup, don't flush wkof.settings.* files.
  • v1.0.26 25.04.2018. Settings: Expose 'close' function. Rename 'settings' to 'content' for dialog. Add button text field.
  • v1.0.25 23.04.2018. Apiv2: Add support for future endpoints
  • v1.0.24 20.04.2018. Settings: Resolve wkof.Settings.load() with merged defaults
  • v1.0.23 20.04.2018. ItemData: Add support for "1..3" and "1 to 3" format in level filter
  • v1.0.22 18.04.2018. ItemData: Enforce max_level_granted_by_subscription
  • v1.0.21 18.04.2018. Replace debug version
  • v1.0.20 18.04.2018. ItemData: Add 'Locked' option to srs filter
  • v1.0.19 18.04.2018. ItemData: Add 'Initiate' to 'srs' filter.
  • v1.0.18 16.04.2018. ItemData: Use state instead of event for registration stage.
  • v1.0.17 16.04.2018. ItemData: Add filter registration phase
  • v1.0.16 16.04.2018. Apiv2: Update user every time. ItemData: Add "prepare()" function to filters
  • v1.0.15 14.04.2018. Override browser input validation CSS
  • v1.0.14 13.04.2018. Settings: Add setting type "button"
  • v1.0.13 03.04.2018. Apiv2: Switch API URLs to "api.wanikani.com/v2"
  • v1.0.12 03.04.2018. Work around incompatibility between WK and jQueryUI
  • v1.0.11 02.04.2018. Add 'default' argument to wkof.Settings.load(), and support additional ItemData filter value formats
  • v1.0.10 27.03.2018. Add automatic cleanup of wkof.file_cache, and increase z-index of Progress dialog
  • v1.0.9 27.03.2018. Move urls for shared support files to Core.js
  • v1.0.8 26.03.2018. Handle html escaping in Settings, improve ItemData filters, support more date formats in Apiv2, improve CSS for narrow windows.
  • v1.0.7 22.03.2018. Menu: Remove references to 'settings'
  • v1.0.6 22.03.2018. Apiv2: Add 'include_non_user' parameter to Apiv2.clear_cache()
  • v1.0.5 20.03.2018. Update Settings module (new input types, etc), use version-specific CSS
  • v1.0.4 06.03.2018. Add autosave flag and funcs to Settings module
  • v1.0.3 02.03.2018. Apiv2: Close progress dialog when no updates from WK server.
  • v1.0.2 22.02.2018. ItemData: Add support for global fetcher options in get_items()
  • v1.0.1 17.02.2018. Fix repeating progress timer
  • v1.0.0 17.02.2018.