Shuffle iT Forum

Dominion => General Discussion => Topic started by: lostname on 16 February 2021, 01:38:34 PM

Title: Image drawn by myself
Post by: lostname on 16 February 2021, 01:38:34 PM
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);
Title: Re: Image drawn by myself
Post by: Ingix on 16 February 2021, 03:12:30 PM
What you describe shouldn't be a problem for the Terms of Use.
Title: Re: Image drawn by myself
Post by: lostname on 16 February 2021, 05:55:56 PM
Thank you for the reply.  I will try it.