douyou

豆邮!豆邮!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        douyou
// @namespace   [email protected]
// @description 豆邮!豆邮!
// @include     http*
// @version     1.0
// @grant       none
// ==/UserScript==

document.title = document.title.replace(/私信.*/g, '我的豆邮');

var a1 = document.querySelector('#top-nav-doumail-link');
a1.textContent = a1.textContent.replace(/私信.*/g, '豆邮');
if (location.pathname.indexOf('people') != - 1) {

  var a2  = document.querySelector('.user-opt');
  a2.innerHTML = a2.innerHTML.replace(/私信.*/g, '豆邮');
}
if (location.pathname.indexOf('doumail') != - 1) {

  document.querySelector('#content h1').innerHTML = '我的豆邮';

  var a3 = document.querySelector('.aside');
  a3.innerHTML = a3.innerHTML.replace(/私信.*/g, '豆邮');

  var a4 = document.querySelector('.doumail-toolbar');
  if (a4 != null) {
    a4.innerHTML = a4.innerHTML.replace(/私信.*/g, '豆邮');
  }

  document.querySelector('.item-submit').innerHTML = '<span class="bn-flat"><input type="submit" name="m_reply" value="回应"></span>';
}