This file contains 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
Found this little Galaxians game which is quite nice and hackable: | |
http://michal.biniek.pl/games/galaxian.html | |
~~~~~~~~ | |
var infiniteLivesBot = setInterval(function(){if(oLives.iLives<3){oLives.add();}},1000); | |
~~~~~~~~ | |
~~~~~~~~ | |
var autofireBot = setInterval(function(){MyShip.shoot();},200) |
This file contains 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
var links = document.querySelectorAll("a"); | |
var linkReport = []; | |
var linksChecked=0; | |
links.forEach(function(link){ | |
var reportLine = {url: link.getAttribute('href'), status:0, redirectedTo: "", message : "", element : link}; | |
linkReport.push(reportLine); | |
console.log("HEAD " + reportLine.url); |
This file contains 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
package com.seleniumsimplified.webdriver.drivers; | |
import com.seleniumsimplified.webdriver.manager.Driver; | |
import com.seleniumsimplified.webdriver.manager.ProxyPort; | |
import org.junit.BeforeClass; | |
import org.junit.Ignore; | |
import org.junit.Test; | |
import org.openqa.selenium.WebDriver; | |
//import org.openqa.selenium.firefox.MarionetteDriver; | |
import org.openqa.selenium.firefox.FirefoxDriver; |
This file contains 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
package com.seleniumsimplified.webdriver.drivers; | |
import org.junit.Test; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.firefox.FirefoxBinary; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.firefox.FirefoxOptions; | |
import org.openqa.selenium.firefox.FirefoxProfile; | |
import org.openqa.selenium.remote.DesiredCapabilities; |
This file contains 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
@Test | |
public void firefoxUseExtensions() throws IOException { | |
// ************************************************************************** | |
// profile is good for setting preferences and fiddling with browser settings | |
// ************************************************************************** | |
// Download the extension to a local folder | |
String s = File.separator; | |
String extensionPath = System.getProperty("user.dir") + |
This file contains 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
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |
This file contains 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
var xhttp = new XMLHttpRequest(); | |
xhttp.open("GET","https://bitbloxs.herokuapp.com/boxes?api_key=thisistheapikey"); | |
xhttp.onload = (e)=>{ | |
console.log(xhttp.status); | |
console.log(xhttp.responseText); | |
} | |
xhttp.send(null); | |
This file contains 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
// http://zzzscore.com/1to50/en | |
function clickAllSquares(){ | |
var clickedCount=0; | |
for(currentNum=1;currentNum<51;currentNum++){ | |
console.log("processing "+currentNum); | |
cells = document.querySelectorAll("div#grid div"); | |
for(var cellindex=0;cellindex<cells.length;cellindex++){ | |
var foundInt = parseInt(cells[cellindex].innerText); | |
if(foundInt==currentNum){ |
This file contains 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
// http://zzzscore.com/1to50/en | |
function clickAllSquares(){ | |
var clickedCount=0; | |
for(currentNum=1;currentNum<51;currentNum++){ | |
console.log("processing "+currentNum); | |
cells = document.querySelectorAll("div#grid div"); | |
for(var cellindex=0;cellindex<cells.length;cellindex++){ | |
var foundInt = parseInt(cells[cellindex].innerText); | |
if(foundInt==currentNum){ |
This file contains 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
// https://playtictactoe.org/ | |
function playGame(){ | |
var restart = document.querySelector("div.restart"); | |
if(restart.style.display=="block"){ | |
restart.click() | |
}else{ | |
var squares = document.querySelectorAll("div.square > div:not(.x):not(.o)"); | |
var item=Math.floor(Math.random()*squares.length) |