cevoj35548

QuillBot Premium Userscript

Mar 25th, 2023 (edited)
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Quillbot Premium
  3. // @namespace    https://github.com/razoo-choudhary/quillbot-premium
  4. // @version      3.0
  5. // @description  QuillBot Premium
  6. // @author       cevoj
  7. // @run-at       document-idle
  8. // @match        https://quillbot.com/*
  9. // @icon         https://quillbot.com/favicon.png
  10. // @grant        none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.     'use strict';
  15.     const script = document.createElement('script');
  16.     script.setAttribute('type', 'text/javascript');
  17.     script.setAttribute('src', 'https://ragug.github.io/quillbot-premium-free/quillbot.js');
  18.     document.head.appendChild(script);
  19.  
  20.     // Automatically fill Secret Access Token
  21.     let autofillToken = () => {
  22.         const observer = new MutationObserver(function(mutations) {
  23.             mutations.forEach(function(mutation) {
  24.                 if (mutation.type == 'childList') {
  25.                     const input = document.querySelector('input.MuiInputBase-input');
  26.                     if (input) {
  27.                         input.value = "ragu@123";
  28.                         input.dispatchEvent(new Event('input', { bubbles: true }));
  29.                         // Stop observing
  30.                         observer.disconnect();
  31.                     }
  32.                 }
  33.             });
  34.         });
  35.         observer.observe(document.body, {
  36.             childList: true,
  37.         });
  38.     }
  39.     // Exclude login page
  40.     if (window.location.pathname !== '/login') {
  41.         autofillToken();
  42.     }
  43. })();
Advertisement
Add Comment
Please, Sign In to add comment