Pages:
Author

Topic: popup userscripts suggestion (Read 711 times)

sr. member
Activity: 338
Merit: 337
March 02, 2024, 01:48:04 PM
#40
If you have any idea what I can do to fix this, I'll try Smiley
I think no one uses this script now, so there is no need to do anything
anyway, we understand the cause of the problem..


However it would be great to solve this problem..
I don't know anything about AWS server, any help to solve this problem is welcome

another edit!: I found my own way to make the script work by adding another plugin
sr. member
Activity: 448
Merit: 560
Crypto Casino and Sportsbook
March 02, 2024, 10:28:34 AM
#39
Nice suggestion Op Opening using a pop up function would be nice but unfortunately I don't think it is really necessary. Secondly I noticed theymos hardly takes suggestion for upgrades like these frequently . He hardly even accepts edits or additional functions to the forum.
Anyways functions like these can come with a few bugs and even slow loading for users with poor or unstable internet connection.

Sincerely the idea is a nice but I believe it would be better as it is. If you don't wish a opening a new page, you can alternatively right-click and open profile via a new tab. Plus if you make use of BPIP extension you get extra details about the user's profile without clicking.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
March 02, 2024, 09:34:00 AM
#38
I saw this doesn't work anymore, and didn't want to post on the local board. My (donated) AWS server is now using Cloudfront (since a DDoS-attack a while ago), so I guess that could the reason. If you have any idea what I can do to fix this, I'll try Smiley
sr. member
Activity: 338
Merit: 337
September 18, 2020, 11:57:05 AM
#37
There is no new just last change for "Original unedited post (loyce backup)" before close my account ...
https://pastebin.com/AP2XK975

