Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manesec/4d3f9ff7e44cb4ae66f6a96d1abcbb79 to your computer and use it in GitHub Desktop.
Save manesec/4d3f9ff7e44cb4ae66f6a96d1abcbb79 to your computer and use it in GitHub Desktop.
Simple moodle midden click auto locate resource file.
// ==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