This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-15 16:23:47

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

Interesting Scripts

Long time no see! I haven't been here for a long time and now there are 555 pages of unread posts. XD

Anyhow...

I find this amusing.


Do NOT run this on a user(not a "friended" user)'s page.

Code:

var id = document.getElementsByName('friend-id')[0];
var submit = document.getElementsByClassName('button')[0];
var i = Math.random() * 400000 >> 0;
var next = function () {id.value = (i++).toString();submit.click();};
setInterval(next, 500);

Offline

 

#2 2012-06-15 16:25:27

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Interesting Scripts

Did you make this script?


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#3 2012-06-15 16:26:48

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

Re: Interesting Scripts

Yeah.  tongue

Offline

 

#4 2012-06-15 16:27:33

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Interesting Scripts

How do you run it?  tongue


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#5 2012-06-15 16:30:10

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

Re: Interesting Scripts

Go to some one who is not your friend and paste the following into the address bar and hit enter:
Note: You may have to type the "javascript:" part in.

Code:

javascript:var id = document.getElementsByName('friend-id')[0];var submit = document.getElementsByClassName('button')[0];var i = Math.random() * 400000 >> 0;var next = function () {id.value = (i++).toString();submit.click();};setInterval(next, 500);

Or you could run it from the JS console.

Offline

 

#6 2012-06-15 16:35:29

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Interesting Scripts

MathIncognito wrote:

Go to some one who is not your friend and paste the following into the address bar and hit enter:
Note: You may have to type the "javascript:" part in.

Code:

javascript:var id = document.getElementsByName('friend-id')[0];var submit = document.getElementsByClassName('button')[0];var i = Math.random() * 400000 >> 0;var next = function () {id.value = (i++).toString();submit.click();};setInterval(next, 500);

Or you could run it from the JS console.

Doesn't seem to work.  hmm


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#7 2012-06-15 16:36:28

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

Re: Interesting Scripts

What is your browser?

Offline

 

#8 2012-06-15 16:37:06

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Interesting Scripts

MathIncognito wrote:

What is your browser?

Chrome. Maybe I'm doing something wrong?


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#9 2012-06-15 16:41:02

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

Re: Interesting Scripts

Go to someone page, press command + shift + j, paste this:

Code:

var id = document.getElementsByName('friend-id')[0];
var submit = document.getElementsByClassName('button')[0];
var i = Math.random() * 400000 >> 0;
var next = function () {id.value = (i++).toString();submit.click();};
setInterval(next, 500);

Hit enter... If there are any red messages, there are errors.

Offline

 

#10 2012-06-15 16:44:25

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: Interesting Scripts

MathIncognito wrote:

Go to someone page, press command + shift + j, paste this:

Code:

var id = document.getElementsByName('friend-id')[0];
var submit = document.getElementsByClassName('button')[0];
var i = Math.random() * 400000 >> 0;
var next = function () {id.value = (i++).toString();submit.click();};
setInterval(next, 500);

Hit enter... If there are any red messages, there are errors.

That brings up the Chrome downloads page.


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#11 2012-06-15 16:45:04

MathIncognito
New Scratcher
Registered: 2011-11-16
Posts: 11

Re: Interesting Scripts

stevetheipad wrote:

MathIncognito wrote:

Go to someone page, press command + shift + j, paste this:

Code:

var id = document.getElementsByName('friend-id')[0];
var submit = document.getElementsByClassName('button')[0];
var i = Math.random() * 400000 >> 0;
var next = function () {id.value = (i++).toString();submit.click();};
setInterval(next, 500);

Hit enter... If there are any red messages, there are errors.

That brings up the Chrome downloads page.

Umm... F12, click console tab?

Offline

 

Board footer