NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name gamerGenImgPop
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author Creator
// @match http://www.gamergen.com/*
// @grant XMlHttpRequest
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.0.0/jquery.magnific-popup.js
// ==/UserScript==
var link2 = '';
var iFrameContainer = $('<div id="iFrameContainer" style = "display: none">').appendTo('body');
var loadingGif = $('<div id="facebookG" style="right: 0; bottom:0;position:fixed"><div id="blockG_1" class="facebook_blockG"></div><div id="blockG_2" class="facebook_blockG"></div><div id="blockG_3" class="facebook_blockG"></div></div>');
$("head").append('<link rel="stylesheet" href = "https://49535f300cc62ae84be0bc4341ad834057099639.googledrive.com/host/0B7xSofmydrHqMU9pRDJXTEtpQWc">');
$(document).ready(function() {
$('section[class="article"]').find("#intelliTXT").find('a').each(function(){
var that = $(this);
if (that.find('img').attr('src') != undefined){
loadingGif.appendTo('body');
var iFrame = $('<iFrame>').appendTo(iFrameContainer);
iFrame.attr('src',that.attr('href'));
iFrame.load(function(){
var link = iFrame.contents().find('.big').find('img').attr('src');
that.magnificPopup({
items: {
src: link
},
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});
loadingGif.remove();
});
}
});
});