Bitcoin Forum
April 25, 2024, 07:16:45 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [Userscript] Report to moderator on post history  (Read 979 times)
Cyrus (OP)
Ninja
Administrator
Legendary
*
Offline Offline

Activity: 3752
Merit: 2948



View Profile
January 24, 2019, 07:04:18 PM
Last edit: January 26, 2019, 01:58:28 PM by Cyrus
Merited by Welsh (10), dbshck (10), theymos (5), EFS (5), xandry (5), suchmoon (4), Xal0lex (4), bones261 (4), mprep (3), malevolent (3), TheBeardedBaby (3), sncc (3), LoyceV (2), Mr. Big (2), joniboini (2), qwk (1), Daniel91 (1), Lafu (1), stompix (1), o_e_l_e_o (1), madnessteat (1), morvillz7z (1), Piggy (1), hakka (1), alanst (1)
 #1

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.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 = "<a href=" + postLink.prop("href").replace("index.php?", "index.php?action=reporttm;").replace(".msg", ";msg=") + ">Report to moderator</a>";
  $(buttonLink[i]).prepend (reportLink);
}

Here is how it looks:


LMK if you found issues.

LE: Included to latest topics page as well.

1714029405
Hero Member
*
Offline Offline

Posts: 1714029405

View Profile Personal Message (Offline)

Ignore
1714029405
Reply with quote  #2

1714029405
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Cyrus (OP)
Ninja
Administrator
Legendary
*
Offline Offline

Activity: 3752
Merit: 2948



View Profile
January 24, 2019, 07:10:44 PM
 #2

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).

Lafu
Legendary
*
Offline Offline

Activity: 2954
Merit: 3037



View Profile
January 24, 2019, 07:15:56 PM
 #3

Awesome nice thanks for that Button!
Guess reporting will be easyer now for some or the most!
 

TheBeardedBaby
Legendary
*
Offline Offline

Activity: 2184
Merit: 3134


₿uy / $ell


View Profile
January 24, 2019, 07:17:04 PM
 #4

Great, I was waiting for this for ages.
The next one is a report button in the search result Smiley

Veleor
Legendary
*
Offline Offline

Activity: 1484
Merit: 1653


Rêlêå§ê ¥ðµr MïñÐ


View Profile WWW
January 24, 2019, 09:44:00 PM
 #5

Is it possible to hide user's posts from a certain section, eg Bounties (Altcoins)?
TryNinja
Legendary
*
Offline Offline

Activity: 2814
Merit: 6971



View Profile WWW
January 24, 2019, 09:54:56 PM
 #6

Is it possible to hide user's posts from a certain section, eg Bounties (Altcoins)?
Ignore the board and they will not show up.

Profile -> Ignore Boards Preferences -> Select “Bounties (Altcoin)”

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
FatBen
Jr. Member
*
Offline Offline

Activity: 34
Merit: 18


View Profile
January 24, 2019, 09:59:53 PM
 #7

works great, just tested it  Grin
pugman
Legendary
*
Offline Offline

Activity: 2383
Merit: 1551


dogs are cute.


View Profile WWW
January 24, 2019, 11:55:06 PM
Merited by dbshck (4), Cyrus (2)
 #8

Could we also have scripts for these purposes, IF POSSIBLE of course :
 - Show a banned status on a profile if a user is banned, after getting details from seclog?
 - Ability to view trust across all boards, since a few boards hide them, including meta.
 - Have a DT button in the trust page of others to view the default trust on their account, to avoid confusion?
 - 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 can suggest some more later, probably.

JusticeForYou
VIP
Sr. Member
*
Offline Offline

Activity: 490
Merit: 271



View Profile
January 25, 2019, 03:58:18 AM
 #9

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.

.
..1xBit.com   Super Six..
▄█████████████▄
████████████▀▀▀
█████████████▄
█████████▌▀████
██████████  ▀██
██████████▌   ▀
████████████▄▄
███████████████
███████████████
███████████████
███████████████
███████████████
▀██████████████
███████████████
█████████████▀
█████▀▀       
███▀ ▄███     ▄
██▄▄████▌    ▄█
████████       
████████▌     
█████████    ▐█
██████████   ▐█
███████▀▀   ▄██
███▀   ▄▄▄█████
███ ▄██████████
███████████████
███████████████
███████████████
███████████████
███████████████
███████████████
███████████▀▀▀█
██████████     
███████████▄▄▄█
███████████████
███████████████
███████████████
███████████████
███████████████
         ▄█████
        ▄██████
       ▄███████
      ▄████████
     ▄█████████
    ▄███████
   ▄███████████
  ▄████████████
 ▄█████████████
▄██████████████
  ▀▀███████████
      ▀▀███
████
          ▀▀
          ▄▄██▌
      ▄▄███████
     █████████▀

 ▄██▄▄▀▀██▀▀
▄██████     ▄▄▄
███████   ▄█▄ ▄
▀██████   █  ▀█
 ▀▀▀
    ▀▄▄█▀
