Greasy Fork

Mangadex Autocomplete

Autocompletes @mention usernames. Maintains a small history of user posts you recently viewed and searches that for matches. Example image shown in additional info

目前为 2018-10-08 提交的版本。查看 最新版本

作者
Shy Guy
评分
0 0 0
版本
0.0.9
创建于
2018-09-26
更新于
2018-10-08
大小
37.2 KB
许可证
MIT
适用于

Mangadex Post Autocomplete

Demo



Autocompletes @mention usernames. Maintains a small history of user posts you recently viewed and searches that for matches. Matches 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.

Legend:
@ means the user has mentioned you before
chat icon means they are talking in the current thread.

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, Space, Enter, RightArrow, or LeftMouseClick to accept the suggestion!

Note, if you don't highlight a suggestion, enter/space will not use one. We do NOT currently default to the first suggestion.
If the suggestion box ever gets stuck open, you can press escape to close it.

Currently only autocompletes @mentions, but thinking of adding a means to autocomplete titles as well. Not sure what to use as a trigger for that though Perhaps the humble colleen ':'. If I add that, it would use the default title for the autocompletion, and output it as a link like below.
:tens
could turn into the bbcode
[url=https://mangadex.org/title/21828/tensei-kyuuketsuki-san-wa-ohirune-ga-shitai]Tensei Kyuuketsuki-san wa Ohirune ga Shitai[/url]