Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - lostname

#1
General Discussion / Re: Image drawn by myself
16 February 2021, 05:55:56 PM
Thank you for the reply.  I will try it.
#2
General Discussion / Image drawn by myself
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);