Increase Moodle login timeout warning.

Increase Moodle login timeout warning. Prevent logout

当前为 2023-02-14 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Increase Moodle login timeout warning.
// @name:zh-TW   Increase Moodle login timeout warning.
// @name:zh-HK   Increase Moodle login timeout warning.
// @name:zh-CN   Increase Moodle login timeout warning.
// @name:ja      Increase Moodle login timeout warning.
// @name:kr      Increase Moodle login timeout warning.
// @name:ar      Increase Moodle login timeout warning.
// @name:bg      Increase Moodle login timeout warning.
// @name:cs      Increase Moodle login timeout warning.
// @name:da      Increase Moodle login timeout warning.
// @name:de      Increase Moodle login timeout warning.
// @name:el      Increase Moodle login timeout warning.
// @name:eo      Increase Moodle login timeout warning.
// @name:es      Increase Moodle login timeout warning.
// @name:fi      Increase Moodle login timeout warning.
// @name:fr      Increase Moodle login timeout warning.
// @name:fr-CA   Increase Moodle login timeout warning.
// @name:he      Increase Moodle login timeout warning.
// @name:hu      Increase Moodle login timeout warning.
// @name:id      Increase Moodle login timeout warning.
// @name:it      Increase Moodle login timeout warning.
// @name:ko      Increase Moodle login timeout warning.
// @name:nb      Increase Moodle login timeout warning.
// @name:nl      Increase Moodle login timeout warning.
// @name:pl      Increase Moodle login timeout warning.
// @name:pt-BR   Increase Moodle login timeout warning.
// @name:ro      Increase Moodle login timeout warning.
// @name:ru      Increase Moodle login timeout warning.
// @name:sk      Increase Moodle login timeout warning.
// @name:sr      Increase Moodle login timeout warning.
// @name:sv      Increase Moodle login timeout warning.
// @name:th      Increase Moodle login timeout warning.
// @name:tr      Increase Moodle login timeout warning.
// @name:uk      Increase Moodle login timeout warning.
// @name:ug      Increase Moodle login timeout warning.
// @name:vi      Increase Moodle login timeout warning.
// @description         Increase Moodle login timeout warning. Prevent logout
// @description:ar      Increase Moodle login timeout warning. Prevent logout
// @description:bg      Increase Moodle login timeout warning. Prevent logout
// @description:da      Increase Moodle login timeout warning. Prevent logout
// @description:de      Increase Moodle login timeout warning. Prevent logout
// @description:el      Increase Moodle login timeout warning. Prevent logout
// @description:eo      Increase Moodle login timeout warning. Prevent logout
// @description:fi      Increase Moodle login timeout warning. Prevent logout
// @description:fr-CA   Increase Moodle login timeout warning. Prevent logout
// @description:he      Increase Moodle login timeout warning. Prevent logout
// @description:hu      Increase Moodle login timeout warning. Prevent logout
// @description:id      Increase Moodle login timeout warning. Prevent logout
// @description:it      Increase Moodle login timeout warning. Prevent logout
// @description:ko      Increase Moodle login timeout warning. Prevent logout
// @description:nb      Increase Moodle login timeout warning. Prevent logout
// @description:nl      Increase Moodle login timeout warning. Prevent logout
// @description:pl      Increase Moodle login timeout warning. Prevent logout
// @description:pt-BR   Increase Moodle login timeout warning. Prevent logout
// @description:ro      Increase Moodle login timeout warning. Prevent logout
// @description:ru      Increase Moodle login timeout warning. Prevent logout
// @description:sk      Increase Moodle login timeout warning. Prevent logout
// @description:sr      Increase Moodle login timeout warning. Prevent logout
// @description:sv      Increase Moodle login timeout warning. Prevent logout
// @description:th      Increase Moodle login timeout warning. Prevent logout
// @description:tr      Increase Moodle login timeout warning. Prevent logout
// @description:uk      Increase Moodle login timeout warning. Prevent logout
// @description:ug      Increase Moodle login timeout warning. Prevent logout
// @description:vi      Increase Moodle login timeout warning. Prevent logout
// @homepage     https://github.com/DeveloperMDCM/
// @version      0.1
// @description        Increase Moodle login timeout warning. Prevent logout
// @description:zh-TW  Increase Moodle login timeout warning. Prevent logout
// @description:zh-HK  Increase Moodle login timeout warning. Prevent logout
// @description:zh-CN  Increase Moodle login timeout warning. Prevent logout
// @description:ja     Increase Moodle login timeout warning. Prevent logout
// @description:kr     Increase Moodle login timeout warning. Prevent logout
// @description:fr     Increase Moodle login timeout warning. Prevent logout
// @description:cs     Increase Moodle login timeout warning. Prevent logout
// @description:en     Increase Moodle login timeout warning. Prevent logout
// @description:es     Increase Moodle login timeout warning. Prevent logout
// @author       MDCM
// @match        https://*.pv.cecar.edu.co/*
// @icon         https://i.pinimg.com/280x280_RS/8c/70/64/8c706467626f2c37489fea4f93ad1306.jpg
// @grant        GM_info
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        unsafeWindow
// @run-at       document-end
// @compatible chrome
// @compatible firefox
// @compatible opera
// @compatible safari
// @compatible edge
// @license MIT
// @namespace https://github.com/DeveloperMDCM/
// ==/UserScript==

(function () {
  // Moodle tools by: DeveloperMDCM
  "use strict";
  let valido = true;
  setInterval(() => {
     const btnSession = document.querySelector('#page-my-index > div:nth-child(7) > div.modal.moodle-has-zindex.show > div > div > div.modal-footer > button.btn.btn-primary')
    const btn2Session = document.querySelector("#page-course-view-grid > div:nth-child(7) > div.modal.moodle-has-zindex.show > div > div > div.modal-footer > button.btn.btn-primary")
    if(btnSession != undefined) {
        btnSession.click();
        btn2Session.click();
        console.log('Delete Session timeout by: MDCM')
    }
  },500)

})();