lukaszek
the determinator
- Joined
- Jan 15, 2015
- Messages
- 12,618
tl;dr; Scroll to the bottom to tag users using colors, like on following picture:
or with .txt handler like here:
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:
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:
or with .txt handler like here:
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:
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:
more complicated script that allows custom notes(probably copy paste didnt work):
Let me know if doesnt work, maybe something got pasted in weird way
- edit to your liking
- 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++)
{
// 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)
{
else if (wiseMen.indexOf(noob.textContent) > -1)
{
}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 );
}
}
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 );
}
}
- edit to your liking
Last edited: