Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

Custom user color tagging

lukaszek

the determinator
Patron
Joined
Jan 15, 2015
Messages
12,618
tl;dr; Scroll to the bottom to tag users using colors, like on following picture:
y3mn4hyU1Azc5krBfpuAg9SnWY6QWtBZFKuST6iLZf45e_oxOiKJTUKubQbWeYfTIMJa4vIZDuy0RdxIpRygMVeF7HMFQCdZ6uEH8IGPwzSDxvibaJZ8_XmLYG2xVMnujEQ89W-UAWu5-t7p-lH6fEHENsJgwA96VEAs_dFN2-D86o

or with .txt handler like here:
y3mPQrKxJmHUCceYoFpgj7pVDbJxwUr3hPEshBvgbinO-KnO1B7auFMSMFlik8mRa1RZ7rmgznaShKAtqacWEuBOrqWlsiCXwq-YhQ8kig5hG3eqwpTRJJNutjYmj0xmdzuKvHasrOniEyvCC9YL53rHFNVPUqezCcNr_zMKThP0j4



I dont have good memory to people. Once I realize during discussion that someone is retard and its not worth my time to continue, I will forget said individual name.
Would be also nice to mark insightful people somehow.

Thats why while waiting for dinner i wrote this.
Side effect is that it also marks any user mentions:
y3mUl-IgKe56B2W8rcpEt0N1nlMhqW8z-1pMc5Z6pHmgBewd4oQWjF5bOHzRmnaqau7B0irydAqVK-v1n6S6njnK-O-teJjjFrkOSALIKBvz3VSUx8e6W6aMxe0LO5p16Jj9-Ia8vCtfAOJJyNwtIOnSAdlQfNuTYT7eIijNjLIZgE
which I found good so i kept it as is.
Doesnt work in shitbox but I lost my attention span.

Easy enough for anyone to edit and keep their own lists
Tagging people I used in examples: Crispy Lhynn Mustawd Hoaxmetal


Steps:
- You need add on for you web browser to inject javascript. Ive gotten Greasemonkey for firefox and further steps assume you did so too - In addon menu click new user script - matters little how you fill fields
- this is the code of script:
// ==UserScript==
// Name codex
// @namespace asd
// @description qwe
// @include http://www.rpgcodex.net/forums/*
// @version 1
// @grant none
// ==/UserScript==
var retards = [ 'Mustawd', 'Lhynn' ];
var wiseMen = [ 'Crispy' ];


var trash = document.getElementsByClassName('username');
var i;
for (i = 0; i < trash.length; i++)
{
var noob = trash[ i ];
if (retards.indexOf(noob.textContent) > -1)
{
noob.style.backgroundColor = "red"​
}
else if (wiseMen.indexOf(noob.textContent) > -1)
{
noob.style.backgroundColor = "blue"​
}​
}

more complicated script that allows custom notes(probably copy paste didnt work):
var retards = new Map();
retards.set('lukaszek', 'amazing');

var wiseMen = new Map();
wiseMen.set('Crispy', 'bastard sword power build');

//css for tooltip
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = '.aaatooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .aaatooltip .aaatooltiptext { visibility: hidden; width: 120px; background-color: #555; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -60px; opacity: 0; transition: opacity 1s; } .aaatooltip .aaatooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } .aaatooltip:hover .aaatooltiptext { visibility: visible; opacity: 1; }';
document.body.appendChild(css);

var users = document.getElementsByClassName('username');
var i;
for (i=0;i<users.length;i++)
{
var action = false;
var description = 'dupa dupa';
var element = users[ i ];

if (retards.has(element.textContent))
{
element.style.backgroundColor = "red";
action = true;
description = retards.get(element.textContent);
}
else if (wiseMen.has(element.textContent))
{
element.style.backgroundColor = "blue";
action = true;
description = wiseMen.get(element.textContent);
}

if (action)
{
//anchor preparation
var pom = document.createElement('div');
pom.className = 'aaatooltip';
pom.textContent = '.txt';

//tooltip preparation
var newNode = document.createElement('span');
newNode.className = 'aaatooltiptext';
newNode.innerHTML = description;
pom.appendChild( newNode );

//fire
element.parentNode.appendChild( pom );
}
}
Let me know if doesnt work, maybe something got pasted in weird way
- edit to your liking
 
Last edited:

whatevername

Arcane
Joined
Sep 2, 2013
Messages
666
Location
666
Simply use adblock to ignore Crispy.
I asked how to do literally this on Stack Exchange once but they deleted my question.

Adblock Plus preferences -> My element hiding rules -> add filter, paste this
rpgcodex.net##LI[id*="post"][class*="message"][data-author="Crispy"]

that "li", "post" and other stuff will get matched to html like
<li id="post-4938802" class="message staff " data-author="Crispy">
and will hide the whole "li" block

It could be simpler like
rpgcodex.net##LI[data-author="Crispy"]
too, but may or not hide more than the messages
 

Unkillable Cat

LEST WE FORGET
Patron
Joined
May 13, 2009
Messages
27,089
Codex 2014 Make the Codex Great Again! Grab the Codex by the pussy
DarkUnderlord how much would it cost me to enable such script for everyone for one day?

Have you ever made mods for Star Sable?

EDIT: To be honest I can't see a way how all of this doesn't go horribly wrong somehow. You're enabling :updatedmytxt:-integration into the forum itself.

If people want to keep .txt's about Codexers, they should have to do so seperately.

This takes the Codex a further step away from being a forum and another step towards being a social media site. The ratings are bad enough, but this is much worse.
 
Last edited:

Severian Silk

Guest
This takes the Codex a further step away from being a forum and another step towards being a social media site. The ratings are bad enough, but this is much worse.
I think we passed that point long ago.
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom