Created
March 2, 2010 04:48
-
-
Save hitode909/319146 to your computer and use it in GitHub Desktop.
GAEの管理画面のログをリンクにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment