Git Product home page Git Product logo

msg-enhancer-userscript's Introduction

msg-enhancer-userscript

Adds voting, faving, and downloading to the index pages of e621.net and e926.net (SFW mirror)

Installation

  1. Have a userscript manager such as Greasemonkey (Firefox) or Tampermonkey (Chrome)
  2. View msg-enhancer.user.js and click the Raw link button. Your userscript should automatically install it from there.

Usage

Once you have installed the script, login to e621.net or e926.net and browse or search. You should immediately notice changes to the layout, including the addition of up/down arrows, a heart, and a download icon under each item, plus a new section in the sidebar.

Due to the nature of index pages, there is no simple way to find out if a post is faved or voted on by you, so I have diligently worked around this by using a cache system that integrates with the front-end code. Due to this pitfall, votes and favorites will not appear updated until you click them or visit the content's page. Luckily, if you have already voted or faved something, it will correct itself if you vote or fave it again.

In the sidebar, you should notice six components:

  • Sync allows you to quickly fetch all your favorites and cache them with MSG Enhancer. It is recommended you do this first to save yourself a lot of updating.
  • Save lets you a backup of the cache on local disk, which is in JSON format.
  • Load will read a JSON cache file you choose.
  • Clear will purge all your cached votes and favorites. You can't undo this unless you load a previously saved cache file.
  • Hide downvoted will hide posts that you've downvoted.
  • Hide upvoted will hide posts that you've upvoted.

Notes

  • Because of the way userscripts work, do not use the back button in your browser.
  • The notice bar on content pages will auto-scroll the window after voting or faving. You'll just have to get used to it because I can't modify the front-end.
  • I recommend using the Bloodlust theme to make the arrows slightly more visible. Other themes are too bright or use a font that makes the arrows harder to click.
  • Settings for hiding posts are not saved with the userscript data. For convenience, downvoted posts are always hidden, and upvoted posts are always shown when you load a page.

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.