Halo 5 REQ Guide Bookmarklet

Size
3,993 Kb
Views
32,384

How do I make an halo 5 req guide bookmarklet?

This bookmarklet scans your inventory and identifies how many REQ packs are needed to complete your collection. It also calculates REQ points obtainable by selling items.. What is a halo 5 req guide bookmarklet? How do you make a halo 5 req guide bookmarklet? This script and codes were developed by Chris Wachtman on 17 October 2022, Monday.

Halo 5 REQ Guide Bookmarklet Previews

Halo 5 REQ Guide Bookmarklet - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Halo 5 REQ Guide Bookmarklet</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p class="note"></p>
<p>This bookmarklet scans your inventory and identifies how many REQ packs are needed to complete your collection. It also calculates REQ points obtainable by selling items.</p>
<a class="bookmarklet" href='javascript:var silver=0,gold=0,coll=0,surp=0;
req = function(id){	var noreq = ["Achilles","Athlon Champion","Helioskrill","Mark VI [Gen1]","Mark VI [Gen1] Scarred","Nightfall",	"All Square","Anchorite","Angels"+String.fromCharCode(39)+" Mark","Antelope","AR Start","Army","Arrow on Target","Assassin","Avian","Awake",	"Axiom","Beta Prime","Beta Recruit","Beta Star","Blue Team","Bolt","Builder","Bulltrue","Campfire","CAMS",	"Cascade Stronghold Technologies","Celestial","Chief"+String.fromCharCode(39)+"s Crest","Cognate","Cone"+String.fromCharCode(39)+"d","Confine","Confirmation",	"Covenant Signet","Cowboy Ninja","Crash","Cubicle","ECO","Elementary","Enlisted","Equilateral","Eye of the Beast",	"Falcon","Fireborn","Fireteam Crimson","Fireteam Osiris","Flaming Skull","Flip Mode","Forerunner Signet","Frontier",	"Great Hunt","Great Wheel","Grenadier","Ground Pound","Guardian","Halo Championship Series","Halo Channel","Hammer",	"Hand of the Didact","Hannibal Weapon Systems","Hastati","Headshot","Hunter Prey","Imperial","Implied","Incinerate",	"Invex","Iris","Isosceles","January 2016 Season","Jewel","Killer Bee","Kindred","Knot","Librarian","Links","Listener",	"Loading","Loupe","Magnum Opus","Mantis","Mantle","Marauder","Mark of the Hog","Matrix","Maw","Meteor","Mixer",	"Mushroom","Naded","Navy","Network","Nexus","Noble","Noise","Nucleus","ODST","ONI","Options","Orbit","Panda BR",	"Patch","Pinwheel","Pioneer","Pirate","Pivot","Platform","Prancer","Predator","Prime","Principle","Pyramid",	"Radioactive","Ratio","Reclaimer","Revolve","Rhino","Salient Sword","Scarab","Scorpion","Screw","Sentient","Signal",	"Slumber","Spartan League","Spartan Seal","Spartan-IV","Splinter","Stealth","Summit","Tag It","Teeth","Three Eyes",	"Traitor","Triad","Triarch","Unicorn","UNSC","Unworthy","Vanguard","Volatile","War"+String.fromCharCode(39)+"s Quintet","Warden","Warlord",	"Wasp","Watershed Division","Waves","Winged"];	return noreq.indexOf(id)==-1;
};
$(".req-collection .card button").each(function(){	if($(this).attr("data-have-owned")=="False" && req($(this).attr("data-name"))){	switch($(this).attr("data-rarity-type")){	case "0":	case "1":	case "2":	silver++;	break;	case "3":	case "4":	gold++;	break;	}	}	var count=$(this).attr("data-unused-count"),price=$(this).attr("data-sell-price");	coll+=count*price;	if(count>10){	surp+=(count-10)*price;	}
});
silver=Math.ceil(silver/2);
gold=Math.ceil(gold/2);
alert("Silver Packs to buy: "+silver+" Cost: "+silver*5000+
" rp\nGold Packs to buy: "+gold+" Cost: "+gold*10000+
" rp\nCollection value: "+coll+" rp\nSurplus Value: "+surp+
" rp\n\nRepeat for the Customization, Loadout, and Power&Vehicle pages."+
"\n\nCollection Value = req points obtainable by selling all items"+
"\nSurplus Value = req points obtainable by selling items of which you have more than 10"+
"\n\nFOR EFFICIENCY, FINISH BUYING SILVER PACKS BEFORE BUYING GOLD.");'>Halo 5 REQ Guide Bookmarklet</a>
<br>Directions:
<ol> <li>Drag the REQ Guide Bookmarklet into your bookmarks.</li> <li>Load your <a href="https://www.halowaypoint.com/en-us/games/halo-5-guardians/xbox-one/requisitions/categories/powerandvehicle" target="_blank">Halo Waypoint REQ page</a>.</li> <li>Click your REQ Guide bookmarklet.</li> <li>REQ Guide stats magically appear.</li> <li>Repeat for the Customization, Loadout, and Power&Vehicle pages.</li>
</ol>
<p>Alternatively, you can copy/paste this code into the browser console while on the Waypoint REQ page:</p>
<span class="code">
javascript:var silver=0,gold=0,coll=0,surp=0;
req = function(id){	var noreq = ["Achilles","Athlon Champion","Helioskrill","Mark VI [Gen1]","Mark VI [Gen1] Scarred","Nightfall",	"All Square","Anchorite","Angels"+String.fromCharCode(39)+" Mark","Antelope","AR Start","Army","Arrow on Target","Assassin","Avian","Awake",	"Axiom","Beta Prime","Beta Recruit","Beta Star","Blue Team","Bolt","Builder","Bulltrue","Campfire","CAMS",	"Cascade Stronghold Technologies","Celestial","Chief"+String.fromCharCode(39)+"s Crest","Cognate","Cone"+String.fromCharCode(39)+"d","Confine","Confirmation",	"Covenant Signet","Cowboy Ninja","Crash","Cubicle","ECO","Elementary","Enlisted","Equilateral","Eye of the Beast",	"Falcon","Fireborn","Fireteam Crimson","Fireteam Osiris","Flaming Skull","Flip Mode","Forerunner Signet","Frontier",	"Great Hunt","Great Wheel","Grenadier","Ground Pound","Guardian","Halo Championship Series","Halo Channel","Hammer",	"Hand of the Didact","Hannibal Weapon Systems","Hastati","Headshot","Hunter Prey","Imperial","Implied","Incinerate",	"Invex","Iris","Isosceles","January 2016 Season","Jewel","Killer Bee","Kindred","Knot","Librarian","Links","Listener",	"Loading","Loupe","Magnum Opus","Mantis","Mantle","Marauder","Mark of the Hog","Matrix","Maw","Meteor","Mixer",	"Mushroom","Naded","Navy","Network","Nexus","Noble","Noise","Nucleus","ODST","ONI","Options","Orbit","Panda BR",	"Patch","Pinwheel","Pioneer","Pirate","Pivot","Platform","Prancer","Predator","Prime","Principle","Pyramid",	"Radioactive","Ratio","Reclaimer","Revolve","Rhino","Salient Sword","Scarab","Scorpion","Screw","Sentient","Signal",	"Slumber","Spartan League","Spartan Seal","Spartan-IV","Splinter","Stealth","Summit","Tag It","Teeth","Three Eyes",	"Traitor","Triad","Triarch","Unicorn","UNSC","Unworthy","Vanguard","Volatile","War"+String.fromCharCode(39)+"s Quintet","Warden","Warlord",	"Wasp","Watershed Division","Waves","Winged"];	return noreq.indexOf(id)==-1;
};
$(".req-collection .card button").each(function(){	if($(this).attr("data-have-owned")=="False" && req($(this).attr("data-name"))){	switch($(this).attr("data-rarity-type")){	case "0":	case "1":	case "2":	silver++;	break;	case "3":	case "4":	gold++;	break;	}	}	var count=$(this).attr("data-unused-count"),price=$(this).attr("data-sell-price");	coll+=count*price;	if(count>10){	surp+=(count-10)*price;	}
});
silver=Math.ceil(silver/2);
gold=Math.ceil(gold/2);
alert("Silver Packs to buy: "+silver+" Cost: "+silver*5000+
" rp\nGold Packs to buy: "+gold+" Cost: "+gold*10000+
" rp\nCollection value: "+coll+" rp\nSurplus Value: "+surp+
" rp\n\nRepeat for the Customization, Loadout, and Power&Vehicle, pages."+
"\n\nCollection Value = req points obtainable by selling all items"+
"\nSurplus Value = req points obtainable by selling items of which you have more than 10"+
"\n\nFOR EFFICIENCY, FINISH BUYING SILVER PACKS BEFORE BUYING GOLD.");
</span> <script src="js/index.js"></script>
</body>
</html>

