Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This script requre `cjs` extension for google chrome
- 1. Install cjs from chrome market https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
- 2. go to site http://www.ichumon.com/game_ctf.php after
- 3. click to cjs extension icon
- 4. Insert the code below into the field and click SAVE
- ** Then you can leave the tab or minimize the browser. The script will click on each flag every 30 seconds
- */
- // Here You can type your custom JavaScript...
- if(window.location.href === 'http://www.ichumon.com/game_ctf.php?action=flaghunt'){
- setTimeout(function(){
- var links = document.getElementsByTagName('a');
- for(var i=0; i< links.length; i++) {
- var link = links[i].getAttribute('href');
- if( Number(link.indexOf('checkflag')) >0 ) {
- window.localStorage.setItem('lastFlagLink', 'http://www.ichumon.com/game_ctf.php'+link);
- window.location.href=link;
- break;
- }
- }
- }, 28000)
- }
- else if (window.location.href === window.localStorage.getItem('lastFlagLink') )
- {
- window.location.href = 'http://www.ichumon.com/game_ctf.php?action=flaghunt';
- }else{
- console.log(window.localStorage.getItem('lastFlagLink'));
- }
Add Comment
Please, Sign In to add comment