Skip to content

Instantly share code, notes, and snippets.

@Tatsh
Last active June 12, 2016 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tatsh/59fcd3490de2042285a6ba295f876708 to your computer and use it in GitHub Desktop.
Save Tatsh/59fcd3490de2042285a6ba295f876708 to your computer and use it in GitHub Desktop.
// ==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