Halo 5 REQ Guide Bookmarklet - Script Codes CSS Codes

body{text-align: center;background-color: #619ec2;font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
color: #fff;
-webkit-font-smoothing: antialiased;
text-shadow: 0 1px 1px rgba(0,0,0,0.3);
max-width: 600px;margin:auto}
a{ color:rgba(0,0,0,0.25);
}
ol{text-align: left;max-width: 400px;margin:auto}
.bookmarklet,.code {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
border-radius: 4px;
font-size: 1.25em;
position: relative;
cursor: move;
color: #fff;
text-decoration: none;
background: rgba(0,0,0,0.25);
padding: 10px 20px 8px;
margin: 0 0 10px 0;
display: inline-block;
overflow-y: auto;
overflow-x: hidden;
}
.code{
cursor: initial; max-width: 560px; max-height: 100px;
text-align: left;
}
.note{ text-transform: uppercase;
}

Halo 5 REQ Guide Bookmarklet - Script Codes JS Codes

/*
Items not obtain via REQ packs:
*/
Halo 5 REQ Guide Bookmarklet - Script Codes
Halo 5 REQ Guide Bookmarklet - Script Codes
Home Page Home
Developer Chris Wachtman
Username cwacht
Uploaded October 17, 2022
Rating 3
Size 3,993 Kb
Views 32,384
Do you need developer help for Halo 5 REQ Guide Bookmarklet?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Chris Wachtman (cwacht) Script Codes
Create amazing art & images with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!