Last active
November 25, 2019 10:10
-
-
Save malte-j/7ac7505f272f4cabf1f7bfa3f4f2e84b to your computer and use it in GitHub Desktop.
LMS ohne Downloadzwang von Anhängen
This file contains 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 LMS Kein Downloadzwang | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Verhindert Downloadzwang von verlinkten Dokumenten | |
// @author Malte Janßen | |
// @match https://lms.beuth-hochschule.de/mod/assign/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.onload = () => document.querySelectorAll('.ygtvitem a:not(.ygtvspacer)').forEach(el=> {el.href = el.href.split('?forcedownload=1')[0]}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment