Outlook Title Emails

View title of emails in Outlook.com

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name Outlook Title Emails
// @description View title of emails in Outlook.com
// @author Tafarel Carvalho
// @include http*://*outlook.live.com/*
// @version 4.3
// @namespace https://greasyfork.org/users/43566
// ==/UserScript==

//23/11/2015
//Nova Atualização do aplicativos da Microsoft
//Script ficou mais enxuto

function main() {
  
	var boxEmails,froms,subjects,element,texto;

	boxEmails=document;
	
	//from
	froms=boxEmails.getElementsByClassName('_lvv_d');//BOXEs para evento de passar o mouse
	for(var iArea=0; iArea<froms.length; ++iArea) { //percorre a elemento para o evento
			
		element=froms[iArea];//Boxe para evento...
		texto=element.getElementsByTagName('span')[0].innerHTML;
		element.setAttribute('title',texto);
	}
	
	//subject
	subjects=boxEmails.getElementsByClassName('_lvv_q');//BOXEs para evento de passar o mouse
	for(var iArea=0; iArea<subjects.length; ++iArea) { //percorre a elemento para o evento

	    element=subjects[iArea];//Boxe para evento...
	    texto=element.getElementsByTagName('span')[0].innerHTML;
	    element.setAttribute('title',texto);
	    //element.setAttribute('onclick','document.title="Outlook - '+texto+'";');
	    
	}
	
	//document.getElementsByClassName('g_close')[0].setAttribute('onclick','document.title="'+firstTitle+'";');
}

setInterval(function(){main()},6000);