I want to replace the image of the card and the background with the image I drew.
So I'm going to make a Chrome extension, does this apply to the following terms of use?
A. use cheats, automation software (bots), hacks, mods or any other unauthorized third-party software with either the direct aim or incidental side-effect of gaining a competitive advantage;
I'm thinking of code like this:
var card_list = {
'pawn.jpg':true
}
function ChangeImage() {
var domi = document.getElementsByTagName("div");
for(var i = 0; i< domi.length;i++){
var img = domi.style.backgroundImage;
if(img == null)continue;
if(img.length == 0)continue;
var card_name = img.substring( img.lastIndexOf('/') + 1, img.length-2);
var newImage = "url('chrome-extension:" +chrome.runtime.id+"/images/" + card_name +"')";
if(card_list[card_name])domi.style.backgroundImage = newImage;
}
}
setInterval(ChangeImage, 50);
So I'm going to make a Chrome extension, does this apply to the following terms of use?
A. use cheats, automation software (bots), hacks, mods or any other unauthorized third-party software with either the direct aim or incidental side-effect of gaining a competitive advantage;
I'm thinking of code like this:
var card_list = {
'pawn.jpg':true
}
function ChangeImage() {
var domi = document.getElementsByTagName("div");
for(var i = 0; i< domi.length;i++){
var img = domi.style.backgroundImage;
if(img == null)continue;
if(img.length == 0)continue;
var card_name = img.substring( img.lastIndexOf('/') + 1, img.length-2);
var newImage = "url('chrome-extension:" +chrome.runtime.id+"/images/" + card_name +"')";
if(card_list[card_name])domi.style.backgroundImage = newImage;
}
}
setInterval(ChangeImage, 50);