yahoomailjp_url_security2

YahooJPメールでURLリンクと表示URLが異なる場合にフィッシング詐欺の可能性があるため色を警告色に変更します。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        yahoomailjp_url_security2
// @namespace   http://catherine.v0cyc1pp.com/yahoomailjp_url_security2.user.js
// @include     http://*.mail.yahoo.co.jp/*
// @include     https://*.mail.yahoo.co.jp/*
// @version     1.0
// @author      greg10
// @license     GPL 3.0
// @require     http://code.jquery.com/jquery-3.1.1.min.js
// @grant       none
// @description YahooJPメールでURLリンクと表示URLが異なる場合にフィッシング詐欺の可能性があるため色を警告色に変更します。
// ==/UserScript==


function main(){
	$(".msg-body").find("a").each( function() {
		var strtext = $(this).text();
		var strhref = $(this).attr('href');
		if ( strtext.indexOf(".") !== -1 ) {
			if ( strhref.indexOf(strtext) === -1 ) {
				$(this).attr("style", "color: black; background-color:red;");
			}
		}
	});

}

main();


var observer = new MutationObserver(function(mutations) {
    observer.disconnect();
    main();
    observer.observe( document, config);
});

var config = { attributes: true, childList: true, characterData: true, subtree:true };

observer.observe( document, config);