Giter Club home page Giter Club logo

userscripts's People

Contributors

legowerewolf avatar

Watchers

 avatar  avatar  avatar

userscripts's Issues

LocalStorage proxy object

Wrap the LocalStorage api. Values stored as JSON. Provide read interface as an object, store written data back as JSON. Throw error if write failed.

Add hotkey to get selected text and copy to comment box

When c is hit:

  1. grab selected text
  2. store reference to selection anchor Element
  3. near comment box, insert jump link (or update existing) back to anchored paragraph. use Element.scrollIntoView()
  4. if last character in comment box is not newline, insert newline
  5. split selected text by newline/paragraph break, insert each chunk prepended with > and suffixed with newline
  6. focus comment box

Better comment box on AO3

Goal

Replace the default comment textbox with a rich text editor like what's available for posting chapters. Ideally, the same as what's available for posting chapters.

Upgraded hotkey engine

Goal

Create and use a hotkey engine that:

  • isn't so tightly bound to the AO3 hotkey code
  • supports key combinations
    • supports keys in textboxes when a modifier key is being held
  • uses one engine per component attached to
  • can emit events
  • can be provided with key-action mappings and run them itself

User experience

Users shouldn't notice any changes other than some actions being remapped to new combinations. As usual, deprecated keybinds will keep working (with an alert about the new keybind) until another action gets mapped to the key.

Add kbd markers to all hotkeyable actions

For actions with CSS strings, you should just be able to target those strings and insert the kbd element.

For function actions, we'll need an override dict with CSS strings to target.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.