Softcobra Decoder

decodes links on softcobra.net

La data de 26-08-2020. Vezi ultima versiune.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Softcobra Decoder
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  decodes links on softcobra.net
// @author       butforme
// @match        https://www.softcobra.com/*
// @grant        none
// @require      https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js
// ==/UserScript==

(function () {
    'use strict';
    window.addEventListener('load', function () {
        var tableRows = document.getElementsByTagName('td');
        var j;
        for (j = 0; j < tableRows.length; j++) {
            var currRow = tableRows[j].innerText;
            const regex = /^U2Fsd.*/g;
            if (currRow.match(regex)) {
                var decodedLink = CryptoJS.AES.decrypt(currRow, "/").toString(CryptoJS.enc.Utf8);
                tableRows[j].innerHTML = `<a href="${decodedLink}">${decodedLink}</a>`;
            }
        }
    }, false);
})();