Created
December 16, 2014 22:33
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bugs: loading console resets images. mousing over chat list resets images.