google calendarのpermalink作成

    @@ -6,8 +6,7 @@ * @javascript_url */ -var result = location.href.match(/https:\/\/calendar.google.com\/calendar\.*\/eventedit\/([0-9a-zA-Z)/); +var 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
     */
    
    var result = location.href.match(/https:\/\/calendar.google.com\/calendar\/.*\/eventedit\/([0-9a-zA-Z)/);
    if (result) {
      prompt("Ctrl-Cでコピーしてください。", "");
    } else alert("対応サイトではありません。");
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。