// ==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); }; } }); })();