- tatoma4 wrote:
- Can you tell the script, i wanna look into it.
// ==UserScript==
// @name Newgrounds flash download link beta 1.0
// @namespace
http://script.zemogt.org/// @description Display Newgrounds flash link when you visit a flash view page.
// @include
http://www.newgrounds.com/portal/view/*// ==/UserScript==
var headerBlock=document.getElementById('size_and_lightbox_options').parentNode;
var swfHref=document.body.textContent.match(/http:\/\/uploads\..*?\.swf/).pop();
var anchorTag=headerBlock.appendChild(document.createElement('a'));
anchorTag.href=swfHref;
var downloadFlashIcon=document.createElement('img');
downloadFlashIcon.src='http://www.iconspedia.com/dload.php?up_id=23613';
anchorTag.appendChild(downloadFlashIcon);
anchorTag.style.cssFloat='right';