您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script display gif at url in gamevn and some xenforo 4r else.
// ==UserScript== // @name gif appear gamevn // @namespace https://greasyfork.org/en/scripts/8685-rainbow-gamevn // @description This script display gif at url in gamevn and some xenforo 4r else. // @run-at document-end // @version 1.2 // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js // @include /^https?:\/\/.*.gamevn.com/threads/hinh-thu-gian-version-62-2015-gamevn-chao-nam-moi-de-nghi-khong-an-box-50-nua.1169467/* // @include /^https?:\/\/.*.gamevn.com/threads/hinh-thu-gian-version-63-patch-odisey.1193279/* // ==/UserScript== $("[id^='post-'] a").each(function() { var img, href; href = $(this).attr("href"); var x = 1; if (/imgur.com/.test(href) && !(/<img/.test($(this).firstChild))) { if (/.gifv/.test(href)) { $(this).mouseover(function(){ img = href.split('/'); href = img[img.length-1]; img = href.split('.'); href = img[0]; img = $('<br><img src="//i.imgur.com/'+href+'.gif">'); if(x) $(this).after(img); x = 0; }); } else{ $(this).mouseover(function(){ img = href.split('/'); href = img[img.length-1]; img = $('<div><video preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline=""><source src="http://i.imgur.com/'+href+'.webm" type="video/webm"></video></div>'); if(x) $(this).after(img); x = 0; }); } } });