Change My Alibaba Page Title

Change Alibaba title!

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 or Violentmonkey 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     Change My Alibaba Page Title
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  Change Alibaba title!
// @author       Moming
// @match        https://*.alibaba.com/*
// @grant        none
// ==/UserScript==


// Code Start Here

// Get page URL
var pageLink = document.URL;

// Change Page Title to More Meaningful
(function() {
    'use strict';
    if (pageLink.includes('message')) {
        // either replace an existing lang=... param or append it
        document.title = "询盘";
    }
    else if(pageLink.includes('ads')){
         document.title = "营销中心";
    }
    else if(pageLink.includes('manage_products')){
         document.title = "产品管理";
    }
    else if(pageLink.includes('manage_ad_keyword')){
        document.title = "关键词推广";
    }
    else if(pageLink.includes('campaign_list')){
        document.title = "定向推广";
    }
    else if(pageLink.includes('traffic_report')){
        document.title = "流量报告";
    }
    else if(pageLink.includes('keywordIndex')){
        document.title = "关键词指数";
    }  
    else if(pageLink.includes('videobank')){
        document.title = "视频银行";
    }     
})();