mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
stricter pdf check
This commit is contained in:
parent
cb3c7800d3
commit
c315ad598a
1 changed files with 5 additions and 7 deletions
|
@ -46,7 +46,7 @@
|
|||
// : Script header {{{
|
||||
// ==UserScript==
|
||||
// @name Moodle/Elearning/KMOOC test help
|
||||
// @version 2.1.5.3
|
||||
// @version 2.1.5.4
|
||||
// @description Online Moodle/Elearning/KMOOC test help
|
||||
// @author MrFry
|
||||
// @match https://elearning.uni-obuda.hu/*
|
||||
|
@ -198,6 +198,8 @@
|
|||
? 'https://elearning.uni-obuda.hu/'
|
||||
: location.href
|
||||
|
||||
if (currUrl.includes('.pdf')) return
|
||||
|
||||
// : Localisation {{{
|
||||
|
||||
const huTexts = {
|
||||
|
@ -1581,9 +1583,7 @@
|
|||
default: {
|
||||
match: (url) => {
|
||||
return (
|
||||
(!url.includes('/quiz/') &&
|
||||
!url.includes('review.php') &&
|
||||
!url.includes('.pdf')) ||
|
||||
(!url.includes('/quiz/') && !url.includes('review.php')) ||
|
||||
forceDefaultPage
|
||||
)
|
||||
},
|
||||
|
@ -1654,9 +1654,7 @@
|
|||
Exception(e, 'script error at addEventListener:')
|
||||
}
|
||||
|
||||
if (!currUrl.includes('.pdf')) {
|
||||
ShowMenu()
|
||||
}
|
||||
|
||||
if (!serverToUse) {
|
||||
addNewHost()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue