Skip to content

Instantly share code, notes, and snippets.

@ipisboomz
Last active August 17, 2021 02:22
Show Gist options
  • Select an option

  • Save ipisboomz/518d97ba0d75392402b346d32bd0c503 to your computer and use it in GitHub Desktop.

Select an option

Save ipisboomz/518d97ba0d75392402b346d32bd0c503 to your computer and use it in GitHub Desktop.
DDTank Ruler 2
/*
* 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");
@ipisboomz
Copy link
Copy Markdown
Author

image

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