From 6c6fc12317d71a12eb5c74642210d43ee5c358f0 Mon Sep 17 00:00:00 2001 From: GM-Script-Writer-62850 Date: Wed, 10 Jul 2013 21:25:41 -0400 Subject: [PATCH] Enhancements --- inc/main.js | 96 ++++++++++++++++++++++++++++++++------------------- inc/scan.php | 2 +- inc/scans.php | 4 +-- inc/style.php | 23 ++++++------ index.php | 4 +-- 5 files changed, 78 insertions(+), 51 deletions(-) diff --git a/inc/main.js b/inc/main.js index 22bce5f..d63def5 100755 --- a/inc/main.js +++ b/inc/main.js @@ -246,7 +246,7 @@ function printMsg(t,m,a,r){ var div=document.createElement('div'); var ele=getID('new_mes'); div.className="message"; - div.innerHTML="

"+t+'Close'+"

"+m+""; + div.innerHTML="

"+t+'Close'+"

"+m+""; if(r!=-1&& typeof ele.insertBefore=='function') ele.insertBefore(div,ele.childNodes[0]); else @@ -777,6 +777,7 @@ function imgurPopup(file,links){ links=parseJSON(localStorage.getItem('imgur')); links=links[file]; } + var onclick="void(setClipboard(this)?null:this.select());";//Only select if not copied getID("blanket").childNodes[0].innerHTML='

'+file.substr(5)+' is on Imgur

'+ '
'+ '
'+ '

Embed Codes

'+ '

Original

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ - '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linked HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ + '
  • Linked BBCode (message boards)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '

Huge Thumbnail

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ - '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linked HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ + '
  • Linked BBCode (message boards)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '

Large Thumbnail

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ - '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linked HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ + '
  • Linked BBCode (message boards)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '

Medium Thumbnail

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ - '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linked HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ + '
  • Linked BBCode (message boards)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '

Small Thumbnail

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ - '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linked HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ + '
  • Linked BBCode (message boards)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '

Big Square

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linked HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '

Small Square

    '+ - '
  • Direct Link (email & IM)
  • '+ - '
  • HTML Image (websites & blogs)
  • '+ - '
  • BBCode (message boards & forums)
  • '+ - '
  • Linked BBCode (message boards)
  • '+ - '
  • Markdown Link (reddit comment)
  • '+ + '
  • Direct Link (email & IM)
  • '+ + '
  • HTML Image (websites & blogs)
  • '+ + '
  • Linekd HTML Image (websites & blogs)
  • '+ + '
  • BBCode (message boards & forums)
  • '+ + '
  • Linked BBCode (message boards)
  • '+ + '
  • Markdown Link (reddit comment)
  • '+ '
'+ '
'; popup('blanket',365); @@ -845,6 +853,7 @@ function imgurPopup(file,links){ getID('imgur-scroller').style.display='none'; getID('imgur-codes').style.overflowX='scroll'; } + return false; } function imgurDel(id,img){ if(img===false){ @@ -873,6 +882,23 @@ function imgurDel(id,img){ } return false; } +function setClipboard(e){// Everyone except MS considers this a security hole, thus this is IE only; I refuse to use flash as a workaround for this + if(!window.clipboardData) + return false; + if(window.clipboardData.setData('Text',e.value)){ + var span=document.createElement('span'); + span[TC]="Copied"; + span.className="tip"; + span.style.display="block"; + e.parentNode.className="tool"; + e.parentNode.appendChild(span); + setTimeout(function(){ + e.parentNode.removeChild(span); + },1600); + return true; + } + return false; +} function emailManager(file){ var storeSupport=(typeof localStorage=="object"&&typeof JSON=="object"?true:false),data=false; if(file==null&&!storeSupport) diff --git a/inc/scan.php b/inc/scan.php index 3bc0af5..4f4878f 100755 --- a/inc/scan.php +++ b/inc/scan.php @@ -2,7 +2,7 @@