Bitcoin Forum
May 23, 2019, 06:28:58 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [Userscript] Report to moderator on post history  (Read 694 times)
Cyrus
Ninja
Administrator
Legendary
*
Online Online

Activity: 2254
Merit: 1118



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

1558636138
Hero Member
*
Offline Offline

Posts: 1558636138

View Profile Personal Message (Offline)

Ignore
1558636138
Reply with quote  #2

1558636138
Report to moderator
GET 25 FREE SPINS AT REGISTRATION
GET 100% BONUS ON FIRST DEPOSIT
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1558636138
Hero Member
*
Offline Offline

Posts: 1558636138

View Profile Personal Message (Offline)

Ignore
1558636138
Reply with quote  #2

1558636138
Report to moderator
1558636138
Hero Member
*
Offline Offline

Posts: 1558636138

View Profile Personal Message (Offline)

Ignore
1558636138
Reply with quote  #2

1558636138
Report to moderator
1558636138
Hero Member
*
Offline Offline

Posts: 1558636138

View Profile Personal Message (Offline)

Ignore
1558636138
Reply with quote  #2

1558636138
Report to moderator
Cyrus
Ninja
Administrator
Legendary
*
Online Online

Activity: 2254
Merit: 1118



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: 1162
Merit: 1036



View Profile WWW
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!
 
iasenko
Hero Member
*****
Offline Offline

Activity: 574
Merit: 969


#FreeAssange


View Profile WWW
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
Hero Member
*****
Offline Offline

Activity: 602
Merit: 645



View Profile
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
*
Online Online

Activity: 1022
Merit: 1255


ChipMixer's Badge of Honor


View Profile
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)”

FatBen
Jr. Member
*
Offline Offline

Activity: 35
Merit: 16

Free crypto every day here: discord.gg/pXB9nuZ


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

works great, just tested it  Grin

◣   Stake.com   ◥
«  THE HIGH STAKES CASINO  »
12+ Gamemodes  |  Provably Fair  |   Daily Give (https://stake.com/?code=StakeBitcointalk)
pugman
Legendary
*
Offline Offline

Activity: 1456
Merit: 1353


Sliding in ya DM's be like


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


"Blockchain is the next big thing after Internet"


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.


5░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░
░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░
joniboini
Hero Member
*****
Offline Offline

Activity: 574
Merit: 1033



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.

███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
#1
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
BTC 
  ●
   BTC
  BTC  
.
    ▄▄▄▀▀▀▀
 ▄██▀
███        ▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄▄▄
▀███▄▄▄▄▀▀▀                 ▀▀▄▄
  ▀▀▀██████████████████████████▀
   ▄█▄     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀██▄▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀
      ▄  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
      ▀██▄  ▄▀▀▀▀▀▀▀▀▀▀▀▀▄
        ▀█▀██████████████▀▀
         ▀█▄▄ ▄▄▄▄▄▄▄▄▄▄
            █▀▄▄▄▄▄▄▄▄▄▄▀
             ▀▀▄▄▄▄▄▄▄
.
     BTC
  BTC   
  ●
  BTC  
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
bL4nkcode
Copper Member
Hero Member
*****
Offline Offline

Activity: 1190
Merit: 663


🎲🎲🎲 Bustadice.com


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

..bustadice..         ▄▄████████████▄▄
     ▄▄████████▀▀▀▀████████▄▄
   ▄███████████    ███████████▄
  █████    ████▄▄▄▄████    █████
 ██████    ████████▀▀██    ██████
██████████████████   █████████████
█████████████████▌  ▐█████████████
███    ██████████   ███████    ███
███    ████████▀   ▐███████    ███
██████████████      ██████████████
██████████████      ██████████████
 ██████████████▄▄▄▄██████████████
  ▀████████████████████████████▀
                     ▄▄███████▄▄
                  ▄███████████████▄
   ███████████  ▄████▀▀       ▀▀████▄
               ████▀      ██     ▀████
 ███████████  ████        ██       ████
             ████         ██        ████
███████████  ████     ▄▄▄▄██        ████
             ████     ▀▀▀▀▀▀        ████
 ███████████  ████                 ████
               ████▄             ▄████
   ███████████  ▀████▄▄       ▄▄████▀
                  ▀███████████████▀
                     ▀▀███████▀▀
           ▄██▄
           ████
            ██
            ▀▀
 ▄██████████████████████▄
██████▀▀██████████▀▀██████
█████    ████████    █████
█████▄  ▄████████▄  ▄█████
██████████████████████████
██████████████████████████
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
       ████████████
......Play......
iasenko
Hero Member
*****
Offline Offline

Activity: 574
Merit: 969


#FreeAssange


View Profile WWW
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: 1960
Merit: 3209


Pedal-powered snitch


View Profile
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
Jr. Member
*
Offline Offline

Activity: 45
Merit: 11


Blockchain yourself


View Profile
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: 1792
Merit: 1569


View Profile WWW
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?

NOTBanned from displaying signatures until May 20, 2022, 11:26:45 PM
Don’t Plagiarize, it’s dishonest and you *will* get caught
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
Hero Member
*****
Offline Offline

Activity: 644
Merit: 701


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

BitDice.me — пpoфeccиoнaльнoe кpиптo-кaзинo c 2014 гoдa. Opигинaльнaя Dice игpa c выcoчaйшeй cкopocтью - 10+ cтaвoк в ceкyндy.
Джeкпoт, бoнycнaя пpoгpaммa (Bet-Back, Loss-Back), Bet-Hunt, мини-игpы в чaтe.
House Edge ≥ 0,85%. BTC, ETH, LTC, DOGE, CSNO. Игpaть!
madnessteat
Sr. Member
****
Online Online

Activity: 434
Merit: 285


A Blockchain Mobile Operator With Token Rewards


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.  

              ███
             █████
            ███████
           █████████
          ███████████
         █████████████
        ███████ ███████
       ███████   ███████
      ███████     ███████
     ███████       ███████
    ███████         ███████
   ███████           ███████
  ███████             ███████
 █████████████████████████████
███████████████████████████████
.
M!RACLE TELE
BRINGING MAGIC
TO THE TELECOM INDUSTRY

██
██
██
██
██
██
██
██
██
██
40% Biweekly Rewards
▬▬▬   Calls at €0.2   ▬▬▬
Traffic from €0.01 worldwide

██
██
██
██
██
██
██
██
██
██
      ██         ██     
        ▀▌     ▐▀       
       ▄██▄▄▄▄▄██▄      
     ▄█████████████     
   ▄█████████████████▄   
  ██████▄██████▄██████  
 ▐█████████████████████▌
  ██████▀███████▀██████ 
  █████   █████   █████  
  █████████████████████  
  █████████████████    
    ███████████████    
 ▀██▄ ████████████  ▄██▀
      ▀██▀   ▀██▀   
       ▄█       █▄
ANN
Lightpaper
Bounty
Facebook
Twitter
Telegram
TryNinja
Legendary
*
Online Online

Activity: 1022
Merit: 1255


ChipMixer's Badge of Honor


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

Xal0lex
Staff
Hero Member
*****
Offline Offline

Activity: 644
Merit: 701


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

BitDice.me — пpoфeccиoнaльнoe кpиптo-кaзинo c 2014 гoдa. Opигинaльнaя Dice игpa c выcoчaйшeй cкopocтью - 10+ cтaвoк в ceкyндy.
Джeкпoт, бoнycнaя пpoгpaммa (Bet-Back, Loss-Back), Bet-Hunt, мини-игpы в чaтe.
House Edge ≥ 0,85%. BTC, ETH, LTC, DOGE, CSNO. Игpaть!
Pages: [1] 2 »  All
  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!