Login  |  Register

Author Topic: Image drawn by myself  (Read 323 times)

Offline lostname

  • Newbie
  • *
  • Posts: 2
    • View Profile
Image drawn by myself
« 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);

Offline Ingix

  • Global Moderator
  • *****
  • Posts: 2548
    • View Profile
Re: Image drawn by myself
« Reply #1 on: 16 February 2021, 03:12:30 PM »
What you describe shouldn't be a problem for the Terms of Use.

Offline lostname

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Image drawn by myself
« Reply #2 on: 16 February 2021, 05:55:56 PM »
Thank you for the reply.  I will try it.