Skip to content

Instantly share code, notes, and snippets.

function swapImage() {
// create list of img urls from image_grid (set by php)
images = [];
for( img in window.image_grid) {
images.push(window.image_grid[img].setting[0].value)
}
// get current images from html in gallery
current_images = []
$("#image_gallery div.bgFill").each(function() {
bg__img = $(this).css('background-image').replace('url(','').replace(')','');
@killgallic
killgallic / iMacroLibrary.js
Created April 9, 2015 04:28
iMacroLibrary.js
window.console.log('iMacrolibrary loaded');
/*__________________ Define unsafeWindow __________________*/
// iMacro prevents access to the window object of the browser, so we
// must force access by creating an unsafeWindow
var bGreasemonkeyServiceDefined = false;
try {
if (typeof Components.interfaces.gmIGreasemonkeyService === "object") { bGreasemonkeyServiceDefined = true; }
} catch (err) { /*Ignore.*/ }
|w |h |a |t |u |s |e |t |r |e |e |s |b |e |c |o |m |e |e |n |l |i |g |h |t |e |n |e |d
|29|14|1 |25|28|23|5 |26|22|6 |7 |24|2 |8 |3 |21|18|9 |10|19|17|16|13|15|27|11|20|12|4
Maybe something lines those little groupies up c:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# #
# Greetings :3 #
# )( ) ) _ _ _______ _ #
# ( ) ( / \   /      \  #
# )( ) / \   /___∠__________\_| #
# ) ( / \   | |  _ || | |   #
# ===== / \ | |∠二ニ二||> | |    # 
# | | / \ /  _   || _ \    #
# ______|___|_____/ \_______________   / ( ・) ||(・) \  #