Skip to content

Instantly share code, notes, and snippets.

@luckyshot
Last active November 4, 2022 18:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckyshot/afed0fb28d1cdf329620286372fbf177 to your computer and use it in GitHub Desktop.
Save luckyshot/afed0fb28d1cdf329620286372fbf177 to your computer and use it in GitHub Desktop.
Universal Paperclips Auto-bot code
/**
clearInterval(t);var t = setInterval(function(){run()}, 100);
*/
var run = function(){
// Make paperclip
// Clicks the 'Make paperclip' button, useful at the very beginning of the game
var wire = parseInt(document.querySelector('#wire').innerText);
if (wire > 0){
for (let index = 0; index < 100; index++) {
clipClick(1);
}
}
// Buy Wire
// Buys wire based on price, you will need to keep adapting this as the price increases
// if (
// (document.querySelector('#wireCost').innerText <= 14 && wire < 50)
// || (document.querySelector('#wireCost').innerText <= 16 && wire < 20)
// || (document.querySelector('#wireCost').innerText <= 20 && wire < 1)
// ){
// for (let index = 0; index < 100; index++) {
// buyWire();
// }
// }
// Marketing
// Increase Marketing level automatically whenever you have enough cash
if (document.querySelector('#btnExpandMarketing').disabled === false){
buyAds();
}
// Quantum Computing
// Automatically click at the right time
if (
parseFloat(document.querySelector('#qChip0').style.opacity)
+ parseFloat(document.querySelector('#qChip1').style.opacity)
+ parseFloat(document.querySelector('#qChip2').style.opacity)
+ parseFloat(document.querySelector('#qChip3').style.opacity)
+ parseFloat(document.querySelector('#qChip4').style.opacity)
+ parseFloat(document.querySelector('#qChip5').style.opacity)
+ parseFloat(document.querySelector('#qChip6').style.opacity)
+ parseFloat(document.querySelector('#qChip7').style.opacity)
+ parseFloat(document.querySelector('#qChip8').style.opacity)
+ parseFloat(document.querySelector('#qChip9').style.opacity)
> 0.05){
for (let index = 0; index < 500; index++) {
qComp();
}
}
// Tournament
// Automatically run tournaments
if (document.querySelector('#btnNewTournament').disabled === false) {
newTourney();
}
if (document.querySelector('#btnRunTournament').disabled === false) {
runTourney();
}
};
@luckyshot
Copy link
Author

Read before you use!

You will need to tweak the numbers and comment/uncomment sections as you progress in the game.

This code is meant to Help/Automate without cheating (i.e. make your life easier)

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