▄▄█████▄    ▀▀▀
 ▀████████
   ▀█████▀ ████
      ▀▀▀ █████
          █████
       ▄  █▄▄ █ ▄
     ▀▄██▀▀▀▀▀▀▀▀
      ▀ ▄▄█████▄█▄▄
    ▄ ▄███▀    ▀▀ ▀▀▄
  ▄██▄███▄ ▀▀▀▀▄  ▄▄
  ▄████████▄▄▄▄▄█▄▄▄██
 ████████████▀▀    █ ▐█
██████████████▄ ▄▄▀██▄██
 ▐██████████████    ▄███
  ████▀████████████▄███▀
  ▀█▀  ▐█████████████▀
       ▐████████████▀
       ▀█████▀▀▀ █▀
.
Premier League
LaLiga
Serie A
.
Bundesliga
Ligue 1
Primeira Liga
.
..TAKE PART..
joniboini
Legendary
*
Offline Offline

Activity: 2170
Merit: 1789



View Profile WWW
January 25, 2019, 04:31:06 AM
 #10

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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
bL4nkcode
Copper Member
Legendary
*
Offline Offline

Activity: 2142
Merit: 1305


Limited in number. Limitless in potential.


View Profile
January 25, 2019, 07:01:59 AM
 #11

- 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.
TheBeardedBaby
Legendary
*
Offline Offline

Activity: 2184
Merit: 3134


₿uy / $ell


View Profile
January 25, 2019, 01:27:25 PM
 #12

- 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.

suchmoon
Legendary
*
Offline Offline

Activity: 3654
Merit: 8909


https://bpip.org


View Profile WWW
January 25, 2019, 02:11:37 PM
Merited by dbshck (2)
 #13

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.
3dOOm
Copper Member
Full Member
***
Offline Offline

Activity: 155
Merit: 173


Member of Cryptios - https://cryptios.com/


View Profile WWW
January 25, 2019, 02:50:40 PM
 #14

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 = "<a href=" + postLink.prop("href").replace("index.php?", "index.php?action=reporttm;").replace(".msg", ";msg=") + ">Report to moderator</a>";
  $(buttonLink[i]).prepend (reportLink);
}

Here is how it looks:

LMK if you found issues.

Good project! BTC to the moon!

Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2298


View Profile
January 25, 2019, 05:49:33 PM
 #15

Why do you not just add this functionality directly on the forum instead of making users use a script?
Kopyleft
Member
**
Offline Offline

Activity: 168
Merit: 15

Future of Security Tokens


View Profile
January 25, 2019, 06:00:58 PM
 #16

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.

Xal0lex
Staff
Legendary
*
Offline Offline

Activity: 2436
Merit: 2358



View Profile WWW
January 25, 2019, 06:26:23 PM
Merited by suchmoon (4), dbshck (2), Cyrus (1)
 #17

The script does not work if you view the latest topics person. It would be nice to make the script work there.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
madnessteat
Legendary
*
Offline Offline

Activity: 2226
Merit: 1973



View Profile
January 25, 2019, 06:56:47 PM
Merited by Cyrus (2)
 #18

~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.  

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
▄▄█▄▄░░▄▄█▄▄░░▄▄█▄▄
███░░░░███░░░░███
░░░░░░░░░░░░░
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░░░░███▄█░░░
░░██▌░░███░▀░░██▌
█░██░░███░░░██
█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀
.
REGIONAL
SPONSOR
███▀██▀███▀█▀▀▀▀██▀▀▀██
██░▀░██░█░███░▀██░███▄█
█▄███▄██▄████▄████▄▄▄██
██▀ ▀███▀▀░▀██▀▀▀██████
███▄███░▄▀██████▀█▀█▀▀█
████▀▀██▄▀█████▄█▀███▄█
███▄▄▄████████▄█▄▀█████
███▀▀▀████████████▄▀███
███▄░▄█▀▀▀██████▀▀▀▄███
███████▄██▄▌████▀▀█████
▀██▄█████▄█▄▄▄██▄████▀
▀▀██████████▄▄███▀▀
▀▀▀▀█▀▀▀▀
.
EUROPEAN
BETTING
PARTNER
TryNinja
Legendary
*
Offline Offline

Activity: 2814
Merit: 6971



View Profile WWW
January 25, 2019, 07:05:21 PM
Merited by dbshck (3), Cyrus (2), xandry (2), Xal0lex (2), madnessteat (1)
 #19

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 = "<a href=" + postLink.prop("href").replace("index.php?", "index.php?action=reporttm;").replace(".msg", ";msg=") + ">Report to moderator</a>";
  $(buttonLink[i]).prepend (reportLink);
}

All I did was add an include for the “View latest topics” page.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Xal0lex
Staff
Legendary
*
Offline Offline

Activity: 2436
Merit: 2358



View Profile WWW
January 25, 2019, 07:24:08 PM
 #20

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1] 2 »  All
  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!