Created
January 10, 2016 19:11
-
-
Save xtravar/25c1094faade14ed48d9 to your computer and use it in GitHub Desktop.
Greasemonkey/Tampermonkey script for killing Yahoo Mail's autocomplete dialog
This file contains 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 Stop Yahoo Mail Autocomplete | |
// @namespace http://xtravar.org | |
// @version 0.1 | |
// @description Stops the stupid autocomplete from yahoo mail | |
// @author Xtravar | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js | |
// @match *.mail.yahoo.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
// from stack overflow - automatically run on dom change | |
var fireOnHashChangesToo = true; | |
var pageURLCheckTimer = setInterval ( | |
function () { | |
if ( this.lastPathStr !== location.pathname | |
|| this.lastQueryStr !== location.search | |
|| (fireOnHashChangesToo && this.lastHashStr !== location.hash) | |
) { | |
this.lastPathStr = location.pathname; | |
this.lastQueryStr = location.search; | |
this.lastHashStr = location.hash; | |
gmMain (); | |
} | |
} | |
, 111 | |
); | |
// added to kill the key-up event. this might be better | |
document.addEventListener('keyup', gmMain, true); | |
function gmMain () { | |
$(".yui3-aclist").remove(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
..