// ==UserScript== // @name DEV git.syndamia.com stylesheet // @namespace http://tampermonkey.net/ // @version 2026-03-17 // @description try to take over the world! // @author You // @match https://git.syndamia.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=qwant.com // @grant none // ==/UserScript== var style = document.createElement('style') style.textContent = ` /* --white: #fafafa --gray-1: #1f1f1f --gray-2: #262626 --gray-3: #303030 --gray-4: #404040 --gray-5: #4f4f4f --yellow: #f5e16c --blue-1: #428fdc --blue-2: #63a6e9 --red-1: #ec5941 --red-2: #f57f6c --purple: #453894 --indigo: #4a4a99 --green-1: #108548 --green-2: #2da160 --radius-small: 3px --radius-medium: 4px --radius-large: 6px */ body { padding: 0em; margin: 0em; } div#cgit { padding: 0em; margin: 0em; font-family: sans-serif; font-size: 11pt; color: /*--white*/#fafafa; background-color: /*--gray-1*/#1f1f1f; position: relative; min-height: 100vh; } div#cgit a { color: /*--white*/#fafafa; text-decoration: none; } div#cgit a:hover { text-decoration: underline; } div#cgit a[href$=".zip"], div#cgit a[href$=".tar"], div#cgit a[href$=".tar.gz"] { color: /*--yellow*/#f5e16c; } div#cgit table { border-collapse: collapse; } div#cgit table#header { width: 100%; } div#cgit table#header tr:first-child td { padding-top: 0.5em; } div#cgit table#header tr:last-child td { padding-bottom: 2em; } div#cgit table#header td.logo { width: 96px; vertical-align: top; } div#cgit table#header td.main { font-size: 250%; padding-left: 10px; white-space: nowrap; background-color: /*--gray-2*/#262626; color: /*--red-2*/#f57f6c; } div#cgit table#header td.main a { color: inherit; } div#cgit table#header td.main a[href="/"] { color: /*--white*/#fafafa; } div#cgit table#header td.form { text-align: right; vertical-align: bottom; padding-right: 1em; padding-bottom: 2px; white-space: nowrap; } div#cgit table#header td.form form, div#cgit table#header td.form input, div#cgit table#header td.form select { font-size: 90%; } div#cgit table#header td.sub { color: #777; border-top: solid 1px #ccc; padding-left: 10px; } div#cgit table.tabs { border-bottom: solid 3px /*--indigo*/#4a4a99; border-collapse: collapse; margin-top: 2em; margin-bottom: 0px; width: 100%; } div#cgit table.tabs td { padding: 0px 1em; vertical-align: bottom; background-color: /*--gray-2*/#262626; } div#cgit table.tabs td a { padding: 2px 0.75em; font-size: 110%; } div#cgit table.tabs td a.active { background-color: /*--indigo*/#4a4a99; border-top-left-radius: /*--radius-medium*/4px; border-top-right-radius: /*--radius-medium*/4px; } div#cgit table.tabs a[href^="http://"]:after, div#cgit table.tabs a[href^="https://"]:after { content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgAhcJDQY+gm2TAAAAHWlUWHRDb21tZW50AAAAAABDcmVhdGVkIHdpdGggR0lNUGQuZQcAAABbSURBVAhbY2BABs4MU4CwhYHBh2Erww4wrGFQZHjI8B8IgUIscJWyDHcggltQhI4zGDCcRwhChPggHIggP1QoAVmQkSETrGoHsiAEsACtBYN0oDAMbgU6EBcAAL2eHUt4XUU4AAAAAElFTkSuQmCC); opacity: 0.5; margin: 0 0 0 5px; } div#cgit table.tabs td.form { text-align: right; } div#cgit table.tabs td.form form { padding-bottom: 2px; font-size: 90%; white-space: nowrap; } div#cgit table.tabs td.form input, div#cgit table.tabs td.form select { font-size: 90%; } div#cgit input, div#cgit select { color: /*--white*/#fafafa; background-color: /*--blue-1*/#428fdc; box-shadow: inset 0 0 0 1px /*--blue-2*/#63a6e9; border: none; border-radius: /*--radius-small*/3px; } div#cgit div.path { margin: 0px; padding: 5px 2em; color: /*--white*/#fefefe; background-color: /*--purple*/#453894; } div#cgit div.content { margin: 0px; padding: 2em 2em 4em 2em; min-height: calc(100vh - 17em); overflow: scroll; } div#cgit table.list { width: 100%; border: none; border-collapse: separate; border-spacing: 0em; } div#cgit table.list tr { background-color: /*--gray-1*/#1f1f1f; } div#cgit table.list tr.logheader { background: #eee; } div#cgit table.list tr.nohover > td[colspan="5"] { border: none; background-color: inherit; } div#cgit table.list th { font-weight: bold; font-size: 1.1em; padding: 0.5rem; margin: 1em 0; vertical-align: baseline; background-color: /*--gray-5*/#4f4f4f; border: 1px solid /*--gray-4*/#404040; } div#cgit table.list th:not(:first-child):not(last-child) { border-left: none; border-right: none; } div#cgit table.list th:first-child { border-right: none; border-top-left-radius: /*--radius-large*/6px; } div#cgit table.list th:last-child { border-left: none; border-top-right-radius: /*--radius-large*/6px; } div#cgit table.list td { border: none; border-bottom: 1px solid /*--gray-4*/#404040; padding: 0.25em 0.5em; background-color: /*--gray-3*/#303030; } div#cgit table.list td:first-child { border-left: 1px solid /*--gray-4*/#404040; } div#cgit table.list td:last-child { border-right: 1px solid /*--gray-4*/#404040; } div#cgit table.list td.commitgraph { font-family: monospace; white-space: pre; } div#cgit table.list td.commitgraph .column1 { color: /*--red-1*/#ec5941; } div#cgit table.list td.commitgraph .column2 { color: /*--green-2*/#2da160; } div#cgit table.list td.commitgraph .column3 { color: /*--green-1*/#108548; } div#cgit table.list td.commitgraph .column4 { color: /*--yellow*/#f5e16c; } div#cgit table.list td.commitgraph .column5 { color: /*--blue-2*/#63a6e9; } div#cgit table.list td.commitgraph .column6 { color: /*--white*/#fafafa; } div#cgit table.list td.logsubject { font-family: monospace; font-weight: bold; } div#cgit table.list td.logmsg { font-family: monospace; white-space: pre; padding: 0 0.5em; } div#cgit table.list td a.ls-dir { font-weight: bold; } div#cgit img { border: none; } div#cgit input#switch-btn { margin: 2px 0px 0px 0px; } div#cgit td#sidebar input.txt { width: 100%; margin: 2px 0px 0px 0px; } div#cgit table#grid { margin: 0px; } div#cgit td#content { vertical-align: top; padding: 1em 2em 1em 1em; border: none; } div#cgit div#summary { vertical-align: top; margin-bottom: 1em; } div#cgit table#downloads { float: right; border-collapse: collapse; border: solid 1px #777; margin-left: 0.5em; margin-bottom: 0.5em; } div#cgit table#downloads th { background-color: #ccc; } div#cgit div#blob { border: solid 1px black; } div#cgit div.error { color: red; font-weight: bold; margin: 1em 2em; } div#cgit a.ls-blob, div#cgit a.ls-dir, div#cgit .ls-mod { font-family: monospace; } div#cgit td.ls-size { text-align: right; font-family: monospace; width: 10em; } div#cgit td.ls-mode { font-family: monospace; width: 10em; } div#cgit table.blob { margin-top: 0.5em; border-top: solid 1px black; } div#cgit table.blob td.hashes, div#cgit table.blob td.lines { margin: 0; padding: 0 0 0 0.5em; vertical-align: top; color: black; } div#cgit table.blob td.linenumbers { margin: 0; padding: 0 0.5em 0 0.5em; vertical-align: top; text-align: right; border-right: 1px solid gray; } div#cgit table.blob pre { padding: 0; margin: 0; } div#cgit table.blob td.linenumbers a, div#cgit table.ssdiff td.lineno a { color: gray; text-align: right; text-decoration: none; } div#cgit table.blob td.linenumbers a:hover, div#cgit table.ssdiff td.lineno a:hover { color: black; } div#cgit table.blob td.linenumbers a:target:before { color: red; content: "\\2BA9"; } div#cgit table.blame td.hashes, div#cgit table.blame td.lines, div#cgit table.blame td.linenumbers { padding: 0; } div#cgit table.blame td.hashes div.alt, div#cgit table.blame td.lines div.alt { padding: 0 0.5em 0 0.5em; } div#cgit table.blame td.linenumbers div.alt { padding: 0 0.5em 0 0; } div#cgit table.blame td.lines > div { position: relative; } div#cgit table.blame td.lines > div > pre { padding: 0 0 0 0.5em; position: absolute; top: 0; } div#cgit table.blame .oid { font-size: 100%; } div#cgit table.bin-blob { margin-top: 0.5em; border: solid 1px black; } div#cgit table.bin-blob th { font-family: monospace; white-space: pre; border: solid 1px #777; padding: 0.5em 1em; } div#cgit table.bin-blob td { font-family: monospace; white-space: pre; border-left: solid 1px #777; padding: 0em 1em; } div#cgit table.nowrap td { white-space: nowrap; } div#cgit table.commit-info { border-collapse: collapse; margin-top: 1.5em; } div#cgit div.cgit-panel { float: right; margin-top: 1.5em; background-color: /*--gray-4*/#404040; } div#cgit div.cgit-panel table { border-collapse: collapse; border: solid 1px #aaa; background-color: #eee; } div#cgit div.cgit-panel th { text-align: center; } div#cgit div.cgit-panel td { padding: 0.25em 0.5em; background-color: /*--gray-4*/#404040; } div#cgit div.cgit-panel td.label { padding-right: 0.5em; } div#cgit div.cgit-panel td.ctrl { padding-left: 0.5em; } div#cgit table.commit-info th { text-align: left; font-weight: normal; padding: 0.1em 1em 0.1em 0.1em; vertical-align: top; background-color: /*--gray-4*/#404040; } div#cgit table.commit-info td { font-weight: normal; padding: 0.1em 1em 0.1em 0.1em; background-color: /*--gray-4*/#404040; } div#cgit table.commit-info tr:first-child td, div#cgit table.commit-info tr:first-child th { padding-top: 2em; } div#cgit table.commit-info tr:last-child td, div#cgit table.commit-info tr:last-child th { padding-bottom: 2em; } div#cgit table.commit-info td:first-child, div#cgit table.commit-info th:first-child { padding-left: 1em; } div#cgit table.commit-info td:last-child, div#cgit table.commit-info th:last-child { padding-right: 1em; } div#cgit table.commit-info tr:first-child td:first-child, div#cgit table.commit-info tr:first-child th:first-child { border-top-left-radius: /*--radius-large*/6px; } div#cgit table.commit-info tr:first-child td:last-child, div#cgit table.commit-info tr:first-child th:last-child { border-top-right-radius: /*--radius-large*/6px; } div#cgit div.commit-subject { font-weight: bold; font-size: 125%; margin: 1.5em 0em 0.5em 0em; padding: 0em; padding: 1.5em 1em 0em 1em; background-color: /*--gray-4*/#404040; border-top-right-radius: /*--radius-large*/6px; } div#cgit div.commit-msg { white-space: pre; font-family: monospace; background-color: /*--gray-4*/#404040; padding: 1.5em 1em 1em 1.25em; margin-top: -1em; } div#cgit div.notes-header { font-weight: bold; padding-top: 1.5em; } div#cgit div.notes { white-space: pre; font-family: monospace; border: solid 1px #ee9; background-color: #ffd; padding: 0.3em 2em 0.3em 1em; float: left; } div#cgit div.notes-footer { clear: left; } div#cgit div.diffstat-header { font-weight: bold; padding: 0em 1.25em; background-color: /*--gray-4*/#404040; } div#cgit table.diffstat { border-collapse: collapse; border: solid 1px #aaa; background-color: #eee; } div#cgit table.diffstat th { font-weight: normal; text-align: left; text-decoration: underline; padding: 0.1em 1em 0.1em 0.1em; font-size: 100%; } div#cgit table.diffstat td { padding: 0.2em 0.2em 0.1em 0.1em; font-size: 100%; border: none; background-color: /*--gray-4*/#404040; } div#cgit table.diffstat > tbody > tr > td { padding: 0em 1.25em; } div#cgit table.diffstat td.mode { white-space: nowrap; } div#cgit table.diffstat td span.modechange { padding-left: 1em; color: red; } div#cgit table.diffstat td.add a { color: /*--green-2*/#2da160; } div#cgit table.diffstat td.del a { color: red; } div#cgit table.diffstat td.upd a, div#cgit table.diffstat td.mov a { color: /*--yellow*/#f5e16c; } div#cgit table.diffstat td.graph { width: 500px; vertical-align: middle; } div#cgit table.diffstat td.graph table { border: none; } div#cgit table.diffstat td.graph td { padding: 0px; border: 0px; height: 7pt; } div#cgit table.diffstat td.graph td.add { background-color: #5c5; } div#cgit table.diffstat td.graph td.rem { background-color: #c55; } div#cgit div.diffstat-summary { color: #888; padding: 0em 1.25em; background-color: /*--gray-4*/#404040; } div#cgit table.diff { width: 100%; } div#cgit table.diff td { font-family: monospace; white-space: wrap; background-color: /*--gray-4*/#404040; padding: 0em 1.25em; } div#cgit table.diff tr:last-child td { padding-bottom: 1em; } div#cgit table.diff td div.head { font-weight: bold; margin-top: 1em; } div#cgit table.diff td div.hunk { color: /*--blue-1*/#428fdc; } div#cgit table.diff td div.add { color: /*--green-2*/#2da160; } div#cgit table.diff td div.del { color: red; } div#cgit .oid { font-family: monospace; font-size: 90%; } div#cgit .left { text-align: left; } div#cgit .right { text-align: right; } div#cgit table.list td.reposection { font-style: italic; color: /*--blue-2*/#63a6e9; } div#cgit a.button { font-size: 80%; padding: 0em 0.5em; } div#cgit a.primary { font-size: 100%; } div#cgit a.secondary { font-size: 90%; } div#cgit td.toplevel-repo { } div#cgit table.list td.sublevel-repo { padding-left: 1.5em; } div#cgit ul.pager { list-style-type: none; text-align: center; margin: 1em 0em 0em 0em; padding: 0; } div#cgit ul.pager li { display: inline-block; margin: 0.25em 0.5em; } div#cgit ul.pager a { color: #777; } div#cgit ul.pager .current { font-weight: bold; } div#cgit span.age-mins { font-weight: bold; color: /*--green-2*/#2da160; } div#cgit span.age-hours { color: /*--green-2*/#2da160; } div#cgit span.age-days { color: /*--green-1*/#108548; } div#cgit span.age-weeks { color: #444; } div#cgit span.age-months { color: #888; } div#cgit span.age-years { color: #bbb; } div#cgit span.insertions { color: /*--green-2*/#2da160; } div#cgit span.deletions { color: /*--red-1*/#ec5941; } div#cgit div.footer { text-align: center; font-size: 80%; color: #ccc; background-color: /*--gray-2*/#262626; position: absolute; bottom: 0; width: 100%; border-top: solid 3px #ccc; padding: 0.5em 0em; } div#cgit div.footer a { color: #ccc; text-decoration: none; } div#cgit div.footer a:hover { text-decoration: underline; } div#cgit a.branch-deco { color: #000; margin: 0px 0.5em; padding: 0px 0.25em; background-color: #88ff88; border: solid 1px #007700; border-radius: 2px; } div#cgit a.tag-deco { color: #000; margin: 0px 0.5em; padding: 0px 0.25em; background-color: #ffff88; border: solid 1px #777700; border-radius: 2px; } div#cgit a.tag-annotated-deco { color: #000; margin: 0px 0.5em; padding: 0px 0.25em; background-color: #ffcc88; border: solid 1px #777700; border-radius: 2px; } div#cgit a.remote-deco { color: #000; margin: 0px 0.5em; padding: 0px 0.25em; background-color: #ccccff; border: solid 1px #000077; border-radius: 2px; } div#cgit a.deco { color: #000; margin: 0px 0.5em; padding: 0px 0.25em; background-color: #ff8888; border: solid 1px #770000; border-radius: 2px; } div#cgit div.commit-subject a.branch-deco, div#cgit div.commit-subject a.tag-deco, div#cgit div.commit-subject a.tag-annotated-deco, div#cgit div.commit-subject a.remote-deco, div#cgit div.commit-subject a.deco { margin-left: 1em; font-size: 75%; } div#cgit table.stats { border: solid 1px black; border-collapse: collapse; } div#cgit table.stats th { text-align: left; padding: 1px 0.5em; background-color: #eee; border: solid 1px black; } div#cgit table.stats td { text-align: right; padding: 1px 0.5em; border: solid 1px black; } div#cgit table.stats td.total { font-weight: bold; text-align: left; } div#cgit table.stats td.sum { color: #c00; font-weight: bold; /* background-color: #eee; */ } div#cgit table.stats td.left { text-align: left; } div#cgit table.vgraph { border-collapse: separate; border: solid 1px black; height: 200px; } div#cgit table.vgraph th { background-color: #eee; font-weight: bold; border: solid 1px white; padding: 1px 0.5em; } div#cgit table.vgraph td { vertical-align: bottom; padding: 0px 10px; } div#cgit table.vgraph div.bar { background-color: #eee; } div#cgit table.hgraph { border: solid 1px black; width: 800px; } div#cgit table.hgraph th { background-color: #eee; font-weight: bold; border: solid 1px black; padding: 1px 0.5em; } div#cgit table.hgraph td { vertical-align: middle; padding: 2px 2px; } div#cgit table.hgraph div.bar { background-color: #eee; height: 1em; } div#cgit table.ssdiff { width: 100%; } div#cgit table.ssdiff td { font-size: 75%; font-family: monospace; white-space: pre; padding: 1px 4px 1px 4px; border-left: solid 1px #aaa; border-right: solid 1px #aaa; } div#cgit table.ssdiff td.add { color: black; background: #cfc; min-width: 50%; } div#cgit table.ssdiff td.add_dark { color: black; background: #aca; min-width: 50%; } div#cgit table.ssdiff span.add { background: #cfc; font-weight: bold; } div#cgit table.ssdiff td.del { color: black; background: #fcc; min-width: 50%; } div#cgit table.ssdiff td.del_dark { color: black; background: #caa; min-width: 50%; } div#cgit table.ssdiff span.del { background: #fcc; font-weight: bold; } div#cgit table.ssdiff td.changed { color: black; background: #ffc; min-width: 50%; } div#cgit table.ssdiff td.changed_dark { color: black; background: #cca; min-width: 50%; } div#cgit table.ssdiff td.lineno { color: black; background: #eee; text-align: right; width: 3em; min-width: 3em; } div#cgit table.ssdiff td.hunk { color: black; background: #ccf; border-top: solid 1px #aaa; border-bottom: solid 1px #aaa; } div#cgit table.ssdiff td.head { border-top: solid 1px #aaa; border-bottom: solid 1px #aaa; } div#cgit table.ssdiff td.head div.head { font-weight: bold; color: black; } div#cgit table.ssdiff td.foot { border-top: solid 1px #aaa; border-left: none; border-right: none; border-bottom: none; } div#cgit table.ssdiff td.space { border: none; } div#cgit table.ssdiff td.space div { min-height: 3em; } /* Style definition file generated by highlight 3.13, http://www.andre-simon.de/ */ body.hl { background-color:#e0eaee; } pre.hl { color:#000000; background-color:#e0eaee; font-size:10pt; font-family:'Courier New',monospace;} .hl.num { color:#b07e00; } .hl.esc { color:#ff00ff; } .hl.str { color:#bf0303; } .hl.pps { color:#818100; } .hl.slc { color:#838183; font-style:italic; } .hl.com { color:#838183; font-style:italic; } .hl.ppc { color:#008200; } .hl.opt { color:#000000; } .hl.ipl { color:#0057ae; } .hl.lin { color:#555555; } .hl.kwa { color:#000000; font-weight:bold; } .hl.kwb { color:#0057ae; } .hl.kwc { color:#000000; font-weight:bold; } .hl.kwd { color:#010181; } ` document.styleSheets[0].disabled = true document.head.appendChild(style) const list = document.getElementsByClassName('list')[0] const table = list.children[0] const rows = table.children if (list.summary === "tree listing") { /* Reorder directories before files */ var lastDir = 1 for (let i = 1; i < rows.length; ++i) { if (rows[i].children[0].innerText.startsWith('d')) { if (i > lastDir) { table.insertBefore(rows[i], rows[lastDir]) } ++lastDir } } /* Human size format */ for (const row of rows) { if (row.children[2].classList.contains('ls-size')) { let size = row.children[2].innerText if (size < 1024) { size += ' B' } else if (size < 1048576) { size = (size / 1024).toFixed(1) + ' KiB' } else if (size < 1073741824) { size = (size / 1048576).toFixed(1) + ' MiB' } else { size = (size / 1073741824).toFixed(1) + ' GiB' } row.children[2].innerText = size } } }