This file contains hidden or 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
/** | |
* You people annoy me with your constant cat pictures in HipChat. | |
* So this section hides them. | |
* Stylebot: https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha | |
*/ | |
.chatBlock .messageBlock .image { | |
display: none; | |
} | |
This file contains hidden or 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
/** | |
* This section fixes the height of the content editor in JIRA, so that, instead of having two scrollbars, the editor takes the full page and I can click Save at the bottom without having to scroll down. | |
* Stylebot persists these changes: https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha | |
*/ | |
.contenteditor #content { | |
height: calc(100% - 41px); | |
} | |
This file contains hidden or 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
/** | |
* This section makes it much easier to switch branches/forks when creating a pull request. | |
* Instead of hiding the dropdowns after each selection, they're left visible, ready to be changed at a moment's notice. | |
* I use StyleBot to persist these styles (https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en) | |
*/ | |
.range-editor .range .cross-repo-text { | |
display: none; | |
} | |
.range-editor .range .select-menu.fork-suggester { |
This file contains hidden or 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
javascript: (function() { | |
function getProperHref(href) { | |
if (!href.match(/^http/)) { | |
var path = (href.match(/^\//)) ? '/' : location.pathname; | |
href = 'http://' + location.hostname + path + href; | |
} | |
return href; | |
} | |
var links = document.querySelectorAll('link[rel="alternate"][type^="application/"][type$="+xml"'); | |
var feedlyURL = 'https://feedly.com/i/subscription/feed/'; |
This file contains hidden or 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
var rerouteRandomEvent = function () { | |
var pickRandomEvent = function () { | |
var events = [ | |
'click', | |
'keyup', | |
'mousedown' | |
]; | |
return events[Math.floor(Math.random()*events.length)]; | |
}; |
This file contains hidden or 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
(function() { | |
var r = ['utm_source', 'utm_campaign', 'utm_medium', 'utm_content', 'utm_hp_ref', 'wpisrc', 'xrs', 'fb_action_ids', 'fb_action_types', 'fb_source', 'action_object_map', 'mcid', 'rmid', 'rrid', 'CIMID'], | |
e = window.location.search.slice(1), | |
t = e.split('&'), | |
n = '?', | |
i = ''; | |
e: for (p in t) { | |
for (var s = 0; s < r.length; s++) { | |
if (t[p].indexOf(r[s] + '=') === 0) { | |
break e |
This file contains hidden or 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
$.stellar.positionProperty.stagger = { | |
setTop: function ($element, newTop, originalTop) { | |
var $elementCoords = $element.position(); | |
var stellarScrollRatio = parseFloat($element.data('stellar-ratio')); | |
var direction = 'top'; | |
var originalPosition = originalTop; | |
var currentPosition = $elementCoords.top; | |
var magnitude = newTop - originalTop; | |
if ($element.data('stellar-swap-horizontal-and-vertical') == true) { | |
if ($element.data('stellar-scroll-horizontal') == false) { |
This file contains hidden or 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
var autoRefreshNewTweets = function () { | |
var newTweetsBar = document.getElementsByClassName('new-tweets-bar'); | |
if ('undefined' !== typeof newTweetsBar[0]) { | |
newTweetsBar[0].click(); | |
} | |
setTimeout(autoRefreshNewTweets, 1000); | |
} | |
autoRefreshNewTweets(); | |
// Reload the entire page every hour, basically flushing the page so it doesn't become too "heavy" |
NewerOlder