Johnathon Frederick 1 anno fa
commit
03d89d1010
1 ha cambiato i file con 29 aggiunte e 0 eliminazioni
  1. 29 0
      Quillbot Premium Unlocker by Parv.user.js

+ 29 - 0
Quillbot Premium Unlocker by Parv.user.js

@@ -0,0 +1,29 @@
+// ==UserScript==
+// @name         Quillbot Premium Unlocker
+// @version      0.3.2
+// @description  Unlocks Quillbot Premium so that you don't have to pay.
+// @author       Parv Ashwani
+// @match        https://quillbot.com/*
+// @icon         https://quillbot.com/favicon.png
+// @require      https://greasyfork.org/scripts/455943-ajaxhooker/code/ajaxHooker.js?version=1124435
+// @run-at       document-start
+// @grant        none
+// @license      none
+// ==/UserScript==
+/* global ajaxHooker*/
+(function() {
+    'use strict';
+
+    // Hooking AJAX request to unlock premium
+    ajaxHooker.hook(request => {
+        if (request.url.endsWith('get-account-details')) {
+            request.response = res => {
+                const json = JSON.parse(res.responseText);
+                const a = "data" in json ? json.data : json;
+                a.profile.accepted_premium_modes_tnc = true;
+                a.profile.premium = true;
+                res.responseText = JSON.stringify("data" in json ? (json.data = a, json) : a);
+            };
+        }
+    });
+})();