andros705 / Devrant.com binary scores to decimal

// ==UserScript==
// @name         Devrant.com binary scores to decimal
// @namespace    https://openuserjs.org/users/andros705
// @version      1
// @description  Convert devrant score binary notation to decimal
// @author       andros705
// @match        https://devrant.com/*
// @grant        none
// @copyright    2018, andros705 (https://openuserjs.org/users/andros705)
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    $('.user-score').each((index, element) => {
        if(element.children[0].tagName === 'SPAN'){
            element.children[0].innerHTML = parseInt(element.children[0].innerHTML, 2);
        }
    });
})();