Softcobra Decoder (2021)

decodes links on softcobra.net

Pada tanggal 28 Juni 2021. Lihat %(latest_version_link).

// ==UserScript==
// @name         Softcobra Decoder (2021)
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  decodes links on softcobra.net
// @author       butforme - updated by GlumWoodpecker and GreatWizard
// @match        https://www.softcobra.com/*
// @grant        none
// @run-at       document-end
// @require      https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js
// ==/UserScript==

var tableRows = document.getElementsByTagName('td');
for (var j = 0; j < tableRows.length; j++) {
    var currRow = tableRows[j].innerText;
    var decodedLink;
    if (currRow.match(/^U2Fsd.*$/)) {
        decodedLink = CryptoJS.AES.decrypt(currRow, "/").toString(CryptoJS.enc.Utf8);
        tableRows[j].innerHTML = `<a href="${decodedLink}">${decodedLink}</a>`;
    }
    if (currRow.match(/^([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{1,3}=|[A-Za-z0-9+/]{5,}==)$/)) {
        decodedLink = atob(atob(currRow));
        tableRows[j].innerHTML = `<a href="${decodedLink}">${decodedLink}</a>`;
    }
}