NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name NP-DG
// @version 0.1
// @match https://*.digigreet.com/v6/*
// @grant none
// @require https://code.jquery.com/jquery-3.5.1.min.js
// @copyright 2020, npadmin (https://openuserjs.org/users/npadmin)
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// Create our stylesheet
var style = document.createElement('style');
style.innerHTML = `
#ctl00_ctl00_MasterContent_Content_Home_WelcomeBox,
#ctl00_ctl00_MasterContent_Content_Home_FirstTimeContainer {
border-radius:1em;
}
/* #ctl00_ctl00_MasterContent_Content_Home_mainheadinglabel {
font-weight:400;
font-size:35px;
} */
a.goBack {
display:block;
background-color:#de761c !important;
padding:1em;
margin:0.5em;
border-radius:0.5em;
border:3px white solid;
}
a .goBack i
text-transform: capitalize !important;
}
`;
// Get the first script tag
var ref = document.querySelector('script');
// Insert our new styles before the first script tag
ref.parentNode.insertBefore(style, ref);
$('#ctl00_ctl00_MasterContent_Content_Home_WelcomeBox > div.md-form.namebox > label').text("Tap here to enter your name");
$('#ctl00_ctl00_MasterContent_Content_Home_WelcomeBox > div.md-form.namebox').focusin(function() {
$('#ctl00_ctl00_MasterContent_Content_Home_WelcomeBox > div.md-form.namebox > label').text("Enter your name");
});
$('#ctl00_ctl00_MasterContent_Content_Home_WelcomeBox > div.md-form.namebox').focusout(function() {
$('#ctl00_ctl00_MasterContent_Content_Home_WelcomeBox > div.md-form.namebox > label').text("Tap here to enter your name");
});
// Select and loop the container element of the elements you want to equalise
$('.homepage').each(function() {
// Cache the highest
var highestBox = 0;
// Select and loop the elements you want to equalise
$('.card', this).each(function() {
// If this box is higher than the cached highest then store it
if ($(this).height() > highestBox) {
highestBox = $(this).height();
}
});
// Set the height of all those children to whichever was highest
$('.card',this).height(highestBox);
});
})();