Lightened-posts is a javascript for TamperMonkey, which can alter unpleasing posts, according to posters' uid, into a lightened style. It works on the NGA forum.
I just came to javascript as soon as I started this script. I would be thankful if you could tell me my problems, and would also be glad if these codes can help you a little bit.
Please post Issues for any problem.
Currently version: 0.2
You can get this script on Greasyfork, or import this file lightened-post.js manually.
Lightened-posts can block/unblock a certain user in his or her info page through the buttons above user name. Putting in a series of uids is also possible now, and this is recommended as a way to make your backup.
Lightened-posts is compatible with NGA Auto Pager V2 which is created by Sunness.
4 buttons will be added to the user info page after proper installation, which is currently (https://bbs.ngacn.cc/nuke.php?func=ucp&uid=?).
- Block. Add this user to your block list.
- Remove. Remove this user from your block list.
- Input. By clicking this button there would next be an alert messagebox which writes the instructions. Please make sure you fill in the blank in a right way. This helps you to import a series of uids, and is mostly used when you want to restore your settings.
- View. By clicking this button you would be able to see your whole block list in an alert messagebox. You can do copy (tested on Chrome) to make a backup. Please be noticed that the 00000000, which is at the end of the whole list, is simply an end mark.
The data are saved in localstorage.uid_list
. If you want to wipe them manually please active this line at the beginning of the script, save it and then come back and refresh the nga page.
//CLEAR
//localstorage.removeItem(uid_list)