Created
March 13, 2023 03:00
-
-
Save manesec/4d3f9ff7e44cb4ae66f6a96d1abcbb79 to your computer and use it in GitHub Desktop.
Simple moodle midden click auto locate resource file.
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 moodle midden click auto locate resource file. | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description moodle midden click auto locate resource file. | |
// @author manesec | |
// @match https://ummoodle.um.edu.mo/mod/resource/view.php?id=* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.location = document.body.querySelector(".resourceworkaround a").href; | |
// Your code here... | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment