Pages:
Author

Topic: [Userscript] Report to moderator on post history (Read 977 times)

legendary
Activity: 1232
Merit: 1080
February 04, 2019, 02:29:26 AM
#28
Maybe its been possible if you report a post on a thread that the "Report to Moderator button" disappears and is no longer clickable !

Would be better for the Reporters in a Spam thread to see if the post already is reported and that would also be against double reports and bad reports !

Is only a suggestion.

It would be better if a warning popped up rather than removing it completely but I do agree that something should be put in place. But I would think that if a post has more reports then it goes to the top of the queue so if someone has already reported it there is no need to worry about double or multiple reports. I understand from an individual viewpoint so that they don't report it twice to avoid their report accuracy going down or wasting their time.
legendary
Activity: 2842
Merit: 1510
Why do you not just add this functionality directly on the forum instead of making users use a script?
The script is there for anyone that finds it useful. Just because users lobby for a certain functionality doesn't mean that it's also good idea in the long run. I see this as an experiment to see what we could improve in the future.

Must say I find it weird that admins are writing userscript hacks. Why not add as experimental options in the user preferences instead? You have access to the back-end database then, so you could query pre-existing reports for example.
hero member
Activity: 672
Merit: 526
This has probably been suggested before as a change in the forum, but maybe creating a script is simpler.

Show the amount of Merit that has been distributed in a topic in the title on the section list of topics. You would know how many merits a topic received before opening it. In the same way, we can see the number of responses and views that a topic had.
administrator
Activity: 3738
Merit: 2948
The only way this can work inside the script is if it starts saving the reported posts in a file/database and check every single one before rendering the “Report to moderator” button.

Yes, I'd rather focus on simpler features to implement first but it's a good idea. There are also some cases where you'd want to report a post again (adding more information, etc). It would probably be nice to have an indication, forum-side, that you already reported it though.
legendary
Activity: 2758
Merit: 6830
Maybe its been possible if you report a post on a thread that the "Report to Moderator button" disappears and is no longer clickable !

Would be better for the Reporters in a Spam thread to see if the post already is reported and that would also be against double reports and bad reports !

Is only a suggestion.
The only way this can work inside the script is if it starts saving the reported posts in a file/database and check every single one before rendering the “Report to moderator” button.
legendary
Activity: 2940
Merit: 3030
Maybe its been possible if you report a post on a thread that the "Report to Moderator button" disappears and is no longer clickable !

Would be better for the Reporters in a Spam thread to see if the post already is reported and that would also be against double reports and bad reports !

Is only a suggestion.
administrator
Activity: 3738
Merit: 2948
Why do you not just add this functionality directly on the forum instead of making users use a script?
The script is there for anyone that finds it useful. Just because users lobby for a certain functionality doesn't mean that it's also good idea in the long run. I see this as an experiment to see what we could improve in the future.

- Provide accessible buttons with links for modlog, seclog etc on the top bar area next to the my messages menu?
Maybe admins can put it on the MORE tab/menu
This seems easy and useful.

All I did was add an include for the “View latest topics” page.
Thanks! Forgot to include that page as well, added to the OP.
legendary
Activity: 2383
Merit: 1551
dogs are cute.
I'll be on to this.
Thanks.

As with the discussions on some thread, it will be helpful in the local board to show the trust score, not necessary in off-topic, archival board and Politics & Society.

Also, make the Trust depth to 4 as default (currently 2), since there are instances that only DT3-4 leave some -ve trust to some scammers but these newbies or any rank cannot see those feedbacks and still continue to trade and end up of being scammed.
Like suchmoon said, bad idea. It'll fuck up things for the worse. Scammers would have a better reputation and will seem more trust-worthy than the scam-busters, if such a disaster were to happen.

I think both options can be fixed with bookmarks, if you bookmark the modlog and seclog you have access to them with one click and you can also bookmark the report history ( if you have 300+ good reports ) It's the same.
Yes, but very few of them are aware of such links, and there's only so much of bookmarks that you can possibly have in your bookmarks list. Idk, just thought it might be worth mentioning, maybe not.

Is it possible to create a script that provides a checkbox option in a thread which allows to report multiple posts that fit under the same category?
staff
Activity: 2436
Merit: 2347
The script does not work if you view the latest topics person. It would be nice to make the script work there.
Can you test this?
All I did was add an include for the “View latest topics” page.

Yes, it works. Thank you.
legendary
Activity: 2758
Merit: 6830
The script does not work if you view the latest topics person. It would be nice to make the script work there.
Can you test this?

Code:
// ==UserScript==
// @name     Post history report button
// @version  1
// @grant    none
// @include  https://bitcointalk.org/index.php?action=profile;u=*;sa=showPosts*
// @include  https://bitcointalk.org/index.php?action=profile;threads;u=*;sa=showPosts*
// @require  https://code.jquery.com/jquery-2.2.4.min.js
// ==/UserScript==

var postLinks = $('td.middletext a:last-of-type');
var buttonLink = $("span.middletext").slice(1);

for (var i = 0; i < postLinks.length; i++) {
  var postLink = $(postLinks[i]);
  var reportLink = "Report to moderator";
  $(buttonLink[i]).prepend (reportLink);
}

All I did was add an include for the “View latest topics” page.
legendary
Activity: 2212
Merit: 1947
~snip~

I really liked your script. Thank you for your work. Would be cool if you modify the script.
The script does not work if you view the latest topics person. It would be nice to make the script work there.

I translated your theme for the Russian locale and added a small instruction on how to use the script.  
staff
Activity: 2436
Merit: 2347
The script does not work if you view the latest topics person. It would be nice to make the script work there.
member
Activity: 168
Merit: 15
Future of Security Tokens
Why do you not just add this functionality directly on the forum instead of making users use a script?
I second this, I have been searching for the function for the past six hours, and i do not know much about scripts and how they are used.
It might take some learning, I am doing a bit of research. It would be much easier if it was added directly.
copper member
Activity: 2870
Merit: 2298
Why do you not just add this functionality directly on the forum instead of making users use a script?
copper member
Activity: 155
Merit: 173
Member of Cryptios - https://cryptios.com/
After recent discussion about it's usefulness, I've made a small userscript to add the Report to moderator button on the Show lasts posts of this person page.

You can upload it to a user script manager (eg:GreaseMonkey for FF).
Code:
Code:
// ==UserScript==
// @name     Post history report button
// @version  1
// @grant    none
// @include  https://bitcointalk.org/index.php?action=profile;u=*;sa=showPosts*
// @require  https://code.jquery.com/jquery-2.2.4.min.js
// ==/UserScript==

var postLinks = $('td.middletext a:last-of-type');
var buttonLink = $("span.middletext").slice(1);

for (var i = 0; i < postLinks.length; i++) {
  var postLink = $(postLinks[i]);
  var reportLink = "Report to moderator";
  $(buttonLink[i]).prepend (reportLink);
}

Here is how it looks:

LMK if you found issues.

Good project! BTC to the moon!
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Also, make the Trust depth to 4 as default (currently 2), since there are instances that only DT3-4 leave some -ve trust to some scammers but these newbies or any rank cannot see those feedbacks and still continue to trade and end up of being scammed.

Absolutely not. You can still see the feedbacks under untrusted. But including 4 levels into the trust score (which is what you seem to be suggesting) would be a disaster. There are too many unreliable ratings at that level. If DT3-4 have credible accusations they should bring it up and someone in DT1-2 will confirm it.
legendary
Activity: 2184
Merit: 3134
₿uy / $ell
- Provide accessible buttons with links for modlog, seclog etc on the top bar area next to the my messages menu?
 - A report button as well next on the top bar next to the my messages option which shows how many reports you have and what's the status of each report.

I think both options can be fixed with bookmarks, if you bookmark the modlog and seclog you have access to them with one click and you can also bookmark the report history ( if you have 300+ good reports ) It's the same.
copper member
Activity: 2142
Merit: 1305
Limited in number. Limitless in potential.
- Show a banned status on a profile if a user is banned, after getting details from seclog?
I'll be on to this.

- Provide accessible buttons with links for modlog, seclog etc on the top bar area next to the my messages menu?
Maybe admins can put it on the MORE tab/menu

- Ability to view trust across all boards, since a few boards hide them, including meta.
As with the discussions on some thread, it will be helpful in the local board to show the trust score, not necessary in off-topic, archival board and Politics & Society.

Also, make the Trust depth to 4 as default (currently 2), since there are instances that only DT3-4 leave some -ve trust to some scammers but these newbies or any rank cannot see those feedbacks and still continue to trade and end up of being scammed.
legendary
Activity: 2170
Merit: 1789
If there's enough interest, we might turn the OP into a collection of userscripts (with small features that might actually be added to the forum in the long run if they turn out to be really useful for a lot of people).

I support this. I've used some user scripts being posted here but when my laptop went broke I have a hard time finding the script again. It would be nice if there's an index thread for any useful user script for the forum.
vip
Activity: 490
Merit: 271
Good Work Cyrus and welcome back to development Cheesy

I think it should be added officially to the forum so that everyone can use it usually.
Pages:
Jump to: