Bitcoin Forum
February 18, 2020, 04:11:33 PM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A kinda shitty script for quoting posts in locked topics  (Read 88 times)
minifrij
Legendary
*
Offline Offline

Activity: 2142
Merit: 1214


In Memory of Zepher


View Profile WWW
Today at 12:26:29 AM
Merited by suchmoon (7), mprep (4), bones261 (4), Quickseller (2), Blacknavy (2), Halab (2), nelson4lov (1), 1miau (1), rhomelmabini (1), hd49728 (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
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
nelson4lov
Sr. Member
****
Offline Offline

Activity: 994
Merit: 363


★Bitvest.io★ Play Plinko or Invest!


View Profile WWW
Today at 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.



BIG WINNER!
[15.00000000 BTC]


▄████████████████████▄
██████████████████████
██████████▀▀██████████
█████████░░░░█████████
██████████▄▄██████████
███████▀▀████▀▀███████
██████░░░░██░░░░██████
███████▄▄████▄▄███████
████▀▀████▀▀████▀▀████
███░░░░██░░░░██░░░░███
████▄▄████▄▄████▄▄████
██████████████████████
▀████████████████████▀
▄████████████████████▄
██████████████████████
█████▀▀█▀▀▀▀▀▀██▀▀████
█████░░░░░░░░░░░░░▄███
█████░░░░░░░░░░░░▄████
█████░░▄███▄░░░░██████
█████▄▄███▀░░░░▄██████
█████████░░░░░░███████
████████░░░░░░░███████
███████░░░░░░░░███████
███████▄▄▄▄▄▄▄▄███████
██████████████████████
▀████████████████████▀
▄████████████████████▄
███████████████▀▀▀▀▀▀▀
███████████▀▀▄▄█░░░░░█
█████████▀░░█████░░░░█
███████▀░░░░░████▀░░░▀
██████░░░░░░░░▀▄▄█████
█████░▄░░░░░▄██████▀▀█
████░████▄░███████░░░░
███░█████░█████████░░█
███░░░▀█░██████████░░█
███░░░░░░████▀▀██▀░░░░
███░░░░░░███░░░░░░░░░░
▀██░▄▄▄▄░████▄▄██▄░░░░
▄████████████▀▀▀▀▀▀▀██▄
█████████████░█▀▀▀█░███
██████████▀▀░█▀░░░▀█░▀▀
███████▀░▄▄█░█░░░░░█░█▄
████▀░▄▄████░▀█░░░█▀░██
███░▄████▀▀░▄░▀█░█▀░▄░▀
█▀░███▀▀▀░░███░▀█▀░███░
▀░███▀░░░░░████▄░▄████░
░███▀░░░░░░░█████████░░
░███░░░░░░░░░███████░░░
███▀░██░░░░░░▀░▄▄▄░▀░░░
███░██████▄▄░▄█████▄░▄▄
▀██░████████░███████░█▀
▄████████████████████▄
████████▀▀░░░▀▀███████
███▀▀░░░░░▄▄▄░░░░▀▀▀██
██░▀▀▄▄░░░▀▀▀░░░▄▄▀▀██
██░▄▄░░▀▀▄▄░▄▄▀▀░░░░██
██░▀▀░░░░░░█░░░░░██░██
██░░░▄▄░░░░█░██░░░░░██
██░░░▀▀░░░░█░░░░░░░░██
██░░░░░▄▄░░█░░░░░██░██
██▄░░░░▀▀░░█░██░░░░░██
█████▄▄░░░░█░░░░▄▄████
█████████▄▄█▄▄████████
▀████████████████████▀




Rainbot
Daily Quests
Faucet
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2058
Merit: 1866


BountyPortals.com


View Profile WWW
Today at 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"

The head executive of the executive office of the department of the redundancy department’s office
nelson4lov
Sr. Member
****
Offline Offline

Activity: 994
Merit: 363


★Bitvest.io★ Play Plinko or Invest!


View Profile WWW
Today at 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.




BIG WINNER!
[15.00000000 BTC]


▄████████████████████▄
██████████████████████
██████████▀▀██████████
█████████░░░░█████████
██████████▄▄██████████
███████▀▀████▀▀███████
██████░░░░██░░░░██████
███████▄▄████▄▄███████
████▀▀████▀▀████▀▀████
███░░░░██░░░░██░░░░███
████▄▄████▄▄████▄▄████
██████████████████████
▀████████████████████▀
▄████████████████████▄
██████████████████████
█████▀▀█▀▀▀▀▀▀██▀▀████
█████░░░░░░░░░░░░░▄███
█████░░░░░░░░░░░░▄████
█████░░▄███▄░░░░██████
█████▄▄███▀░░░░▄██████
█████████░░░░░░███████
████████░░░░░░░███████
███████░░░░░░░░███████
███████▄▄▄▄▄▄▄▄███████
██████████████████████
▀████████████████████▀
▄████████████████████▄
███████████████▀▀▀▀▀▀▀
███████████▀▀▄▄█░░░░░█
█████████▀░░█████░░░░█
███████▀░░░░░████▀░░░▀
██████░░░░░░░░▀▄▄█████
█████░▄░░░░░▄██████▀▀█
████░████▄░███████░░░░
███░█████░█████████░░█
███░░░▀█░██████████░░█
███░░░░░░████▀▀██▀░░░░
███░░░░░░███░░░░░░░░░░
▀██░▄▄▄▄░████▄▄██▄░░░░
▄████████████▀▀▀▀▀▀▀██▄
█████████████░█▀▀▀█░███
██████████▀▀░█▀░░░▀█░▀▀
███████▀░▄▄█░█░░░░░█░█▄
████▀░▄▄████░▀█░░░█▀░██
███░▄████▀▀░▄░▀█░█▀░▄░▀
█▀░███▀▀▀░░███░▀█▀░███░
▀░███▀░░░░░████▄░▄████░
░███▀░░░░░░░█████████░░
░███░░░░░░░░░███████░░░
███▀░██░░░░░░▀░▄▄▄░▀░░░
███░██████▄▄░▄█████▄░▄▄
▀██░████████░███████░█▀
▄████████████████████▄
████████▀▀░░░▀▀███████
███▀▀░░░░░▄▄▄░░░░▀▀▀██
██░▀▀▄▄░░░▀▀▀░░░▄▄▀▀██
██░▄▄░░▀▀▄▄░▄▄▀▀░░░░██
██░▀▀░░░░░░█░░░░░██░██
██░░░▄▄░░░░█░██░░░░░██
██░░░▀▀░░░░█░░░░░░░░██
██░░░░░▄▄░░█░░░░░██░██
██▄░░░░▀▀░░█░██░░░░░██
█████▄▄░░░░█░░░░▄▄████
█████████▄▄█▄▄████████
▀████████████████████▀




Rainbot
Daily Quests
Faucet
rhomelmabini
Sr. Member
****
Offline Offline

Activity: 560
Merit: 304


Bitcointalk Patroller


View Profile
Today at 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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!