// ==UserScript== // @name Imgur service script for AutoPatchWork Mod (UserJS version) // @include http://imgur.com/*/* // @include https://imgur.com/*/* // @run-at document-end // ==/UserScript== AutoPatchWorked.on('ready', function() { var current_index = parseInt(location.hash.slice(1), 10) || 0, img_arr_len = 0; AutoPatchWorked.on('request', function handleNewPageLink(event) { if (current_index < img_arr_len - 1) { var img = Imgur.Album.getInstance()._.images.images[++current_index]; AutoPatchWorked.trigger('load', { htmlDoc: AutoPatchWorked.create_html('