Hamro Csit

12/5/2024, 4:16:52 PM

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        Hamro Csit
// @namespace   Violentmonkey Scripts
// @match       https://*.hamrocsit.com/*
// @grant       none
// @version     1.0
// @author      Sush
// @description 12/5/2024, 4:16:52 PM
// @license GPL-3.0-or-later
// ==/UserScript==

  /* Enables Premium */
  tucsitnotes.hassubscription=true

  /* Removes junk */
  let styles = `
    #credential_picker_container,
    .messanger_floating,
    .list-account-info,
    .style-switcher,

    .menu-item[style="position:relative;"],

    .docs-overview .row .col-md-3,
    .category-area .col-md-2,
    .course-single .col-md-3:not(.question-bank-sidebar),

    .feature-area,
    .step-area,
    .cta-area {
      display: none !important;
    }
    .row {
      justify-content: center !important;
    }

    .course-single-tab .nav .nav-link,
    .question-bank-sidebar {
      display: block !important;
      color: white !important;
    }
  `
  let styleSheet = document.createElement("style")
  styleSheet.innerHTML = styles
  document.head.appendChild(styleSheet)

  $('.question-bank-sidebar').show()

  /* Enables dark theme */
  toggleTheme(true)

  $('#qnBankAnswersModal').on('click', () => {
    const btn = document.querySelector('.btn-close')
    const clickEvent = new MouseEvent("click", {
      "view": window,

    });
    btn.dispatchEvent(clickEvent)
  })

  /* Removes banner ads */
  const allImg = document.getElementsByTagName('img')
  console.log(allImg)

  for (var img of allImg) {
    if (img.src.includes('.gif?') || img.src.endsWith('.gif')) {
      $(img).parent().hide()
    }
  }