Enquirer Home Page | Twitter | Back to Improbable Island
 
ii-media-exposure.user.js
// ==UserScript==
// @name            ii-media-exposure
// @namespace       http://enquirer.improbableisland.com/dokuwiki/doku.php?id=greasemonkey:ii-media-exposure
// @description     Adds a download link to each entry in the Gallery of Shame.
// @match           http://enquirer.improbableisland.com/mediagallery/media.php?*
// @icon            http://improbableisland.com/favicon.ico
// @version         1.1
// @author          Full Metal Lion
// @grant           none
// ==/UserScript==
var id = document.URL.match(/s=(\d+)/)[1];
var titleDiv = document.getElementsByClassName("pluginLinks")[1];
var downloadOption = document.createElement("a");
downloadOption.setAttribute("href","http://enquirer.improbableisland.com/mediagallery/download.php?mid="+id);
downloadOption.innerHTML = "(Click here to download)";
titleDiv.appendChild(downloadOption);
 
Logged in as: Guest (Guest)
greasemonkey/ii-media-exposure.txt · Last modified: 2016/07/11 22:06 by Full Metal Lion