Grammarly Premium Unlocker

Unlocks Grammarly Premium so that you don't have to pay

  1. // ==UserScript==
  2. // @name Grammarly Premium Unlocker
  3. // @namespace grammarly.taozhiyu.gitee.io
  4. // @version 1.1
  5. // @description Unlocks Grammarly Premium so that you don't have to pay
  6. // @author The Writer
  7. // @match *://*.grammarly.com/*
  8. // @icon https://grammarly.com/favicon.png
  9. // @require https://gf.qytechs.cn/scripts/455943-ajaxhooker/code/ajaxHooker.js?version=1124435
  10. // @run-at document-start
  11. // @grant none
  12. // @license none
  13. // ==/UserScript==
  14.  
  15. /* global ajaxHooker */
  16. (function() {
  17. 'use strict';
  18.  
  19. // Hooking AJAX request to unlock premium
  20. ajaxHooker.hook(request => {
  21. if (request.url.includes('api/grammarly/3.0/users/status')) {
  22. request.response = res => {
  23. const json = JSON.parse(res.responseText);
  24. json.data.isPremium = true;
  25. res.responseText = JSON.stringify(json);
  26. };
  27. }
  28. });
  29.  
  30. // Function to simulate a click event
  31. function simulateClick(element) {
  32. var event = new MouseEvent('click', {
  33. view: window,
  34. bubbles: true,
  35. cancelable: true
  36. });
  37. element.dispatchEvent(event);
  38. }
  39.  
  40. // Inject premium status by overriding the isPremium property
  41. function injectPremiumStatus() {
  42. Object.defineProperty(window, 'isPremium', {
  43. get: function() {
  44. return true;
  45. }
  46. });
  47. }
  48.  
  49. // Display premium features by manipulating the DOM
  50. function displayPremiumFeatures() {
  51. var premiumFeatures = document.querySelectorAll('.premium-feature');
  52. premiumFeatures.forEach(function(element) {
  53. element.style.display = 'block';
  54. });
  55. }
  56.  
  57. // Main function to unlock Grammarly Premium
  58. function unlockGrammarlyPremium() {
  59. injectPremiumStatus();
  60. displayPremiumFeatures();
  61. console.log('Grammarly Premium Unlocked');
  62. }
  63.  
  64. // Execute the main function
  65. window.addEventListener('load', unlockGrammarlyPremium);
  66. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址