Conversation
|
I don't really like that this module is using an external API. This is not a ML model and can be calculated internally |
Hi @minj. |
|
Hi @minj. Good afternoon. Did you see MaxDareDevil's justification for using an API? You could see the plugin code? |
|
Hi, I just renamed the account name here to be the same used at HT. |
minj
left a comment
There was a problem hiding this comment.
On the whole, OK, minor improvements necessary.
Let me know, if you will be addressing my comments yourself.
Alternatively, GitHub now has a feature to allow access for the repo owner (i.e. me) to push into a PR branch on the fork (i.e. your repo)
content/foxtrick.properties
Outdated
|
|
||
| # MaxTools | ||
| module.Maxtools.desc=Show last match U20/U21/Senior | ||
| module.Maxtools.RomanNumberEdition.desc=Use Roman numerals in the championship edition |
content/foxtrick.properties
Outdated
| module.Maxtools.desc=Show last match U20/U21/Senior | ||
| module.Maxtools.RomanNumberEdition.desc=Use Roman numerals in the championship edition | ||
| module.Maxtools.YouthPlayers.desc=Show last match U20/U21/Senior in the Youth Player Details page. | ||
| module.Maxtools.SeniorPlayers.desc=Show last match U20/U21/Senior in the Senior Player Details page. |
content/foxtrick.properties
Outdated
| # %3 = phase, e.g. CC | ||
| # %4 = WC number, e.g. XIV | ||
| # %5 = MaxTools.match | ||
| MaxTools.templateShortWithoutTable=%1: %2 - %3 %4 - %5 No newline at end of file |
| //console.log('chegou aqui'); | ||
| let lang = Foxtrick.Prefs.getString('htLanguage'); | ||
| //let prefix = 'http://www.fantamondi.it/HTMS/index.php' + | ||
| // `?page=htmspoints&lang=${lang}&action=calc`; |
| let lang = Foxtrick.Prefs.getString('htLanguage'); | ||
| //let prefix = 'http://www.fantamondi.it/HTMS/index.php' + | ||
| // `?page=htmspoints&lang=${lang}&action=calc`; | ||
| let prefix = 'https://ht-mt.org/nt/perfect-age'; |
| else if (isPlayersPage || isYouthPlayersPage) | ||
| module.runPlayerList(doc); | ||
| else if (isTransferResultsPage) | ||
| module.runTransferList(doc); |
| container.appendChild(getLink(player.age.years, player.age.days)); | ||
| container.appendChild(doc.createTextNode(' ')); | ||
|
|
||
| champsList.forEach(function (championship) { |
There was a problem hiding this comment.
this block also repeats itself => extract and reuse
| <script type="application/x-javascript" src="./shortcuts-and-tweaks/transfer-search-filters.js"></script> | ||
| <script type="application/x-javascript" src="./shortcuts-and-tweaks/transfer-search-result-filters.js"></script> | ||
| <!-- end categorized modules --> | ||
|
|
There was a problem hiding this comment.
this file (and others) should not be edited manually, we have module-update.py for it
| pref("extensions.foxtrick.prefs.module.MatchWeather.Irl.enabled", true); | ||
| pref("extensions.foxtrick.prefs.module.Maxtools.enabled", true); | ||
| pref("extensions.foxtrick.prefs.module.Maxtools.RomanNumberEdition.enabled", true); | ||
| pref("extensions.foxtrick.prefs.module.Maxtools.YouthPlayers.enabled", true); |
There was a problem hiding this comment.
valid-ids should also be updated, for now
| "http://www.fantamondi.it/*", | ||
| "http://pastebin.com/api/*" | ||
| "http://pastebin.com/api/*", | ||
| "https://ht-mt.org/*" |
There was a problem hiding this comment.
have you considered using CORS headers instead?
|
Apologies for the delay. I was not in a good place mentally for weeks. |
|
@kauefelipe I am not exactly sure, what you've meant here. Btw, I'll ask for a CHPP feature to confirm this integration |
|
Are you still interested in working on this? I would specifically like to see these:
|
|
Hello minj. I was on vacation last month and I couldn't get anything because I spent a lot of time traveling. I will try to make adjustments in the next few days. |
|
@minj , I made some of the adjustments you asked for. I'm new to Git and I'm still learning. I gave you permission in my repository if you want to make any adjustments directly. |
|
Alright I hope to look at it this week but I can't make promises |
Module to show last match U20/U21/Senior