Skip to content

Instantly share code, notes, and snippets.

@Seacolor
Created January 5, 2012 06:53
Show Gist options
  • Save Seacolor/1564065 to your computer and use it in GitHub Desktop.
Save Seacolor/1564065 to your computer and use it in GitHub Desktop.
メロンブックス通信販売における商品詳細のページタイトルを商品名に
// ==UserScript==
// @name melonbooks detail page title optimizer
// @description book title to page title.
// @namespace http://seacolorswind.sakura.ne.jp/
// @match http://shop.melonbooks.co.jp/shop/detail/*
// ==/UserScript==
if ( document.title.match(/(\[MelonBooks\]).+?【(.+?)】/) ) {
document.title = RegExp.$1 + " " + RegExp.$2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment