Skip to content

Instantly share code, notes, and snippets.

@xtravar
Created January 10, 2016 19:11
Show Gist options
  • Save xtravar/25c1094faade14ed48d9 to your computer and use it in GitHub Desktop.
Save xtravar/25c1094faade14ed48d9 to your computer and use it in GitHub Desktop.
Greasemonkey/Tampermonkey script for killing Yahoo Mail's autocomplete dialog
// ==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();
}
@gyuuuuuuyyy
Copy link

..

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