Discuss Scratch

gosoccerboy5
Scratcher
1000+ posts

Rickrolling people in advanced ways

Click here, then I dare you to click the “Demo” link. You'll notice that the link goes to Scratch but you get redirected to “Never gonna give you up”.
Any other silly ways to rickroll people super-secret?

Want to do this yourself? Just add this simple stuff to your HTML
<script>
const rickroll = function (event) { 
    event.preventDefault(); 
    document.write("Get 'rolled lol"); 
    window.setTimeout(function() {
        document.body.innerHTML = '<iframe width="966" height="543" src="https://www.youtube.com/embed/dQw4w9WgXcQ?&autoplay=1" frameborder="0"></iframe>';
        console.info("https://scratch.mit.edu/discuss/post/5069102/");
    }, 500);
}
document.querySelectorAll(".rickroll").forEach(el => el.addEventListener("click", rickroll));
</script>
To use this, just add
class="rickroll"
to any links you want to be rickrolls in your website.

Last edited by gosoccerboy5 (July 23, 2021 19:35:59)


PoIygon
Scratcher
1000+ posts

Rickrolling people in advanced ways

Thank god an ad played before I got rickrolled










gosoccerboy5
Scratcher
1000+ posts

Rickrolling people in advanced ways

PoIygon wrote:

Thank god an ad played before I got rickrolled
Fine. I might be able add an iframe with autoplay\

aight done. check it out now!
No ads, no nothing to let you realize it's a rickroll until too late!

Last edited by gosoccerboy5 (March 31, 2021 21:48:00)


Ankit_Anmol
Scratcher
500+ posts

Rickrolling people in advanced ways

Lol, if u longpress the link, then it will show where are you redirected xD

@Ankit_Anmol
Quality game developer on scratch
Please support this suggestion: https://scratch.mit.edu/discuss/topic/481580/
Thanks for your time!

set [Ankit_Anmol v] to [Genius v]
crispyapple
Scratcher
500+ posts

Rickrolling people in advanced ways

cool!!

Last updated: 31/Mar
Advertisments

scratch978654
Scratcher
100+ posts

Rickrolling people in advanced ways

with node.js + express, you can do `res.redirect` and display some **checking for browser** thingy

I will be temporarily participating on this site on April 1 2021 then leaving again
JackK211424
Scratcher
500+ posts

Rickrolling people in advanced ways

Last edited by JackK211424 (Dec. 30, 2021 17:33:30)


awesome-llama
Scratcher
1000+ posts

Rickrolling people in advanced ways

I think this is one of the best rickrolls that exist: http://tom7.org/abc/paper.pdf
YT video which explains it: https://www.youtube.com/watch?v=LA_DrBwkiJA


samq64
Scratcher
1000+ posts

Rickrolling people in advanced ways

it didn't work

Last edited by samq64 (April 1, 2021 21:17:59)

gosoccerboy5
Scratcher
1000+ posts

Rickrolling people in advanced ways

samq64 wrote:

it didn't work
worked for me, weird

samq64
Scratcher
1000+ posts

Rickrolling people in advanced ways

gosoccerboy5 wrote:

samq64 wrote:

it didn't work
worked for me, weird
Oh, that's probbably because I didn't do anything except paste ‘class=“Rickroll”’ to the end of the link.

Last edited by samq64 (April 1, 2021 21:57:10)

gosoccerboy5
Scratcher
1000+ posts

Rickrolling people in advanced ways

samq64 wrote:

gosoccerboy5 wrote:

samq64 wrote:

it didn't work
worked for me, weird
Oh, that's probbably because I didn't do anything except paste ‘class=“Rickroll”’ to the end of the link.
Oops sorry, when I said

gosoccerboy5 wrote:

To use this, just add
class = "rickroll"
to any links you want to be rickrolls.
I meant on a webpage you made

megaelectron2006
Scratcher
500+ posts

Rickrolling people in advanced ways

this is 10000 big brain iq smort

An old man is teaching his grandson about life. “A fight is going on inside me,” he said to the boy.

“It is a terrible fight and it is between two wolves. One is evil – he is anger, envy, sorrow, regret, greed, arrogance, self-pity, guilt, resentment, inferiority, lies, false pride, superiority, and ego.” He continued, “The other is good – he is joy, peace, love, hope, serenity, humility, kindness, benevolence, empathy, generosity, truth, compassion, and faith. The same fight is going on inside you – and inside every other person, too.”

The grandson thought about it for a minute and then asked his grandfather, “Which wolf will win?”

The old man simply replied, “The one you feed.”


9gr
Scratcher
1000+ posts

Rickrolling people in advanced ways

i just added a redirect to my youtube player when someone goes on my 404 pages lol but i already took it off

you can see how mine works here


lol wat

Last edited by 9gr (April 2, 2021 08:07:21)

gosoccerboy5
Scratcher
1000+ posts

Rickrolling people in advanced ways

9gr wrote:

you can see how mine works here
did i just get willingly rickrolled.. ?

mast3rcoder
Scratcher
35 posts

Rickrolling people in advanced ways

What have I just found

<iframe src="https://scratch.mit.edu/projects/506217110/embed“ allowtransparency=”true“ width=”485“ height=”402“ frameborder=”0“ scrolling=”no" allowfullscreen></iframe>
ninjaMAR
Scratcher
1000+ posts

Rickrolling people in advanced ways

I made one

9gr
Scratcher
1000+ posts

Rickrolling people in advanced ways

ok i maek
epic advanced readable nodejs app which you can view here

let use nodejs
index.js [app]
var e= require("express");var w= ["never", "gonna", "give", "you", "up", "rickroll"];var a= e();a.get("/game/:w", (rq,re) => {if (w.indexOf(rq.params.w) !== -1) {if (rq.params.w == "rickroll"){return re.sendFile(__dirname + "/rickroll.html")};re.header("Content-Type", "text/html");re.send(`<!DOCTYPE html><html><body><a id="e">Play very gud game</a><script>fetch("/game/${rq.params.w}/nxt").then(res=>res.json()).then((res) => {document.getElementById("e").href = "/game/" + res.w})</script></body></html>`)} else {re.sendStatus(404)}});a.get("/game/:w/nxt", (req, res) => {if (w.indexOf(req.params.w) !== -1) {var nx=null;for (let j in w) {if (nx) {return res.json({w:w[j]})};if (w[j]==req.params.w) {nx=j}};res.sendStatus(500)} else {res.sendStatus(404)}});a.listen(4000)

and then the rickroll.html file:
<html><head>
    <title>Fullscreen YouTube Player</title>
    <meta name="description" content="Fullscreen YouTube player. Credits go to YouTube and StackOverflow.">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  </head>
  <body style="overflow: hidden; margin: 0">
    <script type="text/javascript">
      function load(ytUrl) {
        $(function () {
          $("#video").css({
            width: $(window).innerWidth() + "px",
            height: $(window).innerHeight() + "px",
          });
          $(window).resize(function () {
            $("#video").css({
              width: $(window).innerWidth() + "px",
              height: $(window).innerHeight() + "px",
            });
          });
        }); // did you know i found this function in a stack overflow thing?
      }
      load("");
    </script><iframe id="video" src="//www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" frameborder="0" allowfullscreen="" style="width: 1365px; height: 937px;"></iframe>
  
</body></html>
hope i win comeptition for best ricroll

Last edited by 9gr (April 5, 2021 18:55:05)

PkmnQ
Scratcher
1000+ posts

Rickrolling people in advanced ways

And I thought the one in my signature was clever.

Last edited by PkmnQ (April 6, 2021 16:21:23)


This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

Raihan142857
Scratcher
1000+ posts

Rickrolling people in advanced ways

There used to be a way to upload html files to assets.scratch.mit.edu so that would have been one he­ll of a rickroll

I use scratch.
GF: I'll dump you. BF: hex dump or binary dump?










Powered by DjangoBB