Skip to content

Instantly share code, notes, and snippets.

@wilcooo
wilcooo / TagPro_Chat_Scroller.user.js
Last active December 12, 2017 14:36 — forked from nabbynz/TagPro_Chat_Scroller.user.js
TagPro Chat Scroller + Time fades after 20 seconds + 2 bugfixes
// ==UserScript==
// @name TagPro Chat Scroller
// @description Changes the default chat into a scrollable, whole-game chat. Optionally shows last-game chat between games.
// @version 0.6.3.2(Ko)
// - v0.6.3.Ko: Add a fadeTime option, to fade the time after 20 secs.
// I've labeled all changes with Ko: for reference
// - v0.6.3: Fix the 'serverHost' bug.
// - v0.6.2: Added 'bwep' sound on all chat messages option. Fixed a teamcount bug.
// - v0.6.0: Added caps timeline.
// - Made compatible with new TagPro site design.
@wilcooo
wilcooo / howler.js
Created May 22, 2017 15:25
This is a backup, not currently pointed to
!function(){var e={},t=null,n=!0,r=!1;try{"undefined"!=typeof AudioContext?t=new AudioContext:"undefined"!=typeof webkitAudioContext?t=new webkitAudioContext:n=!1}catch(i){n=!1}if(!n)if("undefined"!=typeof Audio)try{new Audio}catch(i){r=!0}else r=!0;if(n){var s=void 0===t.createGain?t.createGainNode():t.createGain();s.gain.value=1,s.connect(t.destination)}var o=function(e){this._volume=1,this._muted=!1,this.usingWebAudio=n,this.ctx=t,this.noAudio=r,this._howls=[],this._codecs=e,this.iOSAutoEnable=!0};o.prototype={volume:function(e){var t=this;if(e=parseFloat(e),e>=0&&1>=e){t._volume=e,n&&(s.gain.value=e);for(var r in t._howls)if(t._howls.hasOwnProperty(r)&&t._howls[r]._webAudio===!1)for(var i=0;i<t._howls[r]._audioNode.length;i++)t._howls[r]._audioNode[i].volume=t._howls[r]._volume*t._volume;return t}return n?s.gain.value:t._volume},mute:function(){return this._setMuted(!0),this},unmute:function(){return this._setMuted(!1),this},_setMuted:function(e){var t=this;t._muted=e,n&&(s.gain.value=e?0:t._volume);for(v
@wilcooo
wilcooo / TagproHonk.user.js
Last active October 7, 2017 16:00 — forked from ballzilla/TagproHonk.user.js
Press space to honk.
// ==UserScript==
// @name TagPro Honk
// @description Press space to honk.
// @version 0.3.5
// @grant none
// @require https://gist.githubusercontent.com/ballzilla/dbbc9d9a91774f66698a/raw/howler.js
// @downloadURL https://github.com/wilcooo/TagPro-Honk/raw/master/tph.user.js
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*