Jump to content

Question for webpage design experts


JoJoGunne

Recommended Posts

Can anyone tell me what this code does?

<script type="text/javascript" src="http://mod.postimage.org/smf-english-hotlink-adult.js"'>http://mod.postimage.org/smf-english-hotlink-adult.js" charset="utf-8"></script>

<script type="text/javascript"><!-- // --><![CDATA[

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-30732855-2']);

_gaq.push(['_trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

In particular, I'm interested in this:  http://mod.postimage.org/smf-english-hotlink-adult.js

Link to comment
Share on other sites

Can anyone tell me what this code does?

<script type="text/javascript" src="http://mod.postimage.org/smf-english-hotlink-adult.js"'>http://mod.postimage.org/smf-english-hotlink-adult.js" charset="utf-8"></script>

<script type="text/javascript"><!-- // --><![CDATA[

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-30732855-2']);

_gaq.push(['_trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

In particular, I'm interested in this:  http://mod.postimage.org/smf-english-hotlink-adult.js

Deciphers into this.

// MOD Title: Simple Image Upload

// MOD Author: Sium < [email protected] > (N/A) http://postimage.org/

// MOD Version: 1.5.0

if(typeof postimage_lang==='undefined')

{

var postimage_lang="english";

var postimage_add_text="Add image to post";

function postimage_query_string(postimage_search_name){if(window.location.hash){postimage_query=window.location.hash.substring(1).split("&");for(postimage_i=0;postimage_i<postimage_query.length;postimage_i++){postimage_string_data=postimage_query[postimage_i].split("=");if(postimage_string_data[0]==postimage_search_name){postimage_string_data.shift();return unescape(postimage_string_data.join("="));}}}return void(0);}if(opener){var postimage_text=postimage_query_string("postimage_text");if(postimage_text){var postimage_id=postimage_query_string("postimage_id");var postimage_area=opener.document.getElementsByTagName('textarea');for(var postimage_i=0;postimage_i<postimage_area.length;postimage_i++){if(postimage_i==postimage_id){break;}}if(opener.editorHandlemessage && opener.editorHandlemessage.bRichTextEnabled){opener.editorHandlemessage.insertText(postimage_text+"<br /><br />",false);}else{postimage_area[postimage_i].value=postimage_area[postimage_i].value+postimage_text;}opener.focus();window.close();}}function postimage_insert(){var postimage_area=document.getElementsByTagName('textarea');for(var postimage_i=0;postimage_i<postimage_area.length;postimage_i++){if(!postimage_area[postimage_i].name.match(/username_list|search|recipients/i)){postimage_div=document.createElement('div');postimage_open=document.createElement('a');postimage_open.innerHTML=postimage_add_text;postimage_open.href="javascript:postimage_upload("+postimage_i+");";postimage_open.setAttribute('style',"font-weight:bold");postimage_span=document.createElement('span');postimage_span.innerHTML="&#160;&#8226;&#160;";postimage_div.appendChild(document.createElement('br'));postimage_div.appendChild(postimage_span);postimage_div.appendChild(postimage_open);postimage_div.appendChild(document.createElement('br'));postimage_div.appendChild(document.createElement('br'));postimage_area[postimage_i].parentNode.insertBefore(postimage_div,postimage_area[postimage_i]);}}}function postimage_upload(areaid){window.open("http://postimage.org/index.php?mode=smf&areaid="+areaid+"&hash=1〈="+postimage_lang+"&code=hotlink&content=adult&forumurl="+escape(document.location.href),"postimage","resizable=yes,width=500,height=400");return void(0);}if(typeof postimage_text==='undefined'){if(window.addEventListener){window.addEventListener('DOMContentLoaded',postimage_insert,false);}else if(window.attachEvent){window.attachEvent('onload',postimage_insert);}}}

Whatever it all means, I couldn't tell you.    Not to on the upside on  Java Scripts but looks like it has something to do with postimage.org site. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...