hack のためのネタ帳, etc,,,

×

BOOKMARKLET

2022-03-23:
javascript:(function(){let s,q=document.querySelector("input[name=q]").value;if(location.href.match(/[?&](q=[^&]*)/)){if(prompt("URL","[["+q+">"+(s="https://google.com/search?"+RegExp.$1)+"]]"))location.href=s;}})();
2025-07-11:
javascript:(function(){
  let stamp = (m=>`${m[1]}${m[2]}${m[3]}_${m[4]}${m[5]}${m[6]}`)(document.querySelector(".update").textContent.match(/([0-9]{4}).*([0-9]{2}).*([0-9]{2}).*([0-9]{2}).*([0-9]{2}).*([0-9]{2}).*/));
  let title = document.querySelector("h2").textContent.trim();
  let baseurl = location.href.match(/https?:\/\/seesaawiki.jp\/w\/[^\/]*\//)[0];
  let newtitle = `${title},${stamp}`;
  
  let url = document.querySelector(`a[href^="${baseurl}e/add?id="]`).href;
  let w = window.open(url);
  w && w.addEventListener("load", e=>{
    e.target.querySelector("#name").value = newtitle;
  });
  console.log(result);
})();

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます

広告募集中