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

#26 2011-08-24 13:43:16

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

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

Sidharth wrote:

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.

You could always un-loveit once there.  neutral

Offline

 

#27 2011-08-24 13:58:09

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

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

scimonster wrote:

Sidharth wrote:

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.

You could always un-loveit once there.  neutral

and what if they use your script to auto-love other project than the project you're redirected to?

Offline

 

#28 2011-08-24 15:14:32

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

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

roijac wrote:

scimonster wrote:

Sidharth wrote:

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.

You could always un-loveit once there.  neutral

and what if they use your script to auto-love other project than the project you're redirected to?

Well now, that could be a bit of a problem. Which is why I just need to PHP host it and delete this.

Offline

 

#29 2011-08-24 16:25:00

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

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

scimonster wrote:

roijac wrote:

scimonster wrote:


You could always un-loveit once there.  neutral

and what if they use your script to auto-love other project than the project you're redirected to?

Well now, that could be a bit of a problem. Which is why I just need to PHP host it and delete this.

Code:

<?php
//makes sure there is all the info needed
if(isset($_GET['user'])&&isset($_GET['redirecturl'])&&isset($_GET['projectid'])){
header('Location: http://scratch.mit.edu/projects'.$_GET['user']'/'.$_GET['projectid']'/loveit');
//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']);
}

?>

it was made by GP1, modified by me a little bit


◕‿◕

Offline

 

#30 2011-08-25 13:05:53

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

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

I wonder if I could make a PHP page which displays an image, but is also rigged to give a project of mine a love-it. So if someone opens a page with my signature on it ( the image ) it'll automatically give me a love-it for some project of mine and they wouldn't even know it.

I think there is something wrong with that theory though.

Offline

 

#31 2011-08-25 13:43:48

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

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

Magnie wrote:

I wonder if I could make a PHP page which displays an image, but is also rigged to give a project of mine a love-it. So if someone opens a page with my signature on it ( the image ) it'll automatically give me a love-it for some project of mine and they wouldn't even know it.

I think there is something wrong with that theory though.

Won't work anyway. If you're gonna do that only with PHP, you'll need cURL.
Using cURL means you'll need a cookie jar.
Using a cookie jar means you'll need the user's cookies for Scratch login.
And that isn't possible.

Offline

 

#32 2011-08-26 17:42:22

djdolphin
Scratcher
Registered: 2010-03-23
Posts: 100+

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

I knew about this for about a year. I just didn't share it because you know... Forcing People to love it your projects. I'd probably get banned.

Last edited by djdolphin (2011-08-26 17:42:59)

Offline

 

#33 2011-08-27 10:43:55

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

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

LS97 wrote:

Magnie wrote:

I wonder if I could make a PHP page which displays an image, but is also rigged to give a project of mine a love-it. So if someone opens a page with my signature on it ( the image ) it'll automatically give me a love-it for some project of mine and they wouldn't even know it.

I think there is something wrong with that theory though.

Won't work anyway. If you're gonna do that only with PHP, you'll need cURL.
Using cURL means you'll need a cookie jar.
Using a cookie jar means you'll need the user's cookies for Scratch login.
And that isn't possible.

Or you'd just use a frame to load the love-it page?

Offline

 

#34 2011-08-27 11:59:02

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

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

Anyone who uses this should be reported, so stop using it rubikscube.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#35 2011-08-27 12:18:06

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

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

Magnie wrote:

LS97 wrote:

Magnie wrote:

I wonder if I could make a PHP page which displays an image, but is also rigged to give a project of mine a love-it. So if someone opens a page with my signature on it ( the image ) it'll automatically give me a love-it for some project of mine and they wouldn't even know it.

I think there is something wrong with that theory though.

Won't work anyway. If you're gonna do that only with PHP, you'll need cURL.
Using cURL means you'll need a cookie jar.
Using a cookie jar means you'll need the user's cookies for Scratch login.
And that isn't possible.

Or you'd just use a frame to load the love-it page?

Nope, there is no page that automatically loves it. The link to love the project has a click event attached to the code I posted earlier. You would have to violate the user's security to actually 'click' the button. I do have an AutoHotKey script to do it: will not use, will not share. (To use it I have to somehow get it to run it on your computer)

Based on the information I have gotten using the Chrome dev tools, it is impossible to force someone to love your project UNLESS you can install an userscript or extension into their browser.

Pecola1 wrote:

Anyone who uses this should be reported, so stop using it rubikscube.

I HIGHLY doubt he is using any method to force love-its onto his projects.


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

Offline

 

#36 2011-09-26 13:38:49

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

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

I'd like an answer from a mod now: Am I allowed, by Scratch TOU, to do this?

Offline

 

#37 2011-09-27 13:22:15

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

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

scimonster wrote:

I'd like an answer from a mod now: Am I allowed, by Scratch TOU, to do this?

I am not a moderator of course but think, is the love it button made so people will love any project they see even before they see it? Or is it made so if you like it, you will click the love it button. Do you think the person loves your project when they haven't even seen it? I would say NO. Cuz that's just what it would be, making someone love a project without knowing it. This would also be a lie in some cases, if someone made a project with no script and only the scratch cat sprite, the person wouldn't LOVE it, they would, or should REPORT it, as spam.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#38 2011-09-27 13:54:37

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

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

You could do that long code, or simply this code:

Code:

<body onload="PROJECT_URL/loveit">

http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#39 2011-09-27 14:01:46

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

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

WindowsExplorer wrote:

You could do that long code, or simply this code:

Code:

<body onload="PROJECT_URL/loveit">

What does that do?

Offline

 

#40 2011-09-27 14:02:16

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

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

exact same thing.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#41 2011-09-28 18:27:48

mewkid
Scratcher
Registered: 2010-08-16
Posts: 100+

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

I want to report, but probably can't.

Offline

 

#42 2011-09-29 11:08:32

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

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

scimonster wrote:

WindowsExplorer wrote:

You could do that long code, or simply this code:

Code:

<body onload="PROJECT_URL/loveit">

What does that do?

Same thing as clicking this: http://scratch.mit.edu/projects/Pecola1/1904422/loveit#
Actually mine makes you CLICK the button, whereas his just shows the button.

CLICK IT ONLY IF YOU WANT TO LOVE MY PROJECT, it will NOT however go to my project, after clicking that, come back to this page and click this: http://scratch.mit.edu/projects/Pecola1/1904422

This makes it so you can simply use a url. For just the button (what WindowsExplorer used) click here: http://scratch.mit.edu/projects/Pecola1/1904422/loveit

Last edited by Pecola1 (2011-09-29 11:11:16)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#43 2011-09-30 18:40:10

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

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

Code:

<?php
//THIS CODE WAS MADE BY FLASHGOCRAZY AND GP1 IF YOU GET BANNED WHILE USING THIS CODE IT IS NOT OUR FAULT


//makes sure there is all the info needed
if(isset($_GET['user'])&&isset($_GET['projectid'])){
$proj-id = filter_input(INPUT_GET, "projectid");
$user = filter_input(INPUT_GET, "user");
header('Location: http://scratch.mit.edu/projects/$user/$proj-id/loveit#');

}

?>

host the code above and it should work


◕‿◕

Offline

 

#44 2011-10-01 12:20:03

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

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

Hmm... somehow now adding the '#' works... It didn't work for me at all when I tried it a long time ago.

I think it would be made more secure if the link to love it had an onclick event that sent an AJAX request or some server-side thing. That way, the user actually has to CLICK it, not visit the page that it goes to.

Last edited by Sidharth (2011-10-01 12:20:25)


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

Offline

 

#45 2011-10-01 12:21:58

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

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

OK, I finally got it

Code:

<?php
//THIS CODE WAS MADE BY FLASHGOCRAZY AND GP1 IF YOU GET BANNED WHILE USING THIS CODE IT IS NOT OUR FAULT


//makes sure there is all the info needed
if(isset($_GET['user'])&&isset($_GET['projectid'])){
$projid = $_GET['projectid'];
$user = $_GET['user'];
header('Location: http://scratch.mit.edu/projects/'.$user.'/'.$proj-id.'/loveit#');

}

?>

example: lets say you wanted people to love http://scratch.mit.edu/projects/flashgocrazy/1953922 you would put:

Code:

exampledomainthingy.subdomain.com/random_stuff/scratch/love-it.php?user=flashgocrazy&projectid=1953922

it takes a few minutes to sync with the server,and then you have a love-it! (it is also not my fault if you get banned by using this code


◕‿◕

Offline

 

Board footer