Last active
December 4, 2020 14:34
-
-
Save leavlzi/de515ac17871a822755c7bb85277210d to your computer and use it in GitHub Desktop.
Change My Alibaba Page Title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Change My Alibaba Page Title | |
// @namespace http://tampermonkey.net/ | |
// @version 0.5 | |
// @updateURL https://gist.githubusercontent.com/leavlzi/de515ac17871a822755c7bb85277210d/raw/4d481334360d354358cbb4f2af5af3788ef533d1/changeMyAlibabaTitle.js | |
// @downloadURL https://gist.githubusercontent.com/leavlzi/de515ac17871a822755c7bb85277210d/raw/4d481334360d354358cbb4f2af5af3788ef533d1/changeMyAlibabaTitle.js | |
// @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 = "视频银行"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment