OnTake / HorribleSubs Timezone Changer

// ==UserScript==
// @name         HorribleSubs Timezone Changer
// @namespace    https://techadvancedcyborg.github.io/
// @version      0.15
// @description  Does what the name says.
// @author       You
// @match        https://horriblesubs.info/*
// @grant        none
// @license MIT
// @copyright 2020, OnTake (https://openuserjs.org/users/OnTake)
// ==/UserScript==

function ZeroPadNumber(nValue) {
    if (nValue < 10) {
        return ('0' + nValue.toString());
    } else if (nValue < 100) {
        return (nValue.toString());
    } else if (nValue < 1000) {
        return (nValue.toString());
    } else {
        return (nValue);
    }
}



(function() {
    'use strict';

    try {
        document.getElementsByClassName("homepage-well")[0].getElementsByTagName("iframe")[0].src = "https://freesecure.timeanddate.com/clock/i7fnsvxb/n195/th1/ta1";
    } catch (e) {}
    try {
        document.getElementById("post-63").getElementsByTagName("iframe")[0].src = "https://freesecure.timeanddate.com/clock/i7fnsvxb/n195/th1/ta1";
    } catch (e) {}

    var i;
    var now;
    try {
        for (i = 0; i < document.getElementsByClassName("schedule-time").length; i++) {
            now = new Date("2013-03-10T" + document.getElementsByClassName("schedule-time")[i].innerHTML + ":00Z");
            document.getElementsByClassName("schedule-time")[i].innerHTML = ZeroPadNumber(now.getHours() + 8) + ":" + ZeroPadNumber(now.getMinutes());
        }
    } catch (e) {}
    try {
        for (i = 0; i < document.getElementsByClassName("schedule-widget-time").length; i++) {
            now = new Date("2013-03-10T" + document.getElementsByClassName("schedule-widget-time")[i].innerHTML + ":00Z");
            document.getElementsByClassName("schedule-widget-time")[i].innerHTML = ZeroPadNumber(now.getHours() + 8) + ":" + ZeroPadNumber(now.getMinutes());
        }
    } catch (e) {}


})();