├── gramm.gif ├── index.js └── readme.md /gramm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/isneuu/autofix-grammarly-errors/8846cd008e0581f412fa60410482a33bde8504f1/gramm.gif -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | function refreshData() { 2 | x = 3; // 3 Seconds 3 | 4 | try { 5 | 6 | if (document.querySelector('.cards-replacements_labels-itemRemove') !== null) { 7 | var newclass = document.querySelector('.cards-replacements_labels-itemRemove'); 8 | newclass.click(); 9 | } else { 10 | var newclass = document.getElementsByClassName("cards-replacements_labels-itemInsert"); 11 | newclass = newclass[0]; 12 | newclass.click(); 13 | } 14 | } catch (error) { 15 | if (document.getElementsByClassName("wrapper_fipkee2") !== null) { 16 | var cli = document.getElementsByClassName("wrapper_fipkee2"); 17 | var vli = cli[0]; 18 | vli.click(); 19 | } 20 | } 21 | setTimeout(refreshData, x * 1000); 22 | } 23 | 24 | refreshData(); 25 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # This script automatically applies your Grammarly suggestions. 2 | ![alt text](https://github.com/isneuu/autofix-grammarly-errors/blob/main/gramm.gif "Preview") 3 | 4 | 5 | 6 | ### Use case: Large document with 100+ errors 7 | 8 | ### How to use: 9 | 1. Go to Grammarly Web app 10 | 2. Go to Editor Settings, turn on "Auto-jump to the next suggestion" 11 | 3. I made it primarily for the "Correctness" tab in Grammarly. It also works for others. 12 | 13 | 14 | Paste the code in index.js 15 | 16 | 17 | > Caution: Please keep the tab "active" else it will throw an error. 18 | 19 | If you can do better, please do! They may change class names or do something different in the future. 20 | 21 | DM me @ https://isneuu.com 22 | --------------------------------------------------------------------------------