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();
- }
- //Youtube song ID
- var YoutubeSongID = "TFpZDoMSFl0";
- //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 = '<html><style>html {background-image: url("https://i.imgur.com/fAG6kaG.gif"); repeat fixed center;}'+
- '</style><style> html, body {height: 100%; width: 100% position: fixed; overflow: hidden;} '+
- 'img {position: fixed; bottom: 0; left: 0; height: 100% width: 100%;}'+
- '</style><title>Hey there nerds</title><body>'+
- '<p align ="center"><font color = "#FFFFFF" size = "9" face="Palatino Linotype"><style>body{font-size: 9; padding: 0}'+
- '@keyframes blink {0% {opacity: 0} 49%{opacity: 0} 50% {opacity: 1}}blink{animation: blink 1s infinite;}'+
- '</style>>> Hello '+name+', sup?<blink>_</blink></p><br>'+
- '</font><br><br><img src ="https://i.imgur.com/gvrK2cV.png"></img></body>'+
- '</html>'+backgroundMusic;
- //Writes the data to the page
- document.getElementById(null);
- document.write(html);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement