Author Mangadex Post Autocomplete Userscript
FireFish5000 OP
Developer
Avatar

Mangadex Post Autocomplete:
Install via Greasyfork



NEW FEATURES!

  • Autocomplete Manga titles!
  • Settings menu!
    • Customize history limits
    • Autocomplete only users or titles
    • Change Manga Title autocomplete character
    • Chose to autocomplete titles into a link to the title page, a thumbnail, or even a description in a



Example:


Features:
  • Autocompletes @mention usernames. Maintains a small history of user posts you recently viewed and searches that for matches.
  • Autocompletes :Title titles to bbcode links (optionally to an image or description spoiler as well).
  • Quick access Settings menu! located within the little cog at the top right of your screen (next to your username). Click autocompletions tab in the popup dialog
  • Configurable completion character(or string) for Titles.
  • Suggestion box uses the selected site's color theme.
  • Shows user's icon or Manga's thumbnail next to the name in the suggestion box for easy identification.
  • Show a 100 character preview of the last viewed post from a user on mouseover.
  • Show a 1000 character preview of the manga's description (must visit the title page at least once for this feature to work).
  • Known to work on Firefox, Chrome, and Firefox Android!

Usernames are sorted so:
  1. Matches at the beginning of the name come first
  2. Users who have commented in the current thread come before those from other threads
  3. Users who mentioned you come before those who haven't
  4. More recently viewed users come before others (we sort based off of the time you last viewed it, NOT the time it was posted!)

Titles are sorted so:
  1. Matches at the beginning of the name come first
  2. Followed titles come before unfollowed ones.
  3. More recently viewed manga come before others (we sort based off of the time you last viewed it, NOT the time it was uploaded!)


Want to know what Title Completion looks like?
Well, if I type ':ten'
In plain completion mode, I'll simply get
Tensei Shitara Slime Datta Ken: Mamono no Kuni no Arukikata

In Link mode(default), I get
Tensei Shitara Slime Datta Ken: Mamono no Kuni no Arukikata

In Thumbnail + Link mode, I get
Tensei Shitara Slime Datta Ken: Mamono no Kuni no Arukikata


In Thumbnail + Link + Description mode, I get
Tensei Shitara Slime Datta Ken: Mamono no Kuni no Arukikata | Description:



By the way, this looks pretty good centered. However, mangadex spoilers do not seem to play well with formatting ATM. Best to try with description off



Suggestion dialog legend:
  • @ means the user has mentioned you before
  • comments icon means they are talking in the current thread.
  • bookmark icon means you are following this chapter


Installation:
This is a UserScript! To use it, you need a UserScript manager such as GreaseMonkey, ViolentMonkey, or TamperMonkey available from your browser's App/Web store!
Developed for ViolentMonkey on FireFox.
Tested on Chrome/Chromium, and FireFox Nightly on Android.

After installing with your monkey of choice, go to any thread and:
  1. type @ to start the autocompletion
  2. type however much of the name is necessary to see it in the suggestion list (note it will only suggest users you have seen since installing).
  3. Hover over their name, or push the down arrow until their name is highlighted.
  4. Press Tab, Enter, or LeftMouseClick to accept the suggestion!


Note autocompletion for titles won't work until you visit the home page while logged in, or the manga's title page.
Autocompletion for a user won't work until we see a post by that user.

Current Bugs/Limitations:
  • Your own name is not filtered out of suggestion (because I talk to myself quite a bit.... is that sad?)
  • Does not currently differentiate histories for different accounts (same suggestions will pop up even if you login to a different account)
  • We are considering any value other than unfollowed as Following. This includes dropped.
  • FireFox Android does not show suggestions until you have typed at least one letter, or tap next to the @ sighn in the textbox.


TODO:
  • Update example image with new UI (minimal change) and titles.
  • Add example image for settings UI.



More Cool Scripts



Also check out: Mangadex Post Preview -- Displays a formatted post preview above the edit/post box. Used for formatting everything I post
Last edited 1 year ago by FireFish5000.
Zephyrus
Forum Moderator
Avatar
It's....it's *beautiful*.
ixlone
Administrator
Avatar
Nifty.
FireFish5000 OP
Developer
Avatar
Thanks @Zephyrus , @ixlone! I am still working on it, but the basics are done!
I got sick of copy/pasting usernames and titles, and am not talented enough to spell either correctly. So this was my solution!
Unfortunately, I am also not social enough to justify the time I spent on this..... hopefully a NEET Social butterfly will find this useful.
Note, it also works on Firefox for android! Not great yet, but better than typing it all out. There is no UserScript Manager for popular browsers on iPhone that I know of, so it is unsupported.

Hoping I can get some people interested in this (UserScript users are rather rare. Most popular library I produced only gained 4k users between all forks over 3 years...).
If I can spark an interest in this, I will add it to the suggestion form. If not... I guess I'll get a job (been putting that off a bit too long)
Zephyrus
Forum Moderator
Avatar
@firefish5000
It's actually been suggested! I've talked to @rdn about implementing something very similar to your userscript. It's on a list that the devs are working off of, but it's fairly low priority. When the time comes, would you be ok with us using this userscript as a foundation if we need to? If not, that's fine!
FireFish5000 OP
Developer
Avatar
@Zephyrus
I have no problem with that.
Last edited 2 years ago by FireFish5000.
FireFish5000 OP
Developer
Avatar
Userscript to autocomplete @mentions
Updated, now using AtJS. Also slowly adopting a style guide
Now colors usernames appropriately
Bolds the matched portion of the username.

Last edited 2 years ago by FireFish5000.
FireFish5000 OP
Developer
Avatar
Userscript to autocomplete @Mentions and :Titles in posts
Update! Implemented :Title completion!
Yea!
Also a new experimental settings menu! A gif example will come later. for now, here is a couple pics

To access settings menu, first click the cog at the top right of the screen

Then click the Autocomplete tab

And change whatever you want!


And here is a quick example of what title autocompletion looks like. I also added examples to the top of the page
Tensei Shitara Slime Datta Ken: Mamono no Kuni no Arukikata
Last edited 2 years ago by FireFish5000.
Avatar
i use bootstrap suggest for me social stuff and emoji and w/e stuff

http://lodev09.github.io/bootstrap-suggest/

i just changed my key @ with w/e to find users or emoji from json output xD

firefish your script looks superb and thanks for sharing it ?
Avatar
Honesty didn't know this til I necroed this, usually a mobile user
Avatar
I just tried this, it looks really cool and a nice script to increase social aspect of Mangadex website
Avatar
I used this script for a few days, but suddenly it disappears, now I tried to reinstall, I already had MeddleMonkey, but when I try with that, it says "Error loading dependencies" and I cant install. If I disable MeddleMonkey and but TamperMonkey, I can install but the tab closes and nothing happens. After that, the option Re-install appears, indicating that its already installed now, but I get no autocomplete results what so ever