By gantt
—
Last update
Jan 10, 2009
—
Installed
1,972 times.
// ==UserScript==
// @name Copy Google Document
// @namespace http://googlesystem.blogspot.com/
// @description Copy a read-only Google document to your account
// @include http://docs.google.com/View?docid=*
// @include https://docs.google.com/View?docid=*
// ==/UserScript==
var elem=document.getElementById("maybecanedit");
var url=document.location + "";
url=url.replace(/View\?/, "DocAction?action=copy&");
elem.innerHTML="<a class='google-small-link' href='"+ url +"'>Copy to my account</a> <span style='color: rgb(103, 103, 103);'>|</span> "+elem.innerHTML;