Skip to content

Instantly share code, notes, and snippets.

@KingCprey
Created May 22, 2017 14:33
Show Gist options
  • Save KingCprey/ba624acb3f6385faa5934dd51939f49a to your computer and use it in GitHub Desktop.
Save KingCprey/ba624acb3f6385faa5934dd51939f49a to your computer and use it in GitHub Desktop.
EL EM GEE Docs - Bookmarklet
javascript:(function(){
var new_name="Anonymous Tachanka";
var chanka_pic="https://i.imgur.com/ZERv1w1.jpg";
var all_divs=document.querySelectorAll(".docs-presence-plus-collab-widget-container.goog-inline-block.docs-presence-plus-collab-widget-focus");
for(var i=0;i<all_divs.length;i++){
all_divs[i].setAttribute("data-tooltip",new_name);
all_divs[i].setAttribute("aria-label",new_name);
var img=all_divs[i].querySelector("img");
if(img!=null){img.setAttribute("src",chanka_pic);
img.setAttribute("alt",new_name);}
}
}());
@KingCprey
Copy link
Author

Copy pasta into URL section of bookmark
Tested in Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment