您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
simple script to add html5 controls to 9gag gif and video post
当前为
// ==UserScript== // @name 9gag show video control // @namespace http://javalatte.xyz // @version 1.1 // @description simple script to add html5 controls to 9gag gif and video post // @author JavaLatte // @match https://9gag.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var timer; function addVideoControl(){ var vids = document.getElementsByTagName('video'); for( var i = 0; i < vids.length; i++ ){ if(!vids.item(i).hasAttribute("controls")){ console.log('add video controls'); vids.item(i).setAttribute("controls", ""); } } } timer = setInterval(addVideoControl, 1000); })();