Jan 7, 2015 08:17 PM
(This post was last modified: Jan 5, 2016 03:54 PM by Sakuto.)
Introduction
Hello fellow users, let me introduce myself to you. I'm Sakuto, I'm a Belgian web developer and recently I had to learn Javascript. Learning a language is always boring when you don't have any project, so here is my first project, and it's a project for you, active users of HackForums ! This project is born due to a little problem I encountered. I love make post in lot of discussions, I just answer to every question I see and sometime, I'm posting in the lounge, but when it's time to follow the answer of every author of thread, it was very hard to find each thread. I was using the "Your Posts" link, but result were not very usable. So I asked the Mentor / Staff if something was made to make this easily. Unfortunately, Omni answer me that it wasn't a project and nothing will never change. (You can see details here: https://hackforums.net/showthread.php?tid=4590652). Since I was not very convinced by this answer, I just created this functionality myself, this user script was just designed to do this at first. But Javascript was so funny that I added a lot of features, and I'm still adding some right now. So here we are for the little introduction.Description
So, HF Extensions are actually a little userscript (I'm projecting to developing it as a plugin to allow me to create more feature without being dependant of TamperScript) who's made to ease the navigation on HackForum. It basically fixes every little detail that can be annoying for an actual user, and add some features for every user. It's not a revolution, but it's a good way to improve your user experience.Vouch
Given the recent event with the plugin, I asked Snorlax to vouch for my userscript, you can see his vouch right here. Since Snorlax is a very well know member, I think you can trust him when he say that the user script is not backdoored. If not, here is a direct link to the source to let you make your own opinion about this.(Jan 13, 2015 08:48 AM)'Snorlax Wrote: Ya this looks pretty clean. It uses a library called GM_config which comes from the creator directly: https://raw.github.com/sizzlemctwizzle/G..._config.js
Other than that, it's pretty good. Nice code, sends no requests, and it makes me happy to read, even though I can clearly tell you're French from looking at the comments and the variable names.
I haven't installed it to try it, but it looks pretty good.
Functionality
Here's a detailed list of every functionality actually implemented into HF Extension.- Ignore multiple occurrence of one thread in the result of a search. Here's two little screenshot for a better explanation. Without the extension and with the extension. It's an easy way to focus on your thread and follow the discussions you were engaged in.
- Show multiple result page in one: The user script will load 1 to 5 pages directly into one, you just have to scroll and then go to the next page to get the 6-10 pages, view more information at one time, don't refresh every time!
- Clicking on the thread name on the search page will directly send you to the last message posted in this thread.
- Add link in reputation note: Did I really need to explain this feature?
- Get a notification when you receive a reputation: A pop-up will .. Pop onto your screen to show you the author of the reputation and the comment to the reputation. A click on the pop-up will open the reputation page in a new tab.
- Show a counter below the textarea : A counter for the 35 characters will appear below text area on answering (fast answer or not) to show you how much character you've typed. Never get an alert for the 35 characters again!
- Allow you to directly answer to a message through PM. The PM will have the selected message quoted, you just have to write your answers
- Add an enhanced code highlighting to every source code posted on a message (everywhere on this forum), make it more readable and easily to fix.
- Optimize the search result with less informations With script
To Do
Here's the functionality I project to add.- Auto report after the 30 second cooldown
- Add possibility to ignore some gory or the locked thread (in search result page)
- Add template for automessage, one click will insert into the texture the message you have defined in the configuration.
- Fix the bug when the link will be finished by a dot.
- Fix the bug when the URL is not linked in the list.
- Add donation button below every post? (Need to be studied)
ChangeLog
- 0.51 Clicking on thread name will redirect you to last message (instead of the first page)
- 0.52 Changed some function to add the use of Promise (optimize the load of the content)
- 0.53 Going to defined page will now show you the next result.
- 0.54
- Added notification when you receive a reputation
- Added a configuration (not complete atm)
- Transform url into clickable link in reputation page
- Added a counter on the bottom of the textarea to show the amount of characters you typed
- Added notification when you receive a reputation
- 0.55
- Added an auto highlight to every source code posted on this forum
- Added a button to send a PM with the quoted text in it.
- Enhanced the configuration panel to add tons of functions
- Added link to given reputation page
- Fixed some bug
- Added an auto highlight to every source code posted on this forum
- 0.56 Add possibility of ignoring signatures from some users.
- 0.57 Hide thread without new message, and hide useless information on search results
Installation
First, you will need a plugin to make it work, here's the download link : - For Firefox : GreaseMonkey
- For Chrome : TamperMonkey
- For Safari : Ninjakit
- For Opera : Violent Monkey
Then, you can just click on the link and install the script, here's the link for the download: https://openuserjs.org/install/Sakuto/HF...ns.user.js
Support
If you want to support my work, you can eventually make a bitcoin donation ( 17BBSLabAuvgazuypCMrB1QKvSubJx94vU ), wear the signature or just give me some review on this user script, every suggestion and comment you will make will be read and thought.Code
[align=center][url=https://hackforums.net/showthread.php?tid=4625726]HF Extension - Fast Answer to message, Sourcecode highlighting, Reputation Notification, Search Optimization and more...[/url]Thank you for reading, have a nice day !


![[Image: wF9v28t.gif]](https://i.imgur.com/wF9v28t.gif)