Last active
June 12, 2016 00:30
-
-
Save Tatsh/59fcd3490de2042285a6ba295f876708 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 Coveralls no-all-caps | |
// @namespace http://tat.sh/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://coveralls.io/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// From https://davidwalsh.name/add-rules-stylesheets | |
// Create the <style> tag | |
var style = document.createElement("style"); | |
// Add a media (and/or media query) here if you'd like! | |
// style.setAttribute("media", "screen") | |
// style.setAttribute("media", "only screen and (max-width : 1024px)") | |
// WebKit hack :( | |
style.appendChild(document.createTextNode("")); | |
// Add the <style> element to the page | |
document.head.appendChild(style); | |
style.sheet.insertRule('* { text-transform: none !important; }', 0); | |
Array.from(document.querySelectorAll('a[href="/careers"]')).forEach(function (el, k) { | |
el.innerHTML = el.innerHTML.replace('CAREERS', 'Careers'); | |
}); | |
Array.from(document.querySelectorAll('footer a')).forEach(function (el, k) { | |
if (el.innerText.toUpperCase() !== el.innerText) { | |
return; | |
} | |
el.innerText = el.innerText[0] + el.innerText.toLowerCase().substring(1); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment