Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // A simple script that allows the full profile to load even if flash is disabled.
- //-> Edit the "html" variable with your HTML, CSS and full profile text.
- //-> The "name" variable contains the full profile visitors username. (example) => 'Hello '+name+', welcome to my profile!'
- //-> Edit the "YoutubeSongID" variable with a youtube video ID to play background music in the full profile, or leave it blank.
- //-> Upload the code to https://pastebin.com/ and click "raw" after you uploaded it.
- // Paste <script src = "URL OF PASTE"></script> inside your mini.
- // By @Hardware
- //Initializes when the page is fully loaded
- window.onload = init;
- //Generates Anon number
- function AnonNum(min, max) {
- return Math.floor(Math.random() * (max - min) ) + min;
- }
- //Main
- function init(){
- //Gets document cookie
- var cookie = document.cookie;
- //Regex that gets the visitors username from the cookie
- try {
- var name = cookie.match("id.chatango.com=(.*?);")[1].charAt(0).toUpperCase() + cookie.match("id.chatango.com=(.*?);")[1].substr(1);
- }
- //Generates Anon name if the visitor isn't logged in
- catch(err) {
- var name = "Anon"+AnonNum(1000,9999).toString();
- }
- var YoutubeSongID = "NteaQzyK1ww";
- //Youtube player (Don't need to touch this) => loads at the end of html var
- var backgroundMusic = '<iframe width="0" height="0" frameborder="0" allow="autoplay" src="https://www.youtube.com/embed/'+YoutubeSongID+'?autoplay=1&mute=0"></iframe>';
- //HTML, CSS and profile text section
- var html = '<iframe title="" width="100%" height="100%" src="https://distracted-blackwell-9013e4.netlify.com/" frameborder="0" scrolling="no"></iframe>' + backgroundMusic
- //Writes the data to the page
- document.title = "Hello "+name+", sup?"
- document.getElementById(null);
- document.write(html);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement