-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebtoon Dark Mode.user.js
More file actions
35 lines (30 loc) · 980 Bytes
/
Copy pathWebtoon Dark Mode.user.js
File metadata and controls
35 lines (30 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// ==UserScript==
// @name Webtoon Dark Mode
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change the background color of the div with id content
// @author You
// @match https://www.webtoons.com/*
// @grant none
// ==/UserScript==
;(function () {
"use strict"
window.onload = function () {
var contentDiv = document.getElementById("content")
var bottomEpisodeListDiv = document.getElementById("bottomEpisodeList")
var episodeListSubj = document.querySelectorAll(".episode_lst .subj")
if (contentDiv) {
contentDiv.style.backgroundColor = "#161616"
contentDiv.style.padding = "100px 0 0"
}
if (bottomEpisodeListDiv) {
bottomEpisodeListDiv.style.backgroundColor = "#2f2f2f"
bottomEpisodeListDiv.style.color = "white"
}
if (episodeListSubj) {
episodeListSubj.forEach(function (element) {
element.style.color = "white"
})
}
}
})()