Instantly share code, notes, and snippets.
Andrew Theroux theroux
- Washington, D.C.
theroux
/ onecreativetampermonkey.js
Last active
| // ==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 */ |
theroux
/ searchfilterlock.css
Last active
| 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; |
| .GETVLJGBHKB > tbody > tr > td:first-child { |
| transform: translateX(-100px); |
| } |
| .GETVLJGBCQ { |
| width: 140px; |
| } |
| .GETVLJGBBC { |
| width: auto; |
| } |
| .GETVLJGBBC div.buttonText { |
| var arcturus = { |
| //Private Properties |
| var prop = true; |
| //Public Property |
| arcturus.property = "some string"; |
| //Public Method |
| arcturus.pubfunc = function() { |
theroux
/ Acsii emojis
Last active
| Β―\_(γ)_/Β― |
| ΰ² _ΰ² |
| {β β‘ β} |
| (β’_β’) |
| ( β’_β’)>ββ -β |
| (ββ _β ) |
theroux
/ Scroll Fade JS
Created
| $(window).load(function() { |
| var $fadedElems = $('body').find('.faded'); |
| $fadedElems.removeClass('faded'); |
| }); |
| $(function() { |
| var $container = $('.img-container'), |
| $childElement = $('.img-container img'), |
| imgArray = [], |
| currentImg = 0; |
theroux
/ Boot GetJS
Last active
| 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' |
| }); |
| # Numerous always-ignore extensions |
| *.diff |
| *.err |
| *.orig |
| *.log |
| *~ |
| # OS or Editor folders |
| .DS_Store |
| .cache |
| var scrollTimeout; |
| var throttle = 50; |
| var scrollMessage = function (message) { |
| console.log(message); |
| }; |
| $(window).on('scroll', function () { |
| if (!scrollTimeout) { |
| scrollTimeout = setTimeout(function () { |
| (function ($) { |
| // Collection method. |
| $.fn.awesome = function () { |
| return this.each(function (i) { |
| // Do something awesome to each selected element. |
| $(this).html('awesome' + i); |
| }); |
| }; |
| }; |
