O365_Unread_Email_Script

Tampermonkey script that changes the background color for unread emails in the Outlook page of Microsoft O365 (Office 365)

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         O365_Unread_Email_Script
// @author       jasonmclose
// @version      0.1
// @description  Tampermonkey script that changes the background color for unread emails in the Outlook page of Microsoft O365 (Office 365)
// @author       Jason Close
// @match        https://outlook.office365.com/*
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js
// @namespace https://greasyfork.org/users/31726
// ==/UserScript==
'use strict';

function timerFunction() {
    $("._lvv_l1").find("[aria-label*=Unread]").addClass("unread_email"); 
    $(".unread_email.ms-bg-color-themeLight").removeClass("unread_email");
}

$(document).ready(function() {
    $("head").append('<style type="text/css"></style>');
    var newStyleElement = $("head").children(':last');
    newStyleElement.html('.unread_email{background:#ffc2b3;} .clicked_unread_email{background:#A2D5E1;}');  
    setInterval(timerFunction, 500);
});