CSC WinLoss Usernames

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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);