Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Just creates a button to go to the corresponding viewvc page

  • Loading branch information...
commit 386379891a714fa0cc4a2c4e0eb5bf5aa0cff75c 1 parent aa05c39
gtakeuchi authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 ViewSvnLog.user.js
View
27 ViewSvnLog.user.js
@@ -0,0 +1,27 @@
+// ==UserScript==
+// @name ViewSvnLog
+// @namespace taksan
+// @description View svn log in a objective svn URL
+// @include https://svn/svn/*
+// ==/UserScript==
+
+main();
+
+function showLog() {
+ window.location=document.location.href.replace('//svn/svn/', '//svn/viewvc/')+'?view=log';
+}
+
+function main() {
+ var buttonnode= document.createElement('input');
+ buttonnode.setAttribute('type','button');
+ buttonnode.setAttribute('name','showLog');
+ buttonnode.setAttribute('value','Go to Log');
+ buttonnode.onclick = showLog;
+
+ theBody = document.getElementsByTagName('body')[0];
+
+
+ theBody.insertBefore(buttonnode, theBody.firstChild);
+}
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.