Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name sosach_WebmNotMute
- // @namespace sosach-webmnotmute
- // @include https://2ch.hk/*
- // @version 4
- // @grant none
- // ==/UserScript==
- var original_expand;
- function new_expand(num, src, thumb_src, n_w, n_h, o_w, o_h, minimize) {
- original_expand(num, src, thumb_src, n_w, n_h, o_w, o_h, minimize);
- if (!minimize) {
- //var el = unsafeWindow.$id('exlink-' + num).children;
- var el = document.querySelectorAll('video[name=media]');
- for (i in el) {
- if (el[i].tagName == "VIDEO") {
- el[i].muted = 0;
- //el[i].loop = false;
- }
- }
- }
- return false;
- }
- (function() {
- original_expand = unsafeWindow.expand;
- unsafeWindow.expand = new_expand;
- unsafeWindow.config.autoUpdate.minInterval = 120
- })();
Advertisement
Add Comment
Please, Sign In to add comment