Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Quillbot Premium
- // @namespace https://github.com/razoo-choudhary/quillbot-premium
- // @version 3.0
- // @description QuillBot Premium
- // @author cevoj
- // @run-at document-idle
- // @match https://quillbot.com/*
- // @icon https://quillbot.com/favicon.png
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- const script = document.createElement('script');
- script.setAttribute('type', 'text/javascript');
- script.setAttribute('src', 'https://ragug.github.io/quillbot-premium-free/quillbot.js');
- document.head.appendChild(script);
- // Automatically fill Secret Access Token
- let autofillToken = () => {
- const observer = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if (mutation.type == 'childList') {
- const input = document.querySelector('input.MuiInputBase-input');
- if (input) {
- input.value = "ragu@123";
- input.dispatchEvent(new Event('input', { bubbles: true }));
- // Stop observing
- observer.disconnect();
- }
- }
- });
- });
- observer.observe(document.body, {
- childList: true,
- });
- }
- // Exclude login page
- if (window.location.pathname !== '/login') {
- autofillToken();
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment