Skip to content

Instantly share code, notes, and snippets.

@retronbv
Created September 10, 2021 00:22
Show Gist options
  • Save retronbv/c3b1000965464d75a83046933778d291 to your computer and use it in GitHub Desktop.
Save retronbv/c3b1000965464d75a83046933778d291 to your computer and use it in GitHub Desktop.

How to get free nitro?!

Education purposes only!!!

giftCode = function () {
		    let code = "";
		    let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
	for (var i = 0; i < 24; i++) {
		code = code + letters.charAt(Math.floor(Math.random() * letters.length));
    	}
	window.open("https://discord.gift/"+code);
    }

then

for (let i = 0; i < 9; i++) {
  giftCode()
}
@devxan
Copy link

devxan commented Sep 10, 2021

Bookmarklet

Here is a bookmarklet version of the code above! Yes, for education purposes only. All credit to @retronbv, I just decided to make this post and the instructions because I wanted to and I also thought you might like it. 😄

Instructions

Select all the code of a version of the bookmarklet and drag that text into your bookmarks bar. Rename it if you would like. In the future you can open up a random website, click this, wait for the nitro to load, and if you didn't receive Nitro then click the bookmarklet again. To open up a new tab of possible Discord Nitro every time you click it, hold the Ctrl key as you press your mouse onto the bookmarklet. This will work even on chromium-based new tab pages! (Clicking the bookmarklet without holding the Ctrl key will not work on chromium-based new tab pages. It will open up a gift of possible Discord Nitro in your current tab.)

Nitro

javascript:giftCode=function(){let code="";let letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";for(var i=0;i<24;i+=1){code=code+letters.charAt(Math.floor(Math.random()*letters.length))}location.href="https://discord.gift/"+code};giftCode();

Classic

javascript:giftCode=function(){let code="";let letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";for(var i=0;i<1;6i+=1){code=code+letters.charAt(Math.floor(Math.random()*letters.length))}location.href="https://discord.gift/"+code};giftCode();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment