Bitcoin Forum
November 17, 2019, 02:37:31 PM *
News: 10th anniversary art contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [Userscript] Report to moderator on post history  (Read 782 times)
Cyrus
Ninja
Administrator
Legendary
*
Offline Offline

Activity: 2422
Merit: 1124



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), malevolent (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.

1574001451
Hero Member
*
Offline Offline

Posts: 1574001451

View Profile Personal Message (Offline)

Ignore
1574001451
Reply with quote  #2

1574001451
Report to moderator
The Bitcoin Forum is turning 10 years old! Join the community in sharing and exploring the notable posts made over the years.
1574001451
Hero Member
*
Offline Offline

Posts: 1574001451

View Profile Personal Message (Offline)

Ignore
1574001451
Reply with quote  #2

1574001451
Report to moderator
1574001451
Hero Member
*
Offline Offline

Posts: 1574001451

View Profile Personal Message (Offline)

Ignore
1574001451
Reply with quote  #2

1574001451
Report to moderator
1574001451
Hero Member
*
Offline Offline

Posts: 1574001451

View Profile Personal Message (Offline)

Ignore
1574001451
Reply with quote  #2

1574001451
Report to moderator
Cyrus
Ninja
Administrator
Legendary
*
Offline Offline

Activity: 2422
Merit: 1124



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: 1330
Merit: 1230



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!
 

███████████████████████████
█████████▀▄▄▄▄▄██▀▀████████
█████▀▄█▀▀▄▄▄▄▄▄▄▀▀▄▄▀█████
████ █▀▄███████████▄▀██████
███▄█ ███████▀ ██████ █ ███
██▀█ ███  ▀▀█  ▀██████ █ ██
██ █ ████▄▄      ▀▀▀██ █ ██
██ █ █████▌        ▄██ ████
███▄█ █████▄▄   ▄▄███ █▀███

████▀█▄▀█████▌  ▀██▀▄█ ████

█████▄▀▀▄▄▀▀▀▀   ▄▄█▀▄█████
████████▄██▀▀▀▀▀▀██████████

███████████████████████████
|▄█████████████████████████▄
███████████████████████████
████████▀▀▄▄▄▄▄▄▄▀▀████████
██████▀▄▀▀██░░░██▀▀▄▀██████
█████░██▄░░▄▄▄▄▄░░▄██░█████
████░█▀▀░▄██▄▄▄██▄░▀░█░████
████░█▄▄░█░█░░░█░█░▄▄█░████
████░██▀░▀██▀▀▀██▀░▀▀█░████
█████░█░▄▄░▀▀▀▀▀░▄▄░█░█████
██████▄▀██░░▄██░░██▀▄██████
████████▄▄▀▀▀▀▀▀▀▄▄████████
███████████████████████████
▀█████████████████████████▀
▄█████████████████████████▄
███████████████████▀█▀░█▀▄█
████████████████████░░░░░▀▄
████▄▄▄▀██████████▄▄░░░░░░▀
███████▀▄░▀▄░░▀▀███▄█░░░░░█
██████▀▄▄▄▀░░░░░░░▀█▄█░█▄█▄
█████▀░░░░░▀▀▀░░░▀▄▀███████
█████░░░░█░███░█░░█░███████
█████▄░░░▀░▀▀▀░▀░▄▀▄███████
██████▄░░░░▀▀▀░▄▄▀▄████████
████████▄▄░░░░▀▄▄██████████
███████████████████████████
▀█████████████████████████▀
▄█████████████████████████▄
█████████████▐░░░░█████████
█████████████▐▄▄▄▄█████████
██████▀█▀███▀▀▀███▀█▀██████
███████▄▀▄▀▀░█░▀▀▄▀▄███████
█████████▀▀█▀▀▀█▀▀█████████
████████░█▀▀▀█▀▀▀█░████████
███████░█▀▀█▀▀▀█▀▀█░███████
██████░█▀▀▀█░░░█▀▀▀█░██████
█████░█▀▀█▀▀▀█▀▀▀█▀▀█░█████
████░█▀█▀▀▀█▀▀▀█▀▀▀█▀█░████
███████████████████████████
▀█████████████████████████▀
▄█████████████████████████▄
███████████████████████████
███████████████████████████
█████████▀▀▀███████████████
█████▀▀░░▄▄░░░▄████████████
█████▀▄░▀░▄▄▀▀░░▀▄░▄▀██████
█████░░▀█▀░░▀▀░▄░█▄▄▄▄█████
█████▌▀▄▐▌░█░▀░▀░█░░░░█████
██████▄░░█░░░▀▀░▄▀░▀░██████
████████▄▐▌░▄▄█████████████
███████████████████████████
███████████████████████████
▀█████████████████████████▀
▄█████████████████████████▄
████████████████████▀▀▀░███
████████████████▄░░░░░░░███
█████████████████▀░░░░░▐███
███████████████▀░░░░▄▄░████
█████████████▀░░░░▄████████
██████████▀▀░░░▄███████████
███████▀░░░▄▄██████████████
███▀▀▄▄▄███████▀▀▀▀▀███████
███████▀▀▀▀▀█░░░░░░░░▀█████
██▀▀▀▀░░░░░▄░░░░░░░░░▄░░▀▀█
░░▄░░░░▀▄░░█▄░░░▄▀░▄█░░░░░░
▀▄░▀█▄▄███▄███▄██▄███▄▄▀░▄▀
|ROULETTE
MINES
TOWERS
DICE
CRASH
──── ─── ─
iasenko
Hero Member
*****
Offline Offline

Activity: 742
Merit: 1329


¯\_(ツ)_/¯


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: 770
Merit: 1252


Èñj𥠆hê §ïlêñ¢ê


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
*
Offline Offline

Activity: 1190
Merit: 1629



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: 34
Merit: 18


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

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

Activity: 1624
Merit: 1378


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: 742
Merit: 1166


Exchange Bitcoin quickly-https://blockchain.com.do


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.

bL4nkcode
Copper Member
Hero Member
*****
Offline Offline

Activity: 1358
Merit: 793


Happy 10th anniversary Bitcointalk!


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: 742
Merit: 1329


¯\_(ツ)_/¯


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: 2128
Merit: 4273


nanny of the forum


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
Member
**
Offline Offline

Activity: 82
Merit: 13


Epochtalk testing grounds https://coinbistro.com


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: 1960
Merit: 1769



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?

Find the fire hydrant in my Avatar for a prize.
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: 812
Merit: 1056


https://blockchain.com.do


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.


██   ██   ██████████

  ██   █████████████

   ██   ████████████

 ██   ██   █████████

   ██   ████████████

      ██   █████████
██████  ██
██
██
██
██
██
██
██
██
██
██
██
██████  ██
.Blockchain.com.do.██  ██████
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
██  ██████
      ▄▄▄▄▄▄▄▄▄▄▄▄▄
▀ ▀ ▀▀█   █       █▄
 ▀ ▀▀▀█▄▄▀      ▄█ ▄▀█▄
   ▀ ▀█▄▄       ██ ▄▀██▀▄
  ▀ ▀▀█  ▀▄      ▀▄▄█▀   ▀▄
 ▀▀ ▀ █▄▄▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄
 ▄▄▄▄▄▄▄▄▄▄▄      █▄▄▄▄▄▄▄▄▄█
 █▄▄▄▄▄▄▄▄▄█▄▄▄▄▄▄▄▄▄▄▄▄
  ▀▄     ▄▄▄       █   █▀▀ ▀ ▀
    ▀▄ ▄█ ▄▄█▄      ▀▄▄█▀▀▀ ▀
      ▀██▄▄ ██       ▄▄█▀ ▀
        ▀▄▄▄▀      ▄▀  █▀▀ ▀
          ▀▄▄▄▄▄▄▄▄█▄▄▄█ ▀ ▀▀
██████  ██
██
██
██
██
██
██
██
██
██
██
██
██████  ██
.Exchange Bitcoin Quickly.██  ██████
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
██  ██████




██████████   ██   ██

█████████████   ██

████████████   ██

█████████   ██   ██

████████████   ██

█████████   ██
madnessteat
Hero Member
*****
Online Online

Activity: 602
Merit: 639


CryptoTalk.Org - Get Paid for every Post!


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.  

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
TryNinja
Legendary
*
Offline Offline

Activity: 1190
Merit: 1629



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: 812
Merit: 1056


https://blockchain.com.do


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.


██   ██   ██████████

  ██   █████████████

   ██   ████████████

 ██   ██   █████████

   ██   ████████████

      ██   █████████
██████  ██
██
██
██
██
██
██
██
██
██
██
██
██████  ██
.Blockchain.com.do.██  ██████
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
██  ██████
      ▄▄▄▄▄▄▄▄▄▄▄▄▄
▀ ▀ ▀▀█   █       █▄
 ▀ ▀▀▀█▄▄▀      ▄█ ▄▀█▄
   ▀ ▀█▄▄       ██ ▄▀██▀▄
  ▀ ▀▀█  ▀▄      ▀▄▄█▀   ▀▄
 ▀▀ ▀ █▄▄▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄
 ▄▄▄▄▄▄▄▄▄▄▄      █▄▄▄▄▄▄▄▄▄█
 █▄▄▄▄▄▄▄▄▄█▄▄▄▄▄▄▄▄▄▄▄▄
  ▀▄     ▄▄▄       █   █▀▀ ▀ ▀
    ▀▄ ▄█ ▄▄█▄      ▀▄▄█▀▀▀ ▀
      ▀██▄▄ ██       ▄▄█▀ ▀
        ▀▄▄▄▀      ▄▀  █▀▀ ▀
          ▀▄▄▄▄▄▄▄▄█▄▄▄█ ▀ ▀▀
██████  ██
██
██
██
██
██
██
██
██
██
██
██
██████  ██
.Exchange Bitcoin Quickly.██  ██████
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
        ██
██  ██████




██████████   ██   ██

█████████████   ██

████████████   ██

█████████   ██   ██

████████████   ██

█████████   ██
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!