gif-video appear gamevn

This script display gifv by hover on url in thread hinh thu gian gamevn.

目前為 2015-05-03 提交的版本,檢視 最新版本

[CODE]// ==UserScript==
// @name         gif-video appear gamevn
// @namespace    https://greasyfork.org/en/users/9850-doctorwho
// @description This script display gifv by hover on url in thread hinh thu gian gamevn.
// @run-at      document-end
// @version     1.3
// @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/*
// ==/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))) {
        $(this).mouseover(function(){
            img = href.split('/');
            href = img[img.length-1];
            img = $("<div><img src='http://imgur.com/" + href + ".gif'/></div>");
            if(x)
            $(this).after(img);
            x = 0;
        });
    }
});[/CODE]