Instantly share code, notes, and snippets.
Created
July 18, 2009 14:20
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save jhsu/149571 to your computer and use it in GitHub Desktop.
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 Lighthouse theme for Trac | |
// @namespace http://philwilson.org | |
// @description Lighthouse theme for Trac | |
// @include http://www.viralogy.com:8000/* | |
// @include http://www.viralogy.com/trac/* | |
// @version 0.7 | |
// ==/UserScript== | |
// customized by jhsu for Viralogy Team | |
var traclighthouse_version = "0.7"; | |
autoUpdateFromUserscriptsDotOrg({ | |
name: 'Lighthouse theme for Trac', | |
url: 'http://userscripts.org/scripts/source/37887.user.js', | |
version: traclighthouse_version, | |
}); | |
var projectName = document.location.pathname.split("/")[2]; | |
document.getElementById("header").innerHTML = "<h1 style='float: left; padding: 10px 0 0 18px'><a href='http://viralogy.com/trac/timeline' style='color: #fff; text-decoration: none;'>Viralogy</a></h1>"; | |
var xpathstylesheets = "//link[@rel='stylesheet']"; | |
var stylesheets = document.evaluate(xpathstylesheets, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | |
var xpathstarts = "//link[@rel='start']"; | |
var starts = document.evaluate(xpathstarts, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | |
startlink =starts.snapshotItem(0).getAttribute("href"); | |
tracbase = startlink.substring(0, startlink.indexOf("wiki")); | |
var head = document.getElementsByTagName('head')[0]; | |
function removeTracStylesheets() { | |
for (var i=0;i<stylesheets.snapshotLength;i++ ) { | |
head.removeChild(stylesheets.snapshotItem(i)); | |
} | |
} | |
function addMyStylesheet(url, media) { | |
var cssNode = document.createElement('link'); | |
cssNode.type = 'text/css'; | |
cssNode.rel = 'stylesheet'; | |
cssNode.href = url; | |
cssNode.media = media; | |
head.appendChild(cssNode); | |
} | |
removeTracStylesheets(); | |
// Blueprint 0.8 with slight increase to base font size (102% from 100%) | |
addMyStylesheet("data:text/css;charset=utf-8;base64,LyogDQogQmx1ZXByaW50IENTUyBGcmFtZXdvcmsgMC44DQogaHR0cDovL2JsdWVwcmludGNzcy5vcmcNCg0KICAgKiBDb3B5cmlnaHQgKGMpIDIwMDctUHJlc2VudC4gU2VlIExJQ0VOU0UgZm9yIG1vcmUgaW5mby4NCiAgICogU2VlIFJFQURNRSBmb3IgaW5zdHJ1Y3Rpb25zIG9uIGhvdyB0byB1c2UgQmx1ZXByaW50Lg0KICAgKiBGb3IgY3JlZGl0cyBhbmQgb3JpZ2lucywgc2VlIEFVVEhPUlMuDQogICAqIFRoaXMgaXMgYSBjb21wcmVzc2VkIGZpbGUuIFNlZSB0aGUgc291cmNlcyBpbiB0aGUgJ3NyYycgZGlyZWN0b3J5Lg0KDQoqLw0KDQovKiByZXNldC5jc3MgKi8NCmh0bWwsIGJvZHksIGRpdiwgc3Bhbiwgb2JqZWN0LCBpZnJhbWUsIGgxLCBoMiwgaDMsIGg0LCBoNSwgaDYsIHAsIGJsb2NrcXVvdGUsIHByZSwgYSwgYWJiciwgYWNyb255bSwgYWRkcmVzcywgY29kZSwgZGVsLCBkZm4sIGVtLCBpbWcsIHEsIGRsLCBkdCwgZGQsIG9sLCB1bCwgbGksIGZpZWxkc2V0LCBmb3JtLCBsYWJlbCwgbGVnZW5kLCB0YWJsZSwgY2FwdGlvbiwgdGJvZHksIHRmb290LCB0aGVhZCwgdHIsIHRoLCB0ZCB7bWFyZ2luOjA7cGFkZGluZzowO2JvcmRlcjowO2ZvbnQtd2VpZ2h0OmluaGVyaXQ7Zm9udC1zdHlsZTppbmhlcml0O2ZvbnQtc2l6ZToxMDIlO2ZvbnQtZmFtaWx5OmluaGVyaXQ7dmVydGljYWwtYWxpZ246YmFzZWxpbmU7fQ0KYm9keSB7bGluZS1oZWlnaHQ6MS41O30NCnRhYmxlIHtib3JkZXItY29sbGFwc2U6c2VwYXJhdGU7Ym9y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6I0M2RDg4MDt9DQouZXJyb3IgYSB7Y29sb3I6IzhhMWYxMTt9DQoubm90aWNlIGEge2NvbG9yOiM1MTQ3MjE7fQ0KLnN1Y2Nlc3MgYSB7Y29sb3I6IzI2NDQwOTt9", "screen"); | |
// default trac styles for styling code and diffs | |
addMyStylesheet(tracbase+"chrome/common/css/code.css", "screen"); | |
//addMyStylesheet(tracbase+"/chrome/common/css/changeset.css", "screen"); | |
addMyStylesheet(tracbase+"chrome/common/css/diff.css", "screen"); | |
//document.body.setAttribute("class", "container"); | |
//document.getElementById("main").setAttribute("class", "container"); | |
//document.getElementById("content").setAttribute("class", "prepend-1"); | |
if (document.getElementById("changelog")) { | |
var xpathcomments = "//div[@id='changelog']/form/div//div[@class='comment']"; | |
var comments = document.evaluate(xpathcomments, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | |
for (var i=0;i<comments.snapshotLength;i++ ) { | |
if (comments.snapshotItem(i).innerHTML.length > 0) { | |
var avatarHTML = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAKU2lDQ1BJQ0MgUHJvZmlsZQAAeJydU3dUk+cXvt/3ZQ9WQgRkfOwlU4EAIiOsMGTIFoWQBAgjxJCAAzeighVFRIaKIFUBC1YrIHUiioOiuHdBiohai1VcOPoH57S2p7/+evr89Zzn3nvue+99XgBGYIhEmoOqAWRLFfLIAB88Lj4BJ/cBClQggQOAQJgrC53jHwUAwPfj4bmRAT7wJ7y+AQgAwFWbwHAc1/O8Y3s3aH1zcv3MpIKlK+/DP0NdKJMrAJBwAJguEucKAZBCAMjKV8gUAMgYALBTMmUKAJQAAGx5XHwCAKoFAOy0ST4NANgpk9wLANiibKkIAI0CAJkoWyQCQLsBYF2eUiwCwEIAoChPIs4HwK4BgEmWMlsCgL0FAHa2WJALQGAAgIlCLEwHINgDAEMeFckDIMwEoDDSvuApX3CFeKECAICXI1skl6SlK3ALoSXu4OrKxQPF+VlihcImXCD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c67Z05XVpaUlPy1trb2HNAI9BDH60qJPp9GiyCw8311/PPPO2RZXgUMv90pqyRqf2gUTjCxZXluGNiQXL9+/ea12lr7/v3llbt27ToD1AO3g8DjvgsdDIGQ+IAeTUqKXwhBS6dMrCR+4fGRrHlmFABHjhw+I8ty55cnTtQ6nc6O3bt324GW4NUOuAiESlIeHwoBgNSs4SOKAoBFmNdDabBhyVjmF2YhSVJv2Z6yT15fs6YUaAN6AQlwAx4Cnh4U6CER6LsLnVWC6M16LdtWTWRyjhFJkno3btr41sc7dvyNwNbvVZ9u6DJQAjqAqpsuxQoEqsr658YxOceIw9Ha9MKypevsdvtRAiEyoJgeqMR6NxpLtEAgMYOnxkk2A9tWTWJyjpHq6urKn/z45dfsdvsBAmHzQMEPRnJvNjS2tLV3iD/+wy4+OXxNtLV3iLb2DlG+f/8hYBaBkvs/KxmrV6/+VeOtpt4Q8MZbTT3btm//AHgMSPtPAxrof2QaYHR+fv68uXPnTtdqtd7jx4+fuXLlymkCdfyBJWssGcy/lBrAFLz8BI64EvehJD6Uh/JfkH8DPE83eizsPsYAAAAASUVORK5CYII=' style='float:left; padding-left: 1em;'/>"; | |
form = comments.snapshotItem(i).parentNode.parentNode; | |
form.innerHTML = avatarHTML+form.innerHTML; | |
} | |
} | |
} | |
// when viewing a ticket make the milestone name link to the query showing all tickets in this milestone | |
if (document.getElementById("ticket")) { | |
var milestoneHeading = document.getElementById("h_milestone"); | |
var ticketMilestone = milestoneHeading.nextSibling.nextSibling.textContent; // newline followed by the actual value | |
var milestoneLink = tracbase + "query?status=~&order=keywords&milestone="+escape(ticketMilestone); | |
milestoneHeading.nextSibling.nextSibling.innerHTML = "<a href="+milestoneLink+">"+ticketMilestone+"</a>"; | |
} | |
// specific for my work ;) | |
if (document.location.href.indexOf("bath.ac.uk")>0 && document.getElementById("newticket")!=null && document.location.hash.indexOf("preview")<0) { | |
var description = document.getElementById("description"); | |
description.value = "A description of the feature or problem\n\n==== Acceptance criteria ====\n\n * page must be returned in under two seconds\n * search results must match those in the source application\n * Content must follow Tone of Voice guidelines"; | |
var summary = document.getElementById("summary"); | |
summary.value = "Users can do something with something "; | |
} | |
/* | |
if (document.getElementById("changelog")) { | |
// insert comment bubble before each change comment | |
var changeforms = document.getElementById("changelog").getElementsByTagName("form"); | |
var avatarHTML = "<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAKU2lDQ1BJQ0MgUHJvZmlsZQAAeJydU3dUk+cXvt/3ZQ9WQgRkfOwlU4EAIiOsMGTIFoWQBAgjxJCAAzeighVFRIaKIFUBC1YrIHUiioOiuHdBiohai1VcOPoH57S2p7/+evr89Zzn3nvue+99XgBGYIhEmoOqAWRLFfLIAB88Lj4BJ/cBClQggQOAQJgrC53jHwUAwPfj4bmRAT7wJ7y+AQgAwFWbwHAc1/O8Y3s3aH1zcv3MpIKlK+/DP0NdKJMrAJBwAJguEucKAZBCAMjKV8gUAMgYALBTMmUKAJQAAGx5XHwCAKoFAOy0ST4NANgpk9wLANiibKkIAI0CAJkoWyQCQLsBYF2eUiwCwEIAoChPIs4HwK4BgEmWMlsCgL0FAHa2WJALQGAAgIlCLEwHINgDAEMeFckDIMwEoDDSvuApX3CFeKECAICXI1skl6SlK3ALoSXu4OrKxQPF+VlihcImXCDMFMhFOC8nWyaQLgKYnBkAADRyIwN8cL4fz9nB1dnZxtHW4YtF/WPwXyIuPgGfZC8jAAEAhNP7h/Z3eTn1ANxxAGzTH1pKFUD7GgCtO39oJrsAVAsB2i59MQ+H78fD0xUKmZudXX5+vq1ELLQVpn/R5/8m/At80c+W78fDf18P7itOFSizFHhkgA8uzMnKUcrxXJlAKMZt/mri/1z49++YFilOFcvFUqEYj5GI8yXSNJyXIxVJFJIcKS6R/q8j/seyv2DS1wDAavgE7CRbULvEBuznXiCw6IAl7gQA5Pe7hVBjIBwAYg1GJn0PADD5m/8MtBQA0FxJGg4AwIuMwoVKed5kjAAAQAQaqAIbtEEfjMECbMARXMA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Onxkk2A9tWTWJyjpHq6urKn/z45dfsdvsBAmHzQMEPRnJvNjS2tLV3iD/+wy4+OXxNtLV3iLb2DlG+f/8hYBaBkvs/KxmrV6/+VeOtpt4Q8MZbTT3btm//AHgMSPtPAxrof2QaYHR+fv68uXPnTtdqtd7jx4+fuXLlymkCdfyBJWssGcy/lBrAFLz8BI64EvehJD6Uh/JfkH8DPE83eizsPsYAAAAASUVORK5CYII=' style='float:left;'/>"; | |
for (var i=0;i<changeforms.length;i++) { | |
changeforms[i].childNodes[1].innerHTML = avatarHTML+changeforms[i].childNodes[1].innerHTML; | |
} | |
} | |
*/ | |
GM_addStyle("#search, #ctxtnav, #footer, #content a.anchor, #content span.inlinebuttons, #anydiff { display: none; }"); | |
if (document.location.pathname.indexOf("browser")>0 || document.location.pathname.indexOf("report")>0) { | |
GM_addStyle("#ctxtnav { \ | |
display: block;\ | |
float: right;\ | |
padding-top: 5px;\ | |
padding-right: 1.2em;\ | |
}\ | |
#ctxtnav ul, #ctxtnav li { \ | |
display: inline;\ | |
margin-bottom: 0;\ | |
margin-left: 8px;\ | |
}\ | |
#ctxtnav a { \ | |
color: white;\ | |
}\ | |
#ctxtnav h2 {\ | |
display: none;\ | |
}"); | |
} | |
GM_addStyle("hr { display: none; }\ | |
th { background-color: inherit; }\ | |
body { background: #ddd; color: #333; margin: 0; }\ | |
#header h1 { margin-bottom: 0px; }\ | |
#banner {\ | |
background: #5A9ECF;\ | |
height: 70px;\ | |
margin: 0;\ | |
text-align: left;\ | |
padding-top: 1px;\ | |
position: relative;\ | |
border-top: 1px solid #222;\ | |
}\ | |
#banner #metanav ul {\ | |
margin: 0;\ | |
}\ | |
#banner #metanav ul li {\ | |
font-size: 92%;\ | |
list-style: none;\ | |
float: right;\ | |
margin-right: 10px;\ | |
margin-top: 0px;\ | |
}\ | |
#mainnav {\ | |
background: #5A9ECF;\ | |
height: 20px;\ | |
margin: 0;\ | |
text-align: left;\ | |
padding-top: 1px;\ | |
position: relative;\ | |
border-bottom: 6px solid #058;\ | |
border-top: none;\ | |
}\ | |
#mainnav ul {\ | |
height: 100%;\ | |
margin-bottom: 0;\ | |
}\ | |
#mainnav ul li {\ | |
list-style: none;\ | |
display: inline;\ | |
margin: 0 5px 0 0;\ | |
background: #333333 none repeat scroll 0 0;\ | |
-moz-border-radius-topleft: 4px;\ | |
-moz-border-radius-topright: 4px;\ | |
padding: 4px 0 3px 0;\ | |
}\ | |
#mainnav ul li:hover {\ | |
background-color: #777;\ | |
}\ | |
#mainnav ul li a {\ | |
color: #fff;\ | |
text-decoration: none;\ | |
font-weight: bold;\ | |
padding: 4px 10px 3px 10px;\ | |
}\ | |
#mainnav ul li.active {\ | |
background-color: #004477;\ | |
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAKU2lDQ1BJQ0MgUHJvZmlsZQAAeJydU3dUk+cXvt/3ZQ9WQgRkfOwlU4EAIiOsMGTIFoWQBAgjxJCAAzeighVFRIaKIFUBC1YrIHUiioOiuHdBiohai1VcOPoH57S2p7/+evr89Zzn3nvue+99XgBGYIhEmoOqAWRLFfLIAB88Lj4BJ/cBClQggQOAQJgrC53jHwUAwPfj4bmRAT7wJ7y+AQgAwFWbwHAc1/O8Y3s3aH1zcv3MpIKlK+/DP0NdKJMrAJBwAJguEucKAZBCAMjKV8gUAMgYALBTMmUKAJQAAGx5XHwCAKoFAOy0ST4NANgpk9wLANiibKkIAI0CAJkoWyQCQLsBYF2eUiwCwEIAoChPIs4HwK4BgEmWMlsCgL0FAHa2WJALQGAAgIlCLEwHINgDAEMeFckDIMwEoDDSvuApX3CFeKECAICXI1skl6SlK3ALoSXu4OrKxQPF+VlihcImXCDMFMhFOC8nWyaQLgKYnBkAADRyIwN8cL4fz9nB1dnZxtHW4YtF/WPwXyIuPgGfZC8jAAEAhNP7h/Z3eTn1ANxxAGzTH1pKFUD7GgCtO39oJrsAVAsB2i59MQ+H78fD0xUKmZudXX5+vq1ELLQVpn/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UgyzySRwg5gcDMsAixgCy0CDAA7zMkodhfUvgLg4otNg73lxJ474MJAsgHmOQxqxRJViUAwHmPfDQrwBSTgMOep1iuENaYA/IKOUAYfk0FN381Ny4mstL95S3EPwjd5zXmOdds4fBgv8xc0mQyOQeSMuCnmX1d6w7aBH4Ur0Y1gb14/k8ZcAuMgbsn9NgBuE0ufVUAAAAASUVORK5CYII=');\ | |
background-repeat: no-repeat;\ | |
background-position: 9px 5px;\ | |
background-attachment: scroll;\ | |
padding-left: 20px;\ | |
}\ | |
#content {\ | |
background-color: #fff;\ | |
-moz-border-radius-topleft: 4px;\ | |
-moz-border-radius-topright: 4px;\ | |
margin-left: 18px;\ | |
margin-right: 18px;\ | |
margin-top: 7px;\ | |
padding-left: 0px;\ | |
}\ | |
#content h1 {\ | |
background: #006699 none repeat scroll 0 0;\ | |
-moz-border-radius-topleft: 4px;\ | |
-moz-border-radius-topright: 4px;\ | |
color: #fff;\ | |
font-size: 1.4em;\ | |
padding: 7px;\ | |
margin-bottom: 0;\ | |
}\ | |
#content h1 a {\ | |
color: #fff;\ | |
margin-bottom: 0;\ | |
}\ | |
h1 .sep{\ | |
color: inherit;\ | |
}\ | |
#content h2 {\ | |
font-size:1.3em;\ | |
margin-bottom:0;\ | |
margin-left:7px;\ | |
margin-top:1.2em;\ | |
}\ | |
#content div#description {\ | |
background: #5A9ECF none repeat scroll 0 0;\ | |
color: #fff;\ | |
padding: 7px;\ | |
margin-bottom: 0;\ | |
}\ | |
#content #description p {\ | |
margin-bottom: 0;\ | |
}\ | |
#content #description ul {\ | |
margin-bottom: 0;\ | |
}\ | |
#content form#prefs {\ | |
background: #5A9ECF none repeat scroll 0 0;\ | |
color: #fff;\ | |
padding: 7px;\ | |
}\ | |
#content form#prefs fieldset {\ | |
padding: 0;\ | |
padding-top: 0.7em;\ | |
margin: 0;\ | |
border: none;\ | |
}\ | |
#content table.listing {\ | |
margin: 7px;\ | |
width: 98%;\ | |
}\ | |
#content table.listing tr:hover {\ | |
background-color: #eee;\ | |
}\ | |
#content table.listing tr.color1-odd, #content table.listing tr.color1-even { \ | |
background-color: #EE8888;\ | |
}\ | |
#content table.listing tr.color2-odd, #content table.listing tr.color2-even { \ | |
background-color: #FFFFBB;\ | |
}\ | |
#content table.listing td > a, #content table.listing th a {\ | |
// descendent selector means source browser still works \ | |
color: #3388BB;\ | |
text-decoration: none;\ | |
font-weight: bold;\ | |
display: block;\ | |
}\ | |
#content table.listing th a {\ | |
text-decoration: underline;\ | |
}\ | |
#content table.listing td a:hover {\ | |
color: #333;\ | |
}\ | |
#content .buttons {\ | |
background: #5A9ECF none repeat scroll 0 0;\ | |
padding: 7px;\ | |
}\ | |
#content form#prefs .buttons {\ | |
padding-left: 0px;\ | |
}\ | |
#content .buttons form, #content .buttons form div {\ | |
display: inline;\ | |
}\ | |
#content #newticket label[for=type], #content #newticket #type {\ | |
display: none;\ | |
}\ | |
#content #newticket textarea#description {\ | |
width: 500px;\ | |
}\ | |
#ticket {\ | |
padding: 7px;\ | |
background: #F7F7F7 none repeat scroll 0 0;\ | |
color: #333333;\ | |
border-bottom: 1px solid #DDDDDD;\ | |
}\ | |
#ticket table.properties {\ | |
border-bottom: 1px dashed #DDDDDD;\ | |
}\ | |
#ticket .date{\ | |
float: right;\ | |
}\ | |
#ticket .date p {\ | |
display: inline;\ | |
margin: 0;\ | |
}\ | |
#ticket h2 {\ | |
margin-top: 0;\ | |
margin-bottom: 5px;\ | |
}\ | |
#ticket .description h3 {\ | |
display: none;\ | |
}\ | |
#ticket .description h4, #preview h4 {\ | |
font-weight: bold;\ | |
}\ | |
#ticket h2.summary {\ | |
color:#555555;\ | |
text-decoration: none;\ | |
font-size: 1.6em;\ | |
font-weight: bold;\ | |
}\ | |
#altlinks {\ | |
background-color: #CCCCCC;\ | |
font-size:92%;\ | |
text-align:center;\ | |
margin: 8px 18px;\ | |
-moz-border-radius: 4px;\ | |
}\ | |
#altlinks h3 {\ | |
margin-bottom: 2px;\ | |
color:#555555;\ | |
}\ | |
#altlinks ul li {\ | |
display: inline;\ | |
list-style: none;\ | |
margin-right: 5px;\ | |
}\ | |
#altlinks a {\ | |
color:#555555;\ | |
text-decoration: none;\ | |
}\ | |
#altlinks a:hover {\ | |
text-decoration: underline;\ | |
}\ | |
#changelog .change {\ | |
border-bottom: 1px solid #eee;\ | |
padding: 10px 0 0 10px;\ | |
}\ | |
#changelog .change h3 {\ | |
font-size: 1.2em;\ | |
font-weight: bold;\ | |
}\ | |
#changelog .change ul {\ | |
font-size: 0.8em;\ | |
}\ | |
#changelog .change .comment, #changelog .change .changes, #changelog .change h3 {\ | |
margin-left: 65px;\ | |
list-style: none;\ | |
}\ | |
#changelog .change .comment {\ | |
font-size: 120%;\ | |
}\ | |
#searchable > form > h3 {\ | |
display: none;\ | |
}\ | |
fieldset {\ | |
margin: 1.5em;\ | |
}\ | |
fieldset.iefix {\ | |
border: none;\ | |
}\ | |
div.wiki-toc {\ | |
float: left;\ | |
}\ | |
div.wikipage {\ | |
padding: 1.5em;\ | |
}\ | |
div.wikipage h1 {\ | |
/* I don't like using negative margins but this is the easiest route here I think */\ | |
margin: -1.1em;\ | |
}\ | |
div.timeline dl{\ | |
padding-left: 1.5em;\ | |
}\ | |
div.timeline dt.changeset, div.timeline dt.changeset a {\ | |
padding-top: 0px;\ | |
text-decoration: none;\ | |
display:block;\ | |
}\ | |
div.timeline dd {\ | |
padding-bottom: 15px;\ | |
}\ | |
div.timeline dt.changeset a {\ | |
background-repeat: no-repeat;\ | |
background-position: 0 4px;\ | |
padding-top: 0;\ | |
background-image: url("+tracbase+"chrome/common/changeset.png);\ | |
background-repeat: no-repeat;\ | |
}\ | |
div.timeline dt.closedticket a {\ | |
background-repeat: no-repeat;\ | |
background-position: 0 4px;\ | |
padding-top: 0;\ | |
background-image: url("+tracbase+"chrome/common/closedticket.png);\ | |
background-repeat: no-repeat;\ | |
}\ | |
div.timeline dt.newticket a {\ | |
background-repeat: no-repeat;\ | |
background-position: 0 4px;\ | |
padding-top: 0;\ | |
background-image: url("+tracbase+"chrome/common/newticket.png);\ | |
background-repeat: no-repeat;\ | |
}\ | |
div.timeline dt a {\ | |
padding:0 4px 2px 1.4em;\ | |
text-decoration: none;\ | |
}\ | |
a.closed {\ | |
text-decoration: line-through;\ | |
}\ | |
dt em {\ | |
border-bottom:1px dotted #BBBBBB;\ | |
font-style:normal;\ | |
}\ | |
span.time {\ | |
color: #555555;\ | |
font-weight: normal;\ | |
}\ | |
div.changeset > form > div div.field {\ | |
display: inline;\ | |
padding-left: 1em;\ | |
}\ | |
div.changeset > dl#overview {\ | |
margin: 0;\ | |
}\ | |
div.report form div.field, div.ticket form div.field{\ | |
padding-left: 1.5em;\ | |
}\ | |
div#help {\ | |
color: #555;\ | |
text-align: center;\ | |
}\ | |
table.progress td.closed {\ | |
background:#BAE0BA none repeat scroll 0 0;\ | |
}\ | |
table.progress td.open {\ | |
background:red none repeat scroll 0 0;\ | |
padding: 0;\ | |
}\ | |
div.roadmap ul.milestones {\ | |
list-style: none;\ | |
}\ | |
div#content.roadmap ul.milestones h2 {\ | |
margin-left: 0;\ | |
}\ | |
div#content table.progress {\ | |
height: 30px;\ | |
border: 1px solid #d5d5d5;\ | |
width: 60%;\ | |
margin-right: 5px;\ | |
margin-bottom: 0;\ | |
float: left;\ | |
}\ | |
div#content p.percent {\ | |
padding: 5px;\ | |
font-weight: bold;\ | |
}\ | |
div.roadmap dl, div.milestone dl {\ | |
clear: both;\ | |
margin-bottom: 0;\ | |
}\ | |
div.roadmap dt, div.roadmap dd, div.milestone dt, div.milestone dd {\ | |
display: inline;\ | |
font-style: italic;\ | |
margin-right: 5px;\ | |
}\ | |
div.roadmap p, div.milestone p {\ | |
margin: 0 0 0.5em;\ | |
}\ | |
div.milestone div.info{\ | |
margin: 0.5em 1.5em 1.5em;\ | |
}\ | |
div.milestone form#stats{\ | |
\ | |
}\ | |
div.milestone div.description{\ | |
margin: 0.5em 1.5em 1.5em;\ | |
font-size: 1.2em;\ | |
font-weight: bold;\ | |
}\ | |
div.query fieldset {\ | |
padding: 0 0 0 7px;\ | |
margin: 0 0 0 7px;\ | |
width: 60%;\ | |
}\ | |
div.query .option {\ | |
padding: 0 0 0 7px;\ | |
margin-bottom: 0;\ | |
}\ | |
table#info td.message p {\ | |
margin-bottom: 0;\ | |
}\ | |
table#info , table#info ul.props {\ | |
margin-bottom: 0;\ | |
}\ | |
#jumprev {\ | |
float: right;\ | |
}"); | |
function autoUpdateFromUserscriptsDotOrg(SCRIPT) { | |
// Update code from Junk Blocker: http://loonyone.livejournal.com/ | |
// usage example | |
// autoUpdateFromUserscriptsDotOrg({ | |
// name: 'RSS+Atom Feed Subscribe Button Generator', | |
// url: 'http://userscripts.org/scripts/source/688.user.js', | |
// version: "1.2", | |
// }); | |
try { | |
if (!GM_getValue) return; // Older version of Greasemonkey. Can't run. | |
// avoid a flood of dialogs e.g. when opening a browser with multiple tabs set to homepage | |
// and a script with * includes or opening a tabgrop | |
var DoS_PREVENTION_TIME = 2 * 60 * 1000; | |
var isSomeoneChecking = GM_getValue('CHECKING', null); | |
var now = new Date().getTime(); | |
GM_setValue('CHECKING', now.toString()); | |
if (isSomeoneChecking && (now - isSomeoneChecking) < DoS_PREVENTION_TIME) return; | |
// check daily | |
var ONE_DAY = 24 * 60 * 60 * 1000; | |
var ONE_WEEK = 7 * ONE_DAY; | |
var TWO_WEEKS = 2 * ONE_WEEK; | |
var lastChecked = GM_getValue('LAST_CHECKED', null); | |
if (lastChecked && (now - lastChecked) < TWO_WEEKS) return; | |
GM_xmlhttpRequest({ | |
method: 'GET', | |
url: SCRIPT.url + '?source', // don't increase the 'installed' count just for update checks | |
onload: function(result) { | |
if (!result.responseText.match(/@version\s+([\d.]+)/)) return; // did not find a suitable version header | |
var theOtherVersion = parseFloat(RegExp.$1); | |
if (theOtherVersion <= parseFloat(SCRIPT.version)) return; // no updates or older version on userscripts.orge site | |
if (window.confirm('A new version ' + theOtherVersion + ' of greasemonkey script "' + SCRIPT.name + '" is available.\nYour installed version is ' + SCRIPT.version + ' .\n\nUpdate now?\n')) { | |
GM_openInTab(SCRIPT.url); // better than location.replace as doing so might lose unsaved data | |
} | |
} | |
}); | |
GM_setValue('LAST_CHECKED', now.toString()); | |
} catch (ex) { | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment