Hovering Bird

Makes Twitter alt tags appear as tooltips.

目前為 2020-10-05 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Hovering Bird
// @namespace   http://tantusar.github.io
// @include     https://twitter.com/*
// @include     https://tweetdeck.com/*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @version     1
// @grant       none
// @description Makes Twitter alt tags appear as tooltips.
// ==/UserScript==

$(document).bind('DOMSubtreeModified', function(){
  $("img").each(function(){
    if($(this).attr("alt") && $(this).attr("alt") != "Image"){
      $(this).attr("title", $(this).attr("alt"));
    }
  });
});