Hack - hamrocsit.com

4/4/2023, 4:33:28 PM

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

// ==UserScript==
// @name        Hack - hamrocsit.com
// @namespace   Violentmonkey Scripts
// @version     0.3
// @grant       none
// @license     GNU GPLv3
// @author      imxitiz
// @match       https://hamrocsit.com/*
// @description 4/4/2023, 4:33:28 PM
// ==/UserScript==

try {
  // Check if tucsitnotes is defined before accessing its properties
  if (typeof tucsitnotes !== "undefined") {
    tucsitnotes["hassubscription"] = "1";
    tucsitnotes["is_user_login"] = "1";
  }

  // Check if toggleTheme function exists before calling it
  if (typeof toggleTheme === "function") {
    toggleTheme(1);
  }
} catch (e) {
  console.error("ERROR:::::", e);
}

// Check if .modal-dialog element exists before manipulating its style
var modalDialog = document.querySelector(".modal-dialog");
if (modalDialog) {
  modalDialog.style.cssText = "max-width:none; margin:20px";
}

// Check if .style-switcher element exists before manipulating its style
var styleSwitcher = document.querySelector(".style-switcher");
if (styleSwitcher) {
  styleSwitcher.style.display = "none";
}

// Check if .modal-dialog-scrollable element exists before manipulating its style
var modalDialogScrollable = document.querySelector(".modal-dialog-scrollable");
if (modalDialogScrollable) {
  modalDialogScrollable.style.height = "none";
}

// Check if any .course-single-tab .nav .nav-link elements exist before iterating and changing color
var navLinks = document.querySelectorAll(".course-single-tab .nav .nav-link");
if (navLinks.length > 0) {
  navLinks.forEach((link) => (link.style.color = "#00af92"));
}

// Find and remove the element with class ".footer" within the "footer" element
var footerElement = document.querySelector("footer");
if (footerElement) {
  footerElement.remove();
}

// Create a style element
var styleElement = document.createElement("style");
// Set the CSS rules for hiding .modal-footer
styleElement.textContent = ".modal-footer { display: none !important; }";
// Append the style element to the document head
document.head.appendChild(styleElement);

// @media (min-width:576px) {

// .modal-dialog {
//  /*! max-width:var(--bs-modal-width); */
//  /*! margin-right:auto; */
//  /*! margin-left:auto */
// }
// }