Replika Pro Unlocker (Demo)

Hipotetička skripta za simulaciju Replika Pro funkcija, samo za edukaciju i demonstraciju.

目前為 2024-12-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Replika Pro Unlocker (Demo)
// @namespace    http://violentmonkey.net/
// @version      1.0
// @description  Hipotetička skripta za simulaciju Replika Pro funkcija, samo za edukaciju i demonstraciju.
// @author       Demo
// @license      MIT
// @match        https://my.replika.com/*
// @grant        none
// ==/UserScript==

/*
MIT License

Copyright (c) 2024 Demo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

(function () {
    'use strict';

    // Aktiviraj log u konzoli
    console.log("Skripta za simulaciju Replika Pro funkcija aktivna.");

    // Funkcija za otključavanje Pro funkcija
    function enableProFeatures() {
        // Simuliraj Pro status
        const proBadge = document.querySelector(".pro-badge");
        if (proBadge) {
            proBadge.textContent = "Pro Active";
            proBadge.style.backgroundColor = "gold"; // Zlata boja za Pro
            console.log("Pro status badge ažuriran.");
        }

        // Otključaj premium uloge
        const relationshipRoles = document.querySelectorAll(".locked-role");
        relationshipRoles.forEach((role) => {
            role.classList.remove("locked-role");
            role.classList.add("unlocked-role");
            role.style.pointerEvents = "auto"; // Omogući interakciju
            role.style.opacity = "1"; // Učini vidljivim
            console.log("Otključana premium uloga:", role);
        });

        // Omogući premium teme razgovora
        const premiumTopics = document.querySelectorAll(".locked-topic");
        premiumTopics.forEach((topic) => {
            topic.classList.remove("locked-topic");
            topic.classList.add("unlocked-topic");
            topic.style.pointerEvents = "auto";
            topic.style.opacity = "1";
            console.log("Otključana premium tema:", topic);
        });

        // Sakrij obaveštenja za nadogradnju na Pro
        const upgradePrompts = document.querySelectorAll(".upgrade-prompt");
        upgradePrompts.forEach((prompt) => {
            prompt.style.display = "none";
            console.log("Uklonjen prompt za nadogradnju.");
        });
    }

    // Posmatraj dinamične promene na stranici
    const observer = new MutationObserver(() => {
        enableProFeatures();
    });

    // Posmatraj izmene u strukturi stranice
    observer.observe(document.body, { childList: true, subtree: true });

    // Inicijalna aktivacija funkcije
    enableProFeatures();

})();