Author

Topic: [User Script] Instant Profile & Unedited posts Displayer v0.11 (Read 422 times)

legendary
Activity: 2086
Merit: 1282
Logo Designer ⛨ BSFL Division1
@Aveatrex that is great working script and I would suggest adding one more thing, because most people prefer to use browser extensions, so maybe you can also consider making that after testing and when script is free of major bugs and errors.
Good thing code is open source and everyone can review it.
legendary
Activity: 3304
Merit: 8633
Crypto Swap Exchange
a very helpful script that i will install on my brave browser
are translations into other languages ​​of this thread also desired? if so, i would reserve polish and german and get them ready in the next few days. actually everything should be so understandable - but if you as the author want to have the translations, let me know it  Wink
sr. member
Activity: 840
Merit: 375
Bump




Found a way to convert HTML to bbcode and vice versa to make the end result beautified. I'm working on it, it should be finished and implemented in the next version once I get some free time.

I'm also thinking of making a pop display related to merits or other potentially useful information. Let me know your suggestions
sr. member
Activity: 840
Merit: 375
What happens if someone includes a quote or edits a quote on their post? Does it show up as a single uniform post, or does it identify what is a quote and what's not?



That's another inconvenient... It shows up as a single block of ugly raw text without differentiating quotes from answers. Another detail, it skips image tags so it won't show an image change as a difference between 2 posts because bitcointalk displays images via tokens that change. I wonder if I can somehow implement bbcode formatting via javascript to make it a bit more readable

I mean, like you said it's still use-able but I hate incomplete features Tongue
legendary
Activity: 2758
Merit: 6830
What do you think? is it worth being released in the next version? If you have suggestions to make it better, please let me know.
That looks great! I tried to do something similar in my post archive but it was also not working as I wanted because of the HTML tags. But IMO this is good enough and helps you have an idea of what changed from the original post.

What happens if someone includes a quote or edits a quote on their post? Does it show up as a single uniform post, or does it identify what is a quote and what's not?
sr. member
Activity: 840
Merit: 375
Managed to implement a new "highlight differences" feature based on this suggestion, here is how it looks:



-Red highlight + crossed out: Means that part was in the original post and was removed in the edited post.

-Green highlight: Means that part wasn't in the original post and was added in the edited post.

-Neutral: Didn't change between original and edited post.

It's usable but still doesn't look that good because it's extremely hard (or nearly impossible?) to compare the html elements of the edited and unedited post because of the dynamic nature of html, instead it compares the inner text of the html elements. The drawbacks of this is that the end result is an unformated text like shown above.

What do you think? is it worth being released in the next version? If you have suggestions to make it better, please let me know.

sr. member
Activity: 840
Merit: 375

Is it normal or resolutions of my laptop/pc I used to affect the performance? Well, I still could scroll it down by using the keyboard just for the first time I was thought I could not do it since there's no scroll bar inside.


It probably has to do with your laptop's screen resolution. Some css tricks may solve the problem for you, I'll see what I can do in that matter. In the meanwhile, you can scroll like you said by using keyboard arrows.


2) When the user clicks anywhere outside of the modal, close it (Source: w3schools)
    sometimes there is a difficulty to close a pop-up especially when the post is long

If you press the Escape key on your keyboard, the pop up will close. Having it close also when the user clicks outside of the pop up is a good suggestion idea for future versions.


1) Display content align like the original post rather than center it

Noted.
sr. member
Activity: 338
Merit: 337
hi Aveatrex good job  Smiley,
I have these suggestions or notes  :

1) Display content align like the original post rather than center it
2) When the user clicks anywhere outside of the modal, close it (Source: w3schools)
    sometimes there is a difficulty to close a pop-up especially when the post is long
sr. member
Activity: 1008
Merit: 308
Hi Aveatrex, I have already used your add-ons (v0.11) for a while and there's no glitch that I found. I just wondering why my instant profile does not fully display such as in your demo, moreover if the profile I watched wearing a signature.



Is it normal or resolutions of my laptop/pc I used to affect the performance? Well, I still could scroll it down by using the keyboard just for the first time I was thought I could not do it since there's no scroll bar inside.
legendary
Activity: 2044
Merit: 1018
Not your keys, not your coins!
Good work and welcome you and your script to List of Bitcointalk.org Userscripts/ Add-ons

TopicsDatewritten bySectionMerit
_________________________________________________________________________________________________________________________
Instant Profile & Unedited posts Displayer v0.1106/09/2020AveatrexForum theme15+
sr. member
Activity: 840
Merit: 375
Here's a glitch that I just found: https://i.imgur.com/95TONhP.png

I could be wrong, but this seems to happen only when I hover my mouse after a few seconds from loading the page.

Thank you for reporting the bug. I was able to recreate the glitch you mentioned and added these measures in an attempt to fix it:

-Profile & Unedited posts will only be displayed after 3 seconds after the page has loaded

-When the pop up is closed, instead of making the pop html element invisible, it is completely deleted from the page; which means that even if somehow the glitch appears again, closing the pop up will make the page go back to normal state.

Please download the latest version and let me know if you find other bugs Smiley
staff
Activity: 3500
Merit: 6152
Here's a glitch that I just found: https://i.imgur.com/95TONhP.png

I could be wrong, but this seems to happen only when I hover my mouse after a few seconds from loading the page.
sr. member
Activity: 840
Merit: 375
Hello community,

First of all, thanks to 0x256 for suggesting this.

Demo:



How to use:
1-Install an user script manager extension: Tampermonkey, Greasymonkey or Violentmonkey depending on your favorite browser.
2-Download the user script here:https://github.com/Aveatrex07/BCT-UserScripts
3-Import the .user.js file into your user script manager extension.

Features:
*Hover on any username to display his profile
*Click on any post date box to display the unedited version (if existing)
*Click on "X" button or press "Escape" key to close the pop up
*Open source
*More to be updated

Licence:
MIT Licence, please read before installing/using.

Notes:
*There may be bugs/glitches that needs to be fixed. If you encounter one, please report it here or contribute the code for fix.
*The second feature relies on LoyceV unedited posts archive. See here; For debugging purposes,if you open the Dev Console (Ctrl + F12) and click on a post date box, the link to the archived post on loyce.club will be logged out.
*All suggestions are welcome!


Versions log:


v0.11 - Bugs/Glitches Fix Attempt

v0.1 - Initial release
Jump to: