Skip to content

Instantly share code, notes, and snippets.

@Saiv46
Last active April 7, 2026 07:41
Show Gist options
  • Select an option

  • Save Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8 to your computer and use it in GitHub Desktop.

Select an option

Save Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name MoodleFix
// @namespace https://moodle.org/
// @version 2026-04-07
// @description Fixes "servicerequireslogin" error
// @author Alexander "Saiv46" Ivanov
// @match https://edu.igmt.ru/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=igmt.ru
// @run-at document-end
// @grant none
// @sandbox raw
// @downloadURL https://gist.githubusercontent.com/Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8/raw/MoodleFix.user.js
// @updateURL https://gist.githubusercontent.com/Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8/raw/MoodleFix.meta.js
// ==/UserScript==
// ==UserScript==
// @name MoodleFix
// @namespace https://moodle.org/
// @version 2026-04-07
// @description Fixes "servicerequireslogin" error
// @author Alexander "Saiv46" Ivanov
// @match https://edu.igmt.ru/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=igmt.ru
// @run-at document-end
// @grant none
// @sandbox raw
// @downloadURL https://gist.githubusercontent.com/Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8/raw/MoodleFix.user.js
// @updateURL https://gist.githubusercontent.com/Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8/raw/MoodleFix.meta.js
// ==/UserScript==
require(['jquery'], function($) {
$.ajaxSetup({
xhrFields: {
withCredentials: true
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment