Skip to content

Instantly share code, notes, and snippets.

@fortserious
Created December 16, 2014 22:33
Show Gist options
  • Save fortserious/117c714af780e8d2821a to your computer and use it in GitHub Desktop.
Save fortserious/117c714af780e8d2821a to your computer and use it in GitHub Desktop.
gmail script to remove the "<Name> is busy. You may be interrupting" and red circle w/ minus sign. Buggy. Works best when chat window w <Name> is open
// ==UserScript==
// @name i know best
// @namespace rossdoran.com
// @version 0.1
// @description i do
// @author ross doran
// @match https://mail.google.com/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// @require https://greasyfork.org/scripts/1003-wait-for-key-elements/code/Wait%20for%20key%20elements.js?version=2765
// ==/UserScript==
function whoKnowsBestChat()
{
var x = $("img[src$='images/cleardot.gif'][title$='Busy']");
x.attr("class", "Hi c6");
var warnings = document.getElementsByClassName('js');
for (var i = 0; i < warnings.length; i++)
{
warnings[i].innerHTML = "";
}
}
function whoKnowsBestList()
{
var x = $("img[src$='images/cleardot.gif'][alt$='Busy']");
x.attr("class", "Hi c6");
var y = $("img[src$='images/cleardot.gif'][title$='Busy']");
y.attr("class", "Hi c6");
}
waitForKeyElements(".js", whoKnowsBestChat);
waitForKeyElements("img", whoKnowsBestList);
@fortserious
Copy link
Author

bugs: loading console resets images. mousing over chat list resets images.

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