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.
Offline
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.
![]()
and what if they use your script to auto-love other project than the project you're redirected to?
Offline
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.
![]()
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
scimonster wrote:
roijac wrote:
scimonster wrote:
You could always un-loveit once there.![]()
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.
<?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
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
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
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
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
Anyone who uses this should be reported, so stop using it rubikscube.
Offline
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.

Offline
I'd like an answer from a mod now: Am I allowed, by Scratch TOU, to do this?
Offline
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.
Offline
You could do that long code, or simply this code:
<body onload="PROJECT_URL/loveit">
Offline
WindowsExplorer wrote:
You could do that long code, or simply this code:
Code:
<body onload="PROJECT_URL/loveit">
What does that do?
Offline
I want to report, but probably can't.
Offline
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)
Offline
<?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
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)

Offline
OK, I finally got it
<?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:
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