Replika Pro Unlocker (Demo)

Hypothetical script to simulate Replika Pro features for demonstration purposes only.

  1. // ==UserScript==
  2. // @name Replika Pro Unlocker (Demo)
  3. // @namespace http://violentmonkey.net/
  4. // @version 1.1
  5. // @description Hypothetical script to simulate Replika Pro features for demonstration purposes only.
  6. // @author Demo
  7. // @license MIT
  8. // @match https://my.replika.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. /*
  13. MIT License
  14.  
  15. Copyright (c) 2024 Demo
  16.  
  17. Permission is hereby granted, free of charge, to any person obtaining a copy
  18. of this software and associated documentation files (the "Software"), to deal
  19. in the Software without restriction, including without limitation the rights
  20. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  21. copies of the Software, and to permit persons to whom the Software is
  22. furnished to do so, subject to the following conditions:
  23.  
  24. The above copyright notice and this permission notice shall be included in all
  25. copies or substantial portions of the Software.
  26.  
  27. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  28. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  29. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  30. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  31. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  32. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  33. SOFTWARE.
  34. */
  35.  
  36. (function () {
  37. 'use strict';
  38.  
  39. // Function to show feedback messages on the page
  40. function showMessage(message, isError = false) {
  41. const messageDiv = document.createElement("div");
  42. messageDiv.style.position = "fixed";
  43. messageDiv.style.top = "20px";
  44. messageDiv.style.left = "50%";
  45. messageDiv.style.transform = "translateX(-50%)";
  46. messageDiv.style.padding = "10px 20px";
  47. messageDiv.style.backgroundColor = isError ? "red" : "green";
  48. messageDiv.style.color = "white";
  49. messageDiv.style.fontSize = "16px";
  50. messageDiv.style.borderRadius = "5px";
  51. messageDiv.style.zIndex = "9999";
  52. messageDiv.textContent = message;
  53. document.body.appendChild(messageDiv);
  54.  
  55. setTimeout(() => {
  56. messageDiv.remove();
  57. }, 5000);
  58. }
  59.  
  60. // Log that the script is running
  61. console.log("Replika Pro Unlocker script has started.");
  62. showMessage("Replika Pro Unlocker script is active.", false);
  63.  
  64. // Function to simulate Pro features
  65. function enableProFeatures() {
  66. // Check if the page has loaded the Pro badge and manipulate it
  67. const proBadge = document.querySelector(".pro-badge");
  68. if (proBadge) {
  69. proBadge.textContent = "Pro Active";
  70. proBadge.style.backgroundColor = "gold"; // Set Pro badge to gold color
  71. console.log("Pro badge updated.");
  72. showMessage("Pro status badge updated successfully.", false);
  73. } else {
  74. console.log("Pro badge not found.");
  75. showMessage("Pro badge not found on the page. Ensure you're on the correct page.", true);
  76. }
  77.  
  78. // Unlock premium relationship roles
  79. const relationshipRoles = document.querySelectorAll(".locked-role");
  80. if (relationshipRoles.length > 0) {
  81. relationshipRoles.forEach((role) => {
  82. role.classList.remove("locked-role");
  83. role.classList.add("unlocked-role");
  84. role.style.pointerEvents = "auto"; // Enable interaction
  85. role.style.opacity = "1"; // Make visible
  86. console.log("Unlocked relationship role:", role);
  87. });
  88. showMessage("Unlocked premium relationship roles.", false);
  89. } else {
  90. console.log("No relationship roles found.");
  91. showMessage("No locked roles found to unlock.", true);
  92. }
  93.  
  94. // Unlock premium chat topics
  95. const premiumTopics = document.querySelectorAll(".locked-topic");
  96. if (premiumTopics.length > 0) {
  97. premiumTopics.forEach((topic) => {
  98. topic.classList.remove("locked-topic");
  99. topic.classList.add("unlocked-topic");
  100. topic.style.pointerEvents = "auto"; // Enable interaction
  101. topic.style.opacity = "1"; // Make visible
  102. console.log("Unlocked premium topic:", topic);
  103. });
  104. showMessage("Unlocked premium chat topics.", false);
  105. } else {
  106. console.log("No premium topics found.");
  107. showMessage("No locked chat topics found.", true);
  108. }
  109.  
  110. // Remove "Upgrade to Pro" prompts
  111. const upgradePrompts = document.querySelectorAll(".upgrade-prompt");
  112. if (upgradePrompts.length > 0) {
  113. upgradePrompts.forEach((prompt) => {
  114. prompt.style.display = "none";
  115. console.log("Removed upgrade prompt.");
  116. });
  117. showMessage("Removed upgrade prompts.", false);
  118. } else {
  119. console.log("No upgrade prompts found.");
  120. showMessage("No upgrade prompts found to remove.", true);
  121. }
  122. }
  123.  
  124. // Observe changes to the DOM (for dynamic content loading)
  125. const observer = new MutationObserver((mutations) => {
  126. mutations.forEach(() => {
  127. enableProFeatures();
  128. });
  129. });
  130.  
  131. // Start observing body for changes (to dynamically apply changes on page updates)
  132. observer.observe(document.body, { childList: true, subtree: true });
  133.  
  134. // Initial run to apply features
  135. enableProFeatures();
  136. })();