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.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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);
}