GAEの管理画面からアクセスログを見られるのだけど,ログを見ていて,アクセスのあったページを見に行きたい,と思うことがよくあったので,Greasemonkeyを書いた.
// ==UserScript== // @name gae-log-file-link // @namespace http://www.hatena.ne.jp/hitode909 // @include https://appengine.google.com/* // ==/UserScript== var host = document.querySelector("title").textContent.split(" ")[2]; setInterval(function() { var files = document.querySelectorAll(".file"); for(var i = 0;i < files.length; i++) { if (files[i].querySelector('a')) continue; var a = document.createElement("a"); a.setAttribute("href", ['http://', host, '.appspot.com' + files[i].textContent].join("")); a.setAttribute("target", "_blank"); a.textContent = files[i].textContent; files[i].textContent = ""; files[i].appendChild(a); } }, 500);