Copy Google Document

By gantt Last update Jan 10, 2009 — Installed 1,972 times. Daily Installs: 3, 0, 2, 2, 0, 1, 2, 0, 3, 2, 2, 3, 0, 2, 1, 0, 1, 1, 2, 3, 3, 4, 2, 0, 0, 0, 5, 2, 0, 3, 2, 3
// ==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;