Improved Inbox / Messages Page - eBay Australia

This script improves the usability of the Inbox/Messages page within eBay. Adds support for middle/ctrl click and cleans up message list.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Improved Inbox / Messages Page - eBay Australia
// @description This script improves the usability of the Inbox/Messages page within eBay. Adds support for middle/ctrl click and cleans up message list.
// @version 1.00
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Userscript - Improve eBay Messages
// @contributionAmount 5
// @namespace com.seifer7.improveebaymessages
// @match https://mesg.ebay.*.*/mesgweb/*
// @match https://mesg.ebay.*/mesgweb/*
// @grant none
// ==/UserScript==

addcss('#emailRowView .msg-row td { white-space: normal !important; padding-top:5px; padding-bottom: 5px; line-height: normal; cursor: default;} #emailRowView .msg-row td a:link, #emailRowView .msg-row td a:visited { color: inherit; } #emailRowView tr.msg-read { color: #999; }')
jQuery('#emailRowView .msg-row td').off();
$msgsubjects = jQuery('#emailRowView .msg-row td[id$="sub"] div');
viewurl = jQuery("#viewMessageDetailsForm").attr('action');

$msgsubjects.each(function(index) {
  msgsubject = jQuery(this).html();
  msgid = jQuery(this).attr('id');
  msgid = msgid.split('_')[0];
  msgurl = viewurl + "/"+msgid;
  jQuery(this).html('<a href="'+msgurl+'">'+msgsubject+'</a>');
});


function addcss(css){
    var head = document.getElementsByTagName('head')[0];
    var s = document.createElement('style');
    s.setAttribute('type', 'text/css');
    if (s.styleSheet) {   // IE
        s.styleSheet.cssText = css;
    } else {                // the world
        s.appendChild(document.createTextNode(css));
    }
    head.appendChild(s);
}