Bitcoin Forum
May 03, 2024, 07:14:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A kinda shitty script for quoting posts in locked topics  (Read 256 times)
minifrij (OP)
Legendary
*
Offline Offline

Activity: 2324
Merit: 1267


In Memory of Zepher


View Profile WWW
February 18, 2020, 12:26:29 AM
Merited by suchmoon (7), mprep (4), bones261 (4), malevolent (2), Quickseller (2), TryNinja (2), Halab (2), Blacknavy (2), 1miau (1), hd49728 (1), nelson4lov (1), rhomelmabini (1)
 #1

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
1714720479
Hero Member
*
Offline Offline

Posts: 1714720479

View Profile Personal Message (Offline)

Ignore
1714720479
Reply with quote  #2

1714720479
Report to moderator
1714720479
Hero Member
*
Offline Offline

Posts: 1714720479

View Profile Personal Message (Offline)

Ignore
1714720479
Reply with quote  #2

1714720479
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
nelson4lov
Hero Member
*****
Offline Offline

Activity: 2072
Merit: 791


Top Crypto Casino


View Profile
February 18, 2020, 01:12:34 AM
 #2

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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2298


View Profile
February 18, 2020, 01:17:39 AM
 #3

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"
nelson4lov
Hero Member
*****
Offline Offline

Activity: 2072
Merit: 791


Top Crypto Casino


View Profile
February 18, 2020, 01:30:28 AM
 #4

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.


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
rhomelmabini
Hero Member
*****
Offline Offline

Activity: 2002
Merit: 578


View Profile
February 18, 2020, 01:46:27 AM
 #5

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!