Skip to content

v0.1.1

Latest
Compare
Choose a tag to compare
@shotwn shotwn released this 03 Nov 01:14

Added

  • Enable in "translations page" items.
  • Better page detection logic.
    • Now deleted elements trigger a initiation renewal.
  • Automatically fill the input box in translations menu.
  • Automatically pick the target language in translations menu.
  • Swap button instead of middle arrow between lang selectors.
  • Add emoji to log.
  • Improve css selector logic.
    • Now querySelectorAll is in use and finds first visible element.
  • Option to allow initiation attempts to continue forever.
    • This was necessary since "translations" page shows multiple
      languages without any update to URL.
      So switching from main page to modal wouldn't
      trigger a URL change event. This way we create an instance of
      InputTranslator and keep it waiting until first visible modal.
    • Once the modal is hidden. translatorRemovedEvent fires
      and we can create new instances and wait for a modal again.
  • Ability to set style parameters to output wrapper.

Changed

  • Little bit more robust initiation of the timers via eventListener
    • Standard way of doing this (anon function) felt a bit buggy.
    • See start()
  • Somewhat more verbose console logging for now.