Created
March 10, 2017 21:57
-
-
Save derekpowell/b8f1161489a6d9b6bd97862caef87ec6 to your computer and use it in GitHub Desktop.
google docs - accept all changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ var d=document.getElementsByClassName("docos-accept-suggestion"); d = Array.prototype.slice.call(d); var i=1; d.forEach(function(n){console.log("accepting"); var e = document.createEvent("MouseEvents"); e.initEvent("click", true, false); n.dispatchEvent(e,true); e = document.createEvent("MouseEvents"); e.initEvent("mousedown", true, false); n.dispatchEvent(e,true); e = document.createEvent("MouseEvents"); e.initEvent("mouseup", true, false); i++; i++; setTimeout( function(){ n.dispatchEvent(e,true); } , (i * 1000)); }); })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cut/paste into web browser console on doc you want to accept changes in. This was stolen wholesale from a quora answer I believe.