심야식당 자동복호화

심야식당내 base64코드 자동복호화

Stan na 24-03-2022. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         심야식당 자동복호화
// @namespace    http://tampermonkey.net/
// @version      0.219
// @description  심야식당내 base64코드 자동복호화
// @author       SYJ
// @match        https://arca.live/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=arca.live
// @grant        none
// @require http://code.jquery.com/jquery-3.6.0.min.js
// @license MIT
// ==/UserScript==



(function() {
    //'use strict';
    let article=$('.article-wrapper')[0];

    function dec(reg)
    {
        if ( !reg.test(article.innerHTML) )
            return;

        while (reg.test(article.innerHTML))
        {
            let decoded = reg.exec(article.innerHTML)[0];
            while (decoded.match(/aHR0c[0-9A-Za-z]{8,}[=]{0,2}/) == null)
                decoded = atob(decoded);

            decoded = atob(decoded); console.log(decoded);
            article.innerHTML = article.innerHTML.replace(reg,"<a href='" + decoded + "' target='"+"_blank'>" + decoded + "</a>");
        }
    }
    dec(/[0-9A-Za-z]{30,}[=]{1,2}/);
    dec(/[0-9A-Za-z]{100,}[=]{0,2}/);
    dec(/aHR0c[0-9A-Za-z]{20,}[=]{0,2}/);

})();