您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows the gif/mp4 controls automatically
当前为
// ==UserScript== // @name 9gag Auto Gif Controls // @namespace http://www.diamonddownloads.weebly.com // @version 1.0 // @description Shows the gif/mp4 controls automatically // @author RF Geraci // @include http://9gag.*/gag/* // @include http://9gag.*/* // @include https://9gag.*/gag/* // @include https://9gag.*/* // @grant none // @run-at document-body // ==/UserScript== gag = { init : function(t){ setInterval(function(){ var classN = "badge-animated-container-animated post-view"; //Default var winLoc = window.location.href; if (winLoc.indexOf('hot') > -1 || winLoc.indexOf('trending') > -1 || winLoc.indexOf('fresh')){ classN = "badge-animated-container-animated"; //Change var if these pages are open } var ele = document.getElementsByClassName(classN); for(var i=0; i<ele.length; i++){ var c = ele[i].childNodes[1]; if (!c.hasAttribute('controls')){ console.log(ele[i].className + " " + i + " did not have control attrib"); c.setAttribute("controls", ""); } } }, t); } }; gag.init(1000);