These are lighthearted scripts that you can use to rickroll yourself or your unwitting friends. Compatible with both Windows and Linux, they make rickrolling a scriptable and automatable task. For even more fun, put this in your friend's .bashrc or use cron/Windows Task Scheduler ;).
Requires Xdotools and Mozilla Firefox to run. To get started without downloading you can:
curl -s https://raw.githubusercontent.com/gideonshaked/rickroll-scripts/master/rickroll.sh | bashOr use the alternative link:
curl -sL bit.ly/3aHoMAE | bashRequires Microsoft Edge, which is on all Windows installations by default. To run once:
Invoke-WebRequest -URI https://raw.githubusercontent.com/gideonshaked/rickroll-scripts/master/rickroll.ps1 -OutFile temp.ps1; Set-ExecutionPolicy -ExecutionPolicy unrestricted -Scope process; .\temp.ps1; Remove-Item temp.ps1With the alternate link:
Invoke-WebRequest -URI https://bit.ly/3pL4evo -OutFile temp.ps1; Set-ExecutionPolicy -ExecutionPolicy unrestricted -Scope process; .\temp.ps1; Remove-Item temp.ps1To set up to run without user input, for example if used with Windows Task Scheduler, you need to set the execution policy to unrestricted prior (Powershell has no cmdlet equivalent to expect that is easily usable):
Set-ExecutionPolicy -ExecutionPolicy unrestrictedThen you can run the following each time:
Invoke-WebRequest -URI https://raw.githubusercontent.com/gideonshaked/rickroll-scripts/master/rickroll.ps1 -OutFile temp.ps1;.\temp.ps1; Remove-Item temp.ps1With the alternate link:
Invoke-WebRequest -URI https://bit.ly/3pL4evo -OutFile temp.ps1;.\temp.ps1; Remove-Item temp.ps1