Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Leonard Kugis
SELectureOptimizer
Commits
df17352f
Commit
df17352f
authored
Apr 25, 2020
by
Leonard Kugis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
0 deletions
+101
-0
.gitignore
.gitignore
+74
-0
README.MD
README.MD
+0
-0
SELectureOptimizer.js
SELectureOptimizer.js
+27
-0
No files found.
.gitignore
0 → 100644
View file @
df17352f
# Created by https://www.gitignore.io/api/linux,macos,windows
# Edit at https://www.gitignore.io/?templates=linux,macos,windows
### Linux ###
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.gitignore.io/api/linux,macos,windows
README.MD
0 → 100644
View file @
df17352f
SELectureOptimizer.js
0 → 100644
View file @
df17352f
// ==UserScript==
// @name SE Lecture optimizer
// @namespace http://tampermonkey.net/
// @version 1.0
// @date 2020-04-25
// @description Removes the autoplay and autobuffer from the videos of the SE Lecture page. So no more loading of 20 videos simultaniously to watch 1 video.
// @author Leonard Kugis
// @homepage https://collaborating.tuhh.de/cev7691/SELectureOptimizer
// @match https://media.tuhh.de/e16/Lecture-SE/
// @grant none
// ==/UserScript==
(
function
()
{
var
videos
=
Array
.
from
(
document
.
getElementsByTagName
(
"
video
"
));
for
(
var
i
=
0
;
i
<
videos
.
length
;
i
++
)
{
videos
[
i
].
pause
(
0
);
var
src
=
videos
[
i
].
src
;
videos
[
i
].
removeAttribute
(
"
src
"
);
videos
[
i
].
load
();
var
old
=
videos
[
i
];
videos
[
i
]
=
document
.
createElement
(
"
video
"
);
videos
[
i
].
setAttribute
(
"
preload
"
,
"
none
"
);
videos
[
i
].
setAttribute
(
"
controls
"
,
""
);
videos
[
i
].
setAttribute
(
"
src
"
,
src
);
old
.
parentNode
.
replaceChild
(
videos
[
i
],
old
);
}
})();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment