Last active
August 17, 2021 02:22
-
-
Save ipisboomz/518d97ba0d75392402b346d32bd0c503 to your computer and use it in GitHub Desktop.
DDTank Ruler 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Read me How to use | |
| * 1. open ddtank | |
| * 2. right click on any part of the page not the game itself | |
| * 3. click on inspect element menu | |
| * 4. go to console ang copy-paste this code and press enter | |
| * TIPS: This one is attached at the bottom, for overlay check https://gist.github.com/ipisboomz/3736ac7ace7f14148dffb4add5455e04 | |
| */ | |
| document.getElementsByTagName("object")[0].parentElement.appendChild((()=>{ | |
| document.getElementsByTagName("object")[0].parentElement.style.position = 'relative'; | |
| const ruller = document.createElement('div'); | |
| ruller.innerHTML = new Array(10).fill('').map((x,i)=>'<div style="border-right: 2px solid #000; flex: 1; text-align: right;">'+(i+1)+'</div>').join(''); | |
| ruller.style = "height: 20px; width: 100%; top: 600; background: #FFF; left: 0; position: absolute;z-index: 1; display: flex; flex-direction: row; border-bottom: 2px solid #000;"; | |
| return ruller; | |
| })()); | |
| alert("Ruler Active"); |
Author
ipisboomz
commented
May 6, 2020

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