Rewrite bookmarklet