Last active
April 7, 2026 07:41
-
-
Save Saiv46/b5abaf488e23ab9452cc4dc30afd3fe8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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