Giter Club home page Giter Club logo

userscripts's Introduction

Miscellaneous userscripts and bookmarklets

⚠️ This repository has been archived. ⚠️

Development of the ao3-helpers script has been moved to legowerewolf/enhance-ao3 Existing users of the script should see that their installation of the script automatically updates to point to the new repository. If it doesn't, you can reinstall it from there.

Userscripts

Don't have a userscript extension? Try Violentmonkey!

ao3-helpers (functional, active maintenance)

Install | File a bug report

Adds hotkeys to AO3 for:

  • navigation on works, between works in a series, and on index pages (, )
  • bookmarking a work or series (b)
  • recommending a work or series (b+r)
  • creating a private bookmark (b+p)
  • subscribing to a work, series, or author (s)
  • kudosing a work (k)
  • copying a selected text fragment to the comment box and jumping to it (c)
  • saving a work to Pocket (p)

Also includes:

  • an experiment to parse metadata from work pages. This does not send any data to anyone. You can view what's been parsed in the browser console as document.AO3_work_data.
  • prefetch hinting for next chapters/works/index pages. As of otwarchive v0.9.336.10 this has no effect due to cache policy response headers, but it should make the reading experience smoother in the future.

View the related issues for features and bugfixes in the works.

link-sanitizer (functional, not actively maintained)

Removes tracking parameters from links from the Twitter on-page share button. I want to make it work with more sites (Tumblr, Twitter), but I haven't gotten around to it yet.

auto-purchase free books (functional, not actively maintained)

Automatically purchases free ebooks on Amazon and Google Play. This is useful in coordination with lists of free/reduced-price ebooks.

The script attempts to verify that the book is free before purchasing it. I am not responsible for any charges incurred by using this script. You have been warned.

link-fixer (functional, not actively maintained)

Removes click.redditmail.com redirects on all websites. I use NextDNS to block tracking-links, so this provides a workaround for my emails from Reddit.

This uses a page-wide MutationObserver, so it may have a performance impact. Another method of redirection is recommended.

wikipedia mobile toggle (broken, not actively maintained)

Switches between desktop and mobile Wikipedia based on screen width. Use the "Vector (2022)" skin in responsive mode instead.

userscripts's People

Contributors

legowerewolf avatar

Watchers

 avatar  avatar  avatar

userscripts's Issues

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.

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

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.

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.

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.

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.