View onecreativetampermonkey.js
// ==UserScript==
// @name One Creative
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Intelligently auto-shows/hides search box and filters
// @author Andrew Theroux
// @match http://onecreative.aol.com/
// @grant none
// ==/UserScript==
/* jshint -W097 */
View searchfilterlock.css
body.ads .GETVLJGBCOB, body.ads .GETVLJGBGOB.GETVLJGBFP.GETVLJGBDOB, body.ads .GETVLJGBDOB {
display: block !important;
}
body.templates .GETVLJGBCOB, body.templates .GETVLJGBGOB.GETVLJGBFP.GETVLJGBDOB, body.templates .GETVLJGBDOB {
display: block !important;
}
body.campaigns .GETVLJGBL3B {
display: block !important;
View lockedPanel.css
.GETVLJGBHKB > tbody > tr > td:first-child {
transform: translateX(-100px);
}
.GETVLJGBCQ {
width: 140px;
}
.GETVLJGBBC {
width: auto;
}
.GETVLJGBBC div.buttonText {
View namespace.js
var arcturus = {
//Private Properties
var prop = true;
//Public Property
arcturus.property = "some string";
//Public Method
arcturus.pubfunc = function() {
View Acsii emojis
¯\_(ツ)_/¯
ಠ_ಠ
{◕ ◡ ◕}
(•_•)
( •_•)>⌐■-■
(⌐■_■)
View Scroll Fade JS
$(window).load(function() {
var $fadedElems = $('body').find('.faded');
$fadedElems.removeClass('faded');
});
$(function() {
var $container = $('.img-container'),
$childElement = $('.img-container img'),
imgArray = [],
currentImg = 0;
View Boot GetJS
Two ways of doing this.
OPTION A *** preferred
In module, have this:
<script type="text/javascript">
Boot.getJS({
src: 'http://se.loc:8888/js/somejsfile.js',
defer: 'ready'
});
View .gitignore
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
*~
# OS or Editor folders
.DS_Store
.cache
View throttle.js
var scrollTimeout;
var throttle = 50;
var scrollMessage = function (message) {
console.log(message);
};
$(window).on('scroll', function () {
if (!scrollTimeout) {
scrollTimeout = setTimeout(function () {