Tag Archives: Tampermonkey

Fresh Humbug

Every programmer who took a formal web development course has had to write Javascript to make it look like it was snowing on their web page at some point… Apparently someone at Freshservice thought this was so cool that everyone who uses their service is subjected to the buggy white mess every holiday season.

Here’s a Greasemonkey/Tampermonkey script that would make The Grinch proud:

// ==UserScript==
// @name         Fresh Humbug
// @namespace    https://triggerhappy.me/2020/01/fresh-humbug/
// @downloadURL  https://triggerhappy.me/downloads/freshhumbug/freshhumbug.user.js
// @version      0.3
// @description  Get rid of the buggy Christmas theme that Freshservice forces on everyone
// @author       Eric Murphy
// @match        https://yourfreshserviceurl.example.com/*
// @grant        GM_addStyle
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js

// ==/UserScript==

(function() {
    'use strict';
    $( document ).ready(function() {
        $(".snow_container").hide()
        $(".header").removeClass("christmas_theme_applied");
    });
})();

I probably could have done it without JQuery, but I only dabble in web programming these days, so that’s what I’m most familiar with.

Anyway, you’re welcome. Download it here!