Author

Topic: A kinda shitty script for quoting posts in locked topics (Read 256 times)

hero member
Activity: 2002
Merit: 578
Haha. I think I said it badly. I meant like a github repo. Currently there wouldn't be a way to track contributions to know if anybody did modified the code/made it better.

Yeah, that will be a thing or make it as an extension over a browser that will be nice too.



And the good old days' of a hassle for making a new tab and open a UNIX converter for time and the copy-pasting the links are over, thanks for this contribution @minifrij. This will really be handy.
hero member
Activity: 2030
Merit: 789
Top Crypto Casino
Btw, I wanted to ask if you plan to make it open source so other devs can contribute.
He literally posted the code. You looked at the code. I am what you want him to do to make his code "open source"

Haha. I think I said it badly. I meant like a github repo. Currently there wouldn't be a way to track contributions to know if anybody did modified the code/made it better.

copper member
Activity: 2870
Merit: 2298
Btw, I wanted to ask if you plan to make it open source so other devs can contribute.
He literally posted the code. You looked at the code. I am what you want him to do to make his code "open source"
hero member
Activity: 2030
Merit: 789
Top Crypto Casino
Hello @minifrij, I took some time to go through your user script and I was impressed by what I saw. I'm not an expert JS developer but I was able to read majority of the codes (Thanks for the comments!). I don't know much of Jquery though. Btw, I wanted to ask if you plan to make it open source so other devs can contribute. Once again, nice one from you. Kudos to you. Looking forward to testing and actually using it.
legendary
Activity: 2324
Merit: 1267
In Memory of Zepher
Hey,

I've made a shitty userscript for quoting posts in locked topics. It's certainly not a great solution, but I had a few hours to spare so maybe it'll help someone.

You can download it here.

Example screenshot:




Here's a brief list of issues:
Quotes
- It tries to delete all the quotes in the post, as I didn't want to bother going through and parsing them all
- - Unfortunately, it seems that if a post starts with a quote it will delete everything from there to the end of the last quote.

Images
- Images only seem to be parsed properly if they're on the start of a new line. I don't know why. If they're not on the start of a new line, they'll just be deleted (maybe).

Formatting
- This script has a very basic HTML -> bbcode converter. It supports the following tags:
hr, btc, b, i, u, s, url, img, size, glow, color.
Everything not in this list is stripped.
- - This script doesn't deal very well with nested tags, and so will probably break the layout trying to parse the bbcode. It's fixable with a bit of effort, just not perfect.

Quote date
- The quote date may be incorrect. This is because it gets the time of the post based on your computer, rather than the server. Luckily, this is essentially just cosmetic and will still link up even if completely off (I think).

It should also be noted that this script has barely been tested, and may turn out to be completely useless in the grand scheme of things. Regardless it was a fun little project.



You can report issues here if you like, but being completely honest I probably won't ever fix them. If anyone wants to try to fix/improve anything here, be my guest. I'll update the link in the OP in which case.

Thanks,
Minifrij
Jump to: