Created
April 1, 2010 12:03
-
-
Save xulapp/351720 to your computer and use it in GitHub Desktop.
altTooltip.uc.js
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 altTooltip.uc.js | |
// @description title がなければ alt を出す | |
// @include main | |
// @compatibility Firefox 3.5+ | |
// @namespace http://twitter.com/xulapp | |
// @author xulapp | |
// @license MIT License | |
// @version 2010/04/01 21:00 +09:00 | |
// ==/UserScript== | |
eval('FillInHTMLTooltip = ' + FillInHTMLTooltip.toString().replace( | |
/\btipElement\.getAttribute\("title"\)/, | |
'$& || (let (alt = tipElement.getAttribute("alt")) alt ? "[alt] " + alt : "")' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment