Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BBB Volume Slider - Userscript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Müller
BBB Volume Slider - Userscript
Commits
679fc14f
Commit
679fc14f
authored
3 years ago
by
Daniel Müller
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit
parents
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bbb-volume-slider.user.js
+38
-0
38 additions, 0 deletions
bbb-volume-slider.user.js
with
38 additions
and
0 deletions
bbb-volume-slider.user.js
0 → 100644
+
38
−
0
View file @
679fc14f
// ==UserScript==
// @name BBB Volume Slider
// @website https://code.fbi.h-da.de/istddmue2/bbb-volume-slider-userscript
// @version 0.1
// @description Adds a volume slider
// @author Daniel Müller
// @match https://*.h-da.de/html5client/join*
// @grant none
// ==/UserScript==
(
function
()
{
'
use strict
'
;
// Check if the volume slider exists
if
(
document
.
getElementById
(
"
vs-container
"
)
!=
null
)
return
;
// Create the container
let
vsc
=
document
.
createElement
(
"
div
"
)
vsc
.
id
=
"
vs-container
"
vsc
.
style
.
position
=
"
absolute
"
vsc
.
style
.
top
=
"
20px
"
vsc
.
style
.
right
=
"
75px
"
// Create the actual slider
let
vs
=
document
.
createElement
(
"
input
"
)
vs
.
type
=
"
range
"
vs
.
min
=
1
vs
.
max
=
100
vs
.
value
=
100
vs
.
oninput
=
function
()
{
document
.
getElementById
(
"
remote-media
"
).
volume
=
Math
.
pow
(
this
.
value
/
100.0
,
2
)
}
vsc
.
append
(
vs
)
document
.
body
.
appendChild
(
vsc
)
})();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment