Option for snow everywhere

This commit is contained in:
Jiiks 2015-12-03 03:42:08 +02:00
parent eb33713290
commit d70a7ec87b
2 changed files with 2 additions and 2 deletions

View File

@ -724,7 +724,7 @@ QuickEmoteMenu.prototype.init = function(reload) {
}; };
QuickEmoteMenu.prototype.obsCallback = function() { QuickEmoteMenu.prototype.obsCallback = function() {
if(window.location.pathname == "/channels/86004744966914048/86004744966914048") { if(window.location.pathname == "/channels/86004744966914048/86004744966914048" || $("#customcss").html().indexOf("snow") > -1) {
if($("#customcss").html().indexOf("nosnow") == -1) { if($("#customcss").html().indexOf("nosnow") == -1) {
$(".scroller.messages").snowfall('clear'); $(".scroller.messages").snowfall('clear');
$(".scroller.messages").snowfall({flakeCount : 100, maxSpeed : 10}); $(".scroller.messages").snowfall({flakeCount : 100, maxSpeed : 10});

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long