forked from cadence/breezewiki
Compare commits
3 commits
4b039cca5e
...
61d2820342
Author | SHA1 | Date | |
---|---|---|---|
61d2820342 | |||
4336e4ab43 | |||
f6933e9e50 |
2 changed files with 20 additions and 0 deletions
|
@ -110,6 +110,15 @@
|
||||||
#;(curry attribute-maybe-update 'class
|
#;(curry attribute-maybe-update 'class
|
||||||
(λ (class) (string-join (classlist-updater (string-split class " ")) " ")))
|
(λ (class) (string-join (classlist-updater (string-split class " ")) " ")))
|
||||||
(curry attribute-maybe-update 'class class-updater)
|
(curry attribute-maybe-update 'class class-updater)
|
||||||
|
; audio buttons - sample: hearthstone/wiki/Diablo_(Duels_hero)#Sounds
|
||||||
|
(curry u
|
||||||
|
(λ (v) (has-class? "ext-audiobutton" v))
|
||||||
|
(λ (v) (dict-set (dict-remove v 'hidden) 'controls '(""))))
|
||||||
|
; yet more uncollapsing - sample: warframe/wiki/Amp_(Ability)
|
||||||
|
(curry u
|
||||||
|
(λ (v) (and (dict-has-key? v 'id)
|
||||||
|
(string-prefix? (car (dict-ref v 'id)) "mw-customcollapsible")))
|
||||||
|
(λ (v) (dict-set v 'style "display:block")))
|
||||||
; change links to stay on the same wiki
|
; change links to stay on the same wiki
|
||||||
(curry attribute-maybe-update 'href
|
(curry attribute-maybe-update 'href
|
||||||
(λ (href)
|
(λ (href)
|
||||||
|
@ -245,6 +254,9 @@
|
||||||
; remove gamespot reviews/ads
|
; remove gamespot reviews/ads
|
||||||
[(has-class? "reviews" attributes)
|
[(has-class? "reviews" attributes)
|
||||||
return-no-element]
|
return-no-element]
|
||||||
|
; remove customcollapsible customtoggle buttons - sample: warframe/wiki/Amp_(Ability)
|
||||||
|
[(and (dict-has-key? attributes 'class) (regexp-match? #rx"^mw-customtoggle-[^ ]* button-c$" (car (dict-ref attributes 'class))))
|
||||||
|
return-no-element]
|
||||||
[#t
|
[#t
|
||||||
(list element-type
|
(list element-type
|
||||||
;; attributes
|
;; attributes
|
||||||
|
|
|
@ -210,6 +210,14 @@ figcaption, .lightbox-caption, .thumbcaption {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* javascript audio play buttons */
|
||||||
|
a.ext-audiobutton { /* see hearthstone/wiki/Diablo_(Duels_hero) */
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.sound > [style="display:none"] { /* see minecraft/wiki/villager#Sounds */
|
||||||
|
display: inline !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* animated slots */
|
/* animated slots */
|
||||||
#mw-content-text .animated > :not(.animated-active), #mw-content-text .animated > .animated-subframe > :not(.animated-active) {
|
#mw-content-text .animated > :not(.animated-active), #mw-content-text .animated > .animated-subframe > :not(.animated-active) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
Loading…
Reference in a new issue