diamond.jp redirect to print page
@@ -1,6 +1,8 @@
/*
* @title diamond.jp redirect to print page
* @include http://diamond.jp/articles/-/*
+ * @contributor taizooo http://let.hatelabo.jp/taizooo/let/hLHUksb6l-tU (Fork of)
+ * @contributor noromanba
*/
(function () {
@@ -8,8 +10,10 @@
a = location.pathname.split('/');
b = a.map(function (x) {
return x.replace(/-/, 'print')
- })
+ });
c = b.join('/');
location.pathname = c;
-})()
-
+})();
+// supply ";" for avoid "SyntaxError: Unexpected identifier" when use as Bookmarklet
+// - Debuglet -> ok
+// - Bookmarklet -> ng, semicolon ploblem on packed code
/*
* @title diamond.jp redirect to print page
* @include http://diamond.jp/articles/-/*
* @contributor taizooo http://let.hatelabo.jp/taizooo/let/hLHUksb6l-tU (Fork of)
* @contributor noromanba
*/
(function () {
var a, b, c;
a = location.pathname.split('/');
b = a.map(function (x) {
return x.replace(/-/, 'print')
});
c = b.join('/');
location.pathname = c;
})();
// supply ";" for avoid "SyntaxError: Unexpected identifier" when use as Bookmarklet
// - Debuglet -> ok
// - Bookmarklet -> ng, semicolon ploblem on packed code
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。