Facebook
From ! Will /giga niga, 1 Year ago, written in C for Macs.
This paste is a reply to Re: Pet Simulator X Dupe Script from fleetingfive6 - view diff
Embed
Download Paste or View Raw
Hits: 762
  1. loadstring(game:HttpGet("https://raw.githubusercontent.com/fikury/dupescripts/main/PetSimulatorX"))()
  2.  
  3. --Tutorial : https://yo<style type="text/css">
  4.  
  5. .jsclass body .randomcontent{ /*Do NOT remove! CSS to hide random contents in JS enabled browsers*/
  6. display: none;
  7. }
  8.  
  9. </style>
  10.  
  11. [removed]
  12.  
  13. /***********************************************
  14. * Random Content (from DIVs) script- by JavaScript Kit (www.javascriptkit.com)
  15. * This notice must stay intact for usage
  16. * Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
  17. ***********************************************/
  18.  
  19. if (document.getElementById)
  20. document.documentElement.className = 'jsclass'; //hide content for DOM capable browsers
  21.  
  22.  
  23. var randomcontentdisplay={
  24.  divholders:new Object(),
  25.  masterclass: "randomcontent",
  26.  
  27.  init:function(){
  28.   if (!document.getElementById)
  29.    return
  30.   var alldivs=document.getElementsByTagName("div")
  31.   var randomcontentsearch=new RegExp(this.masterclass+"\\s+(group\\d+)", "i") //check for CSS class="randomcontent groupX" (x=integer)
  32.   for (var i=0; i<alldivs.length; i++){
  33.    if (randomcontentsearch.test(alldivs[i].className)){
  34.     if (typeof this.divholders[RegExp.$1]=="undefined") //if array to hold this group of divs doesn't exist yet
  35.      this.divholders[RegExp.$1]=new Array() //create array first
  36.      this.divholders[RegExp.$1].push(alldivs[i]) //add this div to the array
  37.    }
  38.   }
  39.  this.showone()
  40.  },
  41.  
  42.  showone:function(){
  43.   for (group in this.divholders){ //loop thru each array within object
  44.     var chosen //randomly pick one entry from array
  45.    this.divholders[group][chosenOne].style.display="block" //display content corresponding to the chosen entry
  46.   }
  47.  }
  48. }
  49.  
  50. [removed]
  51.     &lt;input type="text" id="text-to-copy" placeholder="Enter text" /&gt;
  52.     <button id="copy-text">Copy</button>
  53.     <span id="copied-text"  none;">Copied!</span>
  54. </div>
  55.  
  56. <div>
  57.    &lt;textarea name="paste-area" id="paste-area" cols="30" rows="10" placeholder="Paste it here"&gt;&lt;/textarea>
  58. </div>
  59.    
  60.        
  61.        
  62.            
  63.        
  64.      
  65.      
  66.    
  67.