CSC WinLoss Usernames

Show the usernames of people who have compared with you on cocksizecontest

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        CSC WinLoss Usernames
// @namespace   cocksizecontest.com
// @description Show the usernames of people who have compared with you on cocksizecontest
// @include     https://www.cocksizecontest.com/wins-losses/
// @version     1
// @grant       none
// ==/UserScript==

function csc_thumbs() {
  var thumbs = document.querySelectorAll(".cscResultsThumbs > a");
  thumbs.forEach(function(node) {
    var href = node.getAttribute('href');
    var splits = href.split('/');
    if (splits[splits.length-1].length < 1) {
      splits.length--;
    }
    var username = splits[splits.length-1];

    node.appendChild(document.createTextNode(username));
    node.style.float = 'left';
    node.style.minWidth = '10em';
  });
}
document.addEventListener("DOMContentLoaded", csc_thumbs);