Quillbot Premium Unlocker by Parv.user.js 1.0 KB

1234567891011121314151617181920212223242526272829
  1. // ==UserScript==
  2. // @name Quillbot Premium Unlocker
  3. // @version 0.3.2
  4. // @description Unlocks Quillbot Premium so that you don't have to pay.
  5. // @author Parv Ashwani
  6. // @match https://quillbot.com/*
  7. // @icon https://quillbot.com/favicon.png
  8. // @require https://greasyfork.org/scripts/455943-ajaxhooker/code/ajaxHooker.js?version=1124435
  9. // @run-at document-start
  10. // @grant none
  11. // @license none
  12. // ==/UserScript==
  13. /* global ajaxHooker*/
  14. (function() {
  15. 'use strict';
  16. // Hooking AJAX request to unlock premium
  17. ajaxHooker.hook(request => {
  18. if (request.url.endsWith('get-account-details')) {
  19. request.response = res => {
  20. const json = JSON.parse(res.responseText);
  21. const a = "data" in json ? json.data : json;
  22. a.profile.accepted_premium_modes_tnc = true;
  23. a.profile.premium = true;
  24. res.responseText = JSON.stringify("data" in json ? (json.data = a, json) : a);
  25. };
  26. }
  27. });
  28. })();