Note: this only works with Tampermonkey‬
I will Lock this topic also, thank you all
sr. member
Activity: 840
Merit: 375
September 11, 2020, 07:11:33 AM
#36
Attempt to add "Find the difference between edited and unedited post" feature
Any Dev help to add this feature are welcome Smiley ( I haven't done it yet )

I actually thought of the same idea just recently! I will try to implement it in the next version release of my user script.



Image tags seem to change within the HTML code over time, so unedited posts with images might be marked as edited. I'm not sure yet how to tackle this.

Hm, maybe comparing only the inner-html of elements instead of comparing the whole html may solve this?

Edit: Nevermind, just checked how bitcointalk serves images via "https://ip.bitcointalk.org/" and you are right, the image token changes overtime... Maybe ignore image tags when comparing in this case?

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
September 11, 2020, 06:56:59 AM
#35
Attempt to add "Find the difference between edited and unedited post" feature
For my topic details, I just use diff to see if anything changed.
One of the problems was that "Today" in archived quotes turns into the date after a day. And img-tags often give "false positives":
Image tags seem to change within the HTML code over time, so unedited posts with images might be marked as edited. I'm not sure yet how to tackle this.

This would be a very cool feature! While testing my "topic details", I noticed many people (including myself) do ninja edits, such as removing a space or adding a dot. It would be nice to ignore those, but as always lack of time gets me.

I guess you will get trouble because you are relying on loyceclub's database (it does not scrap data on editing time, not sure)
Correct. That would require re-scraping all posts. TryNinja is giving it a shot.
legendary
Activity: 2310
Merit: 4085
Farewell o_e_l_e_o
September 10, 2020, 08:25:33 PM
#34
hi tranthidung, I didn't quite understand your point
Did you mean the " Last edit like this " or you mean that edited post before 10,15 min ?

if you mean 'Last edit' i think there is no need to add it ( because it appears when we hover over the date )
I meant for reserved posts (to edit and add contents later) from post-quota hunters, you can detect it with such a new script.

In some campaigns, managers require posts have to be spread in at least 5 days AND / OR no more than 3 or 4 posts per day will be counted for payments. It is what some do, make 'reserved posts' to get enough 4 posts per day or to meet a deadline postcount. Then, they come back later to edit contents, convert reserved posts to contentful posts.

You can read the thread I gave in which people already discussed about that style.
sr. member
Activity: 338
Merit: 337
September 10, 2020, 01:17:52 PM
#33
Counter for the period between initial post and first (or even include the last) editing time.
hi tranthidung, I didn't quite understand your point
Did you mean the " Last edit like this " or you mean that edited post before 10,15 min ?

if you mean 'Last edit' i think there is no need to add it ( because it appears when we hover over the date )
legendary
Activity: 2310
Merit: 4085
Farewell o_e_l_e_o
September 10, 2020, 10:24:34 AM
#32
Attempt to add "Find the difference between edited and unedited post" feature
Any Dev help to add this feature are welcome Smiley ( I haven't done it yet )
Interesting. I don't use it but I know a potential additional feature for your script.

Counter for the period between initial post and first (or even include the last) editing time.
Last year (maybe), there is a discussion thread on a hidden tricky method of spammers to get their post quota.

They simply make initial post like that "Reserve" to reserve enough posts for post quota to get payment each week. Then, they come back later to add contents.

I guess you will get trouble because you are relying on loyceclub's database (it does not scrap data on editing time, not sure)

I am going to search and give you link of that discussion thread later.  Cheesy


Found it: Posting reserve?
sr. member
Activity: 338
Merit: 337
September 10, 2020, 10:13:32 AM
#31
Attempt to add "Find the difference between edited and unedited post" feature
Any Dev help to add this feature are welcome Smiley ( I haven't done it yet )


sr. member
Activity: 338
Merit: 337
August 25, 2020, 12:43:00 PM
#30
there another small update here: https://pastebin.com/dmjiqUsE (One of them include ".post" instead of "body" content)

  • Have you noticed other problems?
  • Did you encounter problems with speed? like me (Maybe because my connection is slow)
  • Any suggestion to change the code? (to be faster and better) Because as you know, my knowledge of javascript is modest.

sr. member
Activity: 840
Merit: 375
August 23, 2020, 03:45:56 PM
#29
Personally I prefer to open things like that up in a separate tab rather than have a scroll-over pop-up.  Right now, Amazon Prime Video has gone way overboard with features like this, and it's to a point where you really have to watch where your cursor wanders when you've got your hand on the mouse--it's extremely annoying.
I actually thought of this and agree with you to a certain degree. That's why I'm right now implementing the ability to disable the features by toggling switches. All the user have to do to surf freely without worrying about accidentally hovering an username and have a popup opened is to toggle the switch Smiley

Looks like this for the moment:

legendary
Activity: 3500
Merit: 6981
Top Crypto Casino
August 23, 2020, 03:21:01 PM
#28
I prefer a pop up when viewing someone's profile than being redirected to another page.
Personally I prefer to open things like that up in a separate tab rather than have a scroll-over pop-up.  Right now, Amazon Prime Video has gone way overboard with features like this, and it's to a point where you really have to watch where your cursor wanders when you've got your hand on the mouse--it's extremely annoying.

I don't think OP's idea is bad at all, but I don't think it's necessary or something that I'd find useful myself.  And I can pretty much guarantee that this will find itself in the graveyard of suggested features that got ignored by TheymosTM.

Edit:
Didn't read the entire thread before posting the above, and it looks like the talented coders took OP's idea and ran with it, which is great to see because of the aforementioned graveyard.  Props to those who helped him out.
sr. member
Activity: 840
Merit: 375
August 23, 2020, 01:02:22 PM
#27
The code has been updated here https://pastebin.com/xPeyYLLj
there is a very simple problem with (unedited loyce backup) link on top popup box

also, there is an unresolved problem appears when clicking on a old post (the posts that don't have unedited backup)
the code needs to be rewritten, organized, and shortened

It's not a problem your script works correctly, this error showing up doesn't affect the behavior , you are already handling the Error 404 with this code snippet
Quote
if (this.readyState == 4 && this.status == 404)
                modalBody.innerHTML = "Sorry, there no unedited backup for this post.";

But you can't prevent the error from showing up on the console AFAIK.
sr. member
Activity: 338
Merit: 337
August 23, 2020, 02:59:48 AM
#26
The code has been updated here https://pastebin.com/xPeyYLLj
there is a very simple problem with (unedited loyce backup) link on top popup box

also, there is an unresolved problem appears when clicking on a old post (the posts that don't have unedited backup)
the code needs to be rewritten, organized, and shortened
legendary
Activity: 2758
Merit: 6830
August 22, 2020, 07:57:06 PM
#25
When do you get that error? I tried your script and I never get it
When trying to post the script code in the forum. Like I said, Cloudflare blocks inputs that appear suspicious (like HTML codes that inject JS).

https://support.cloudflare.com/hc/en-us/articles/200172016-Understanding-the-Cloudflare-Web-Application-Firewall-WAF-
sr. member
Activity: 840
Merit: 375
August 22, 2020, 07:53:29 PM
#24
~
When do you get that error? I tried your script and I never get it
legendary
Activity: 2758
Merit: 6830
August 22, 2020, 06:37:43 PM
#23
Maybe some characters in code are prohibited Thus this error appears
Post it on pastebin and link it here so I can take a look. You are loading HTML stuff through JS which is commonly used for XSS attacks, so Cloudflare dislikes it.
sr. member
Activity: 338
Merit: 337
August 22, 2020, 06:33:59 PM
#22
This function returns an object that has methods to actually request html from other websites (see this for details)
OK thanks Aveatrex  great information I will try to learn more in the future

The extension is pretty much finished, it has 2 features: Opening the user profile within a popup when you hover his username and open the unedited post within a popup when you click on the date. ...
I can not wait to experience  Cheesy Good luck..

At the same time I tried to complete my own superscript popup unedited post (Thanks to Google Grin)
I learned a lot during this trip

https://i.ibb.co/mc3sykY/uneditedpost.gif

But I faced the problem when inserting code here this msg Show me https://i.ibb.co/0ZLC5hN/image.png
Maybe some characters in code are prohibited Thus this error appears


( It needs more improvement and bug fixes, but it works )
code: https://pastebin.com/xPeyYLLj (thanks to TryNinja)
sr. member
Activity: 840
Merit: 375
August 22, 2020, 05:53:18 PM
#21
I don't know how to get the loyce data

You can use fetch() like you said or you can make an XMLHttp request. Here's the XMLhttp request function (in javascript) that I use which you can find detailed on stackoverflow:

Quote from: stackoverflow
function request() {
    try {
       return new XMLHttpRequest();
    }
    catch (error) {}
    try {
       return new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (error) {}
    try {
       return new ActiveXObject("Microsoft.XMLHTTP");}
    catch (error) {}
  
    throw new Error("Couldn't make the request.");
  }

This function returns an object that has methods to actually request html from other websites (see this for details)



The extension is pretty much finished, it has 2 features: Opening the user profile within a popup when you hover his username and open the unedited post within a popup when you click on the date. Now gotta go through the hassle of getting approved in Chrome Web Store. If you have other ideas/suggestions let me know so I can try adding them.
Pages:
Jump to: