Συζητήσεις » Αιτήματα Δημιουργίας
Changing Title of HTML-Page
I use this code for my own.
// ==UserScript==
// @name * Title Shortener
// @namespace knoa.jp
// @description タイトルを短縮します。
// @include http://www.amazon.co.jp/*
// @include https://www.amazon.co.jp/*
// @include http://www.yodobashi.com/*
// @include https://www.yodobashi.com/*
// @include http://itunes.apple.com/jp/app/*
// @include https://itunes.apple.com/jp/app/*
// @include https://contact.auctions.yahoo.co.jp/*
// ==/UserScript==
(function(){
switch(true){
case location.href.match(/^https?:\/\/www\.amazon\.co\.jp\//) !== null:
// Amazon.co.jp: 12-60mm
// Amazon.co.jp: OLYMPUS 標準ズームレンズ ZUIKO DIGITAL ED12-60mm F2.8-4.0 SWD: カメラ・ビデオ
// Amazon.co.jp: こちらもどうぞ: OLYMPUS 標準ズームレンズ ZUIKO DIGITAL ED12-60mm F2.8-4.0 SWD
// Amazon.co.jp|LPL 背景紙スタンド バックペーパースタンド L18558-17|カメラ・ビデオ通販
// Amazon.co.jp : 不二貿易 ラルゴ ローボード ブラウン 幅89cm リビング収納 95506 : ホーム&キッチン
// Amazon.co.jp: 0-1500円 - AV・テレビリモコン / AVアクセサリ: 家電&カメラ
document.title = document.title.replace(/^Amazon(\.co\.jp)?[::||\s]+(こちらもどうぞ: )?(.+)$/, '$3');
break;
case location.href.match(/^https?:\/\/www\.yodobashi\.com\//) !== null:
document.title = document.title.replace(/^ヨドバシ.com - (.+)$/, '$1');
break;
case location.href.match(/^https?:\/\/itunes\.apple\.com\/jp\/app\//) !== null:
document.title = document.title.replace(/^iTunes の App Store で配信中の [a-zA-Z、\s]+用 (.+)$/, '$1');
break;
case location.href.match(/^https?:\/\/contact\.auctions\.yahoo\.co\.jp\//) !== null:
document.title = document.querySelector('#acConHeader .decItmName').textContent;
break;
}
})();
Thank you! This is also working for me!
document.title = ""
Changing Title of HTML-Page
For clarity reasons I'd like to change the order of the title tag of a website. Acutally it looks like that:
<title>customer view - John Doe - CRM</title>
When you have a lot of tabs opened with different customers you can see only "cust..." but not the customer name. Therefore I would like to remove "customer view" oder put it at the end.
Could anybody help me? Thank you very much!