google calendarのpermalink作成
by
den8
04/17 [2025/04/17 11:46:05]
googleカレンダーの予定編集画面からpermalinkを作ります
@@ -6,8 +6,8 @@
* @javascript_url
*/
-if (location.href.match(/https:\/\/calendar.google.com/)) {
- // var shorten_url = RegExp.$1 + "/dp/" + e.value;
- prompt("Ctrl-Cでコピーしてください。", RegExp.$1);
+const result = location.href.match(/https:\/\/calendar.google.com\/calendar\.*\/eventedit\/([0-9a-zA-Z)/);
+if (result) {
+ prompt("Ctrl-Cでコピーしてください。", "");
// prompt("Ctrl-Cでコピーしてください。", shorten_url);
} else alert("対応サイトではありません。");
/*
* @title google calendarのpermalink作成
* @description googleカレンダーの予定編集画面からpermalinkを作ります
* @include https://calendar.google.com/
* @license 悪さしなければ自由に使ってもらって構いません
* @javascript_url
*/
const result = location.href.match(/https:\/\/calendar.google.com\/calendar\.*\/eventedit\/([0-9a-zA-Z)/);
if (result) {
prompt("Ctrl-Cでコピーしてください。", "");
// prompt("Ctrl-Cでコピーしてください。", shorten_url);
} else alert("対応サイトではありません。");
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。