New
Jun 27, 2020 2:54 PM
#51
@Only_Brad Actually on the summary stats script there's only one line with replace(",","")); Should the same line be changed on your Days to Hours script? Thanks for the update |
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Jun 27, 2020 5:26 PM
#52
hacker09 said: @Only_Brad Actually on the summary stats script there's only one line with replace(",","")); Should the same line be changed on your Days to Hours script? Thanks for the update It's safe to change it for all scripts. I don't remember where I used them exactly, I think Summary and Days to Hours are the only one. The problem with replace(",","") is that it will change "1,000,005" to "1000,005". parseInt("1000,005") will return 1000 because parseInt will stop parsing after it sees a non digit character. As you can see, this problem will only occur if there are more than 1 comma in the number, that's why it's safer to use replace(/,/g,"") |
Only_BradJun 27, 2020 5:43 PM
Jun 29, 2020 8:38 PM
#53
@Only_Brad I'm not sure why,but for some animes the script "total duration" doesn't work for some animes. This is one example https://myanimelist.net/anime/324 I tried to do what I said earlier,but I was just able to do the duration button BEFORE: AFTER: Here is the script to have Better Buttons To Edit Anime Information https://greasyfork.org/en/scripts/407729-better-buttons-to-edit-anime-information |
hacker09Jul 25, 2020 2:06 PM
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Jun 29, 2020 9:26 PM
#54
hacker09 said: @Only_Brad I'm not sure why,but for some animes the script "total duration" doesn't work for some animes. This is one example https://myanimelist.net/anime/324 I tried to do what I said arlier,but I couldn't do anything That's because the script isn't running in the first place. this is the current regex that is used by Tampermonkey to check where to apply the script // @include /^https:\/\/myanimelist\.net\/anime\/[\d]+\/.* It checks for /anime/[a number]/{something here} For some reason, the {something here} is optional on MAL. The link you provided doesn't have the {something here}, so Tampermonkey does not apply the script to the page because of the URL. Instead, it should be like this // @include /^https:\/\/myanimelist\.net\/anime\/[\d]+(\/.*)?/ now It will check /anime/[a number] or /anime/[a number]/{anime name}. I will update the script. |
Jun 30, 2020 9:03 AM
#55
@Only_Brad Thank you so much again! |
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Jul 2, 2020 10:53 AM
#56
Another Script I did Add End And Start Dates In 1 Click And Auto Submit! + Reset Dates/All Buttons https://greasyfork.org/en/scripts/407730-add-end-and-start-dates-in-1-click-reset-dates-all-buttons BEFORE: AFTER: |
hacker09Jul 25, 2020 2:07 PM
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Jul 6, 2020 11:57 AM
#57
Tampermonkey Script That "Remove Anything Related To Manga On MAL And On Anime.Plus" https://greasyfork.org/en/scripts/407732-remove-anything-related-to-manga-on-mal-and-on-anime-plus You Can Do Almost The Same Using These https://pastebin.com/09JnfmuP Ublock Origin Filters (Don't Use Both At The Same Time)
@Korishi Maybe I ended up going too far? |
hacker09Jul 25, 2020 2:23 PM
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Jul 6, 2020 1:03 PM
#58
@hacker09 you've gone mad with power it seems. you're like the anime hitler where all manga must be eliminated lmao I know on PocketMAL you can set it to automatically set the current date when you set an anime as watching |
removed-userJul 6, 2020 1:09 PM
Jul 6, 2020 1:18 PM
#59
Korishi said: @hacker09 you've gone mad with power it seems. you're like the anime hitler where all manga must be eliminated lmao I know on PocketMAL you can set it to automatically set the current date when you set an anime as watching hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha Mal should have that same function,maybe I will keep studying and do that one day.I've found lot's of threads and users wanting this.They said that MAL does have that function to auto add start/end dates,but only if you set the episode 1 all the way to the last episode of the anime (I didn't try that out so I can't confirm yet). But I still believe that MAL should detects when the user selects "Watching" and "Completed", then MAL could set the start/end dates that way too. Not a lot of people know that MAL "already have" that function if you always update the episode number that you are watching. I wasn't able to do these codes yet,but this one I did,is kind of similar and helps too https://myanimelist.net/forum/?topicid=1846937&show=50#msg60125424 |
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Jul 25, 2020 3:23 PM
#60
@Only_Brad I've uploaded your scripts to greasyfork,I can erase all of them if you want. When/if you update something let me know so I can update it there too. Thank you so much for everything you did. https://greasyfork.org/en/scripts/407733-average-reviews-calculator-for-mal https://greasyfork.org/en/scripts/407736-total-and-remaning-duration-of-any-animes-on-mal https://greasyfork.org/en/scripts/407737-mal-summary-stats-with-percentages https://greasyfork.org/en/scripts/407739-mal-profile-stats-with-percentages-hours |
hacker09Sep 27, 2020 6:23 AM
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Feb 23, 2021 12:14 PM
#61
hacker09 said: Hey, thanks for the scripts. Didn't know where I should ask about this but about copying entry title, when you're on a manga page and want to copy the title, if the manga title have an English name, the script copies both romaji and English titles and if it's possible I want you to fix that...@Only_Brad Thank you so much. I'm the one that made that html.house link. I've finished The TamperMonkey Script "Search for Live-Actions\Doramas + All Related Entries + Correct Watch Order + Copy Entry Title" https://greasyfork.org/en/scripts/407727-search-for-live-actions-doramas-all-related-entries-correct-watch-order-copy-entry-title/ I've updated the script and now,there's a button that can find all related MAL entries for any animes, and also show the correct watch order for any animes on MAL! Another tampermonkey script that I did https://myanimelist.net/forum/?topicid=1846937&show=50#msg60108198 |
Feb 23, 2021 12:18 PM
#62
@mhkr Anywhere is okay... Sure I will check that. Btw can you please send me some links were this bug is happening to you? |
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Feb 23, 2021 12:33 PM
#63
hacker09 said: OK, afaik any manga that have "English name" it copies like that and I'm just putting the popular titles here:@mhkr Anywhere is okay... Sure I will check that. Btw can you please send me some links were this bug is happening to you? https://myanimelist.net/manga/23390/Shingeki_no_Kyojin It copies like this: "Shingeki no KyojinAttack on Titan" https://myanimelist.net/manga/75989/Boku_no_Hero_Academia Boku no Hero AcademiaMy Hero Academia Even titles like OPM where the romaji and English titles are slightly different it copies both and it's like this: "One Punch-ManOne-Punch Man" I can give you more examples even |
Feb 23, 2021 1:36 PM
#64
@mhkr Thanks! Bug fixed! |
Click here to see My Tampermonkey Scripts For MAL If you like my work, please consider supporting it! Cryptos / Patreon / Ko-Fi / BuyMeaCoffee https://cyber-sec0.github.io |
Sep 25, 2021 6:16 AM
#65
Only_Brad said: // ==UserScript== // @name Days to Hours and stats in % // @namespace http://tampermonkey.net/ // @version 0.1 // @description Days to Hours and stats in % // @author Me // @match https://myanimelist.net/profile/* // @run-at document-end // @grant GM_addStyle // ==/UserScript== (function(){ GM_addStyle(".profile .user-statistics .stats-status{width: 200px;}"); const time = document.querySelector(".di-tc.al.pl8.fs12.fw-b"), timeType = time.querySelector("span"), timeValueNode = timeType.nextSibling, timeValue = parseFloat(timeValueNode.textContent.replace(/,/g,"")); timeType.textContent = "Hours: "; timeValueNode.textContent = (timeValue * 24).toFixed(1); const total = parseInt(document.querySelector(".stats-data.fl-r span:nth-child(2)").textContent.replace(/,/g,"")); const [watching,completed,onHold,dropped,planToWatch] = document.querySelectorAll(".di-ib.fl-r.lh10"); [watching,completed,onHold,dropped,planToWatch].forEach(addPercentage); function getPercentage(node) { const value = parseInt(node.textContent.replace(/,/g,"")); if(total === 0) return "0.00"; return (value*100/total).toFixed(2); } function addPercentage(node) { const percentage = getPercentage(node); node.textContent = `${node.textContent} (${percentage}%)`; } })() Old post but how could I make this show both days and hours instead of only hours? Also, making it work for manga too |
Sep 26, 2021 5:52 AM
#66
ValkyriaKage said: Only_Brad said: // ==UserScript== // @name Days to Hours and stats in % // @namespace http://tampermonkey.net/ // @version 0.1 // @description Days to Hours and stats in % // @author Me // @match https://myanimelist.net/profile/* // @run-at document-end // @grant GM_addStyle // ==/UserScript== (function(){ GM_addStyle(".profile .user-statistics .stats-status{width: 200px;}"); const time = document.querySelector(".di-tc.al.pl8.fs12.fw-b"), timeType = time.querySelector("span"), timeValueNode = timeType.nextSibling, timeValue = parseFloat(timeValueNode.textContent.replace(/,/g,"")); timeType.textContent = "Hours: "; timeValueNode.textContent = (timeValue * 24).toFixed(1); const total = parseInt(document.querySelector(".stats-data.fl-r span:nth-child(2)").textContent.replace(/,/g,"")); const [watching,completed,onHold,dropped,planToWatch] = document.querySelectorAll(".di-ib.fl-r.lh10"); [watching,completed,onHold,dropped,planToWatch].forEach(addPercentage); function getPercentage(node) { const value = parseInt(node.textContent.replace(/,/g,"")); if(total === 0) return "0.00"; return (value*100/total).toFixed(2); } function addPercentage(node) { const percentage = getPercentage(node); node.textContent = `${node.textContent} (${percentage}%)`; } })() Old post but how could I make this show both days and hours instead of only hours? Also, making it work for manga too Here's the latest version that shows both days and hours for both anime and manga // ==UserScript== // @name Days to Hours and stats in % // @namespace http://tampermonkey.net/ // @version 0.2 // @description Adds days and stats in % for both anime and manga // @author Me // @match https://myanimelist.net/profile/* // @run-at document-end // @grant GM_addStyle // ==/UserScript== (function(){ main(); function main() { GM_addStyle(".profile .user-statistics .stats-status{width: 200px;}"); const [animeDays,mangaDays] = document.querySelectorAll(".di-tc.al.pl8.fs12.fw-b"); showHours(animeDays); showHours(mangaDays); const {animeTotal,mangaTotal} = getTotals(); const {animeStats, mangaStats} = getStats(); showPercentage(animeStats,animeTotal); showPercentage(mangaStats,mangaTotal); } function showHours(days) { const hours = days.cloneNode(true); const hoursText = hours.querySelector("span"); const hoursValueNode = hoursText.nextSibling; const hoursValue = parseFloat(hoursValueNode.textContent.replace(/,/g,"")); hoursText.textContent = "Hours: "; hoursValueNode.textContent = (hoursValue * 24).toFixed(1); days.insertAdjacentElement("afterend",hours); } function getTotals() { const [animeTotalElement,,,mangaTotalElement] = document.querySelectorAll(".stats-data.fl-r span:nth-child(2)"); const totals = [animeTotalElement,mangaTotalElement]; const [animeTotal,mangaTotal] = totals.map(total => parseInt(total.textContent.replace(/,/g,""))); return { animeTotal,mangaTotal }; } function getStats() { const stats = [...document.querySelectorAll(".di-ib.fl-r.lh10")]; const animeStats = stats.slice(0,5); const mangaStats = stats.slice(5); return { animeStats, mangaStats }; } function showPercentage(stats,total) { const [watching,completed,onHold,dropped,planToWatch] = stats; [watching,completed,onHold,dropped,planToWatch].forEach(node => addPercentage(node,total)); } function addPercentage(node,total) { const value = parseInt(node.textContent.replace(/,/g,"")); let percentage; if(total === 0) { percentage = "0.00"; } else { percentage = (value*100/total).toFixed(2); } node.textContent = `${node.textContent} (${percentage}%)`; } })(); |
Sep 26, 2021 6:41 AM
#67
Only_Brad said: ValkyriaKage said: Only_Brad said: // ==UserScript== // @name Days to Hours and stats in % // @namespace http://tampermonkey.net/ // @version 0.1 // @description Days to Hours and stats in % // @author Me // @match https://myanimelist.net/profile/* // @run-at document-end // @grant GM_addStyle // ==/UserScript== (function(){ GM_addStyle(".profile .user-statistics .stats-status{width: 200px;}"); const time = document.querySelector(".di-tc.al.pl8.fs12.fw-b"), timeType = time.querySelector("span"), timeValueNode = timeType.nextSibling, timeValue = parseFloat(timeValueNode.textContent.replace(/,/g,"")); timeType.textContent = "Hours: "; timeValueNode.textContent = (timeValue * 24).toFixed(1); const total = parseInt(document.querySelector(".stats-data.fl-r span:nth-child(2)").textContent.replace(/,/g,"")); const [watching,completed,onHold,dropped,planToWatch] = document.querySelectorAll(".di-ib.fl-r.lh10"); [watching,completed,onHold,dropped,planToWatch].forEach(addPercentage); function getPercentage(node) { const value = parseInt(node.textContent.replace(/,/g,"")); if(total === 0) return "0.00"; return (value*100/total).toFixed(2); } function addPercentage(node) { const percentage = getPercentage(node); node.textContent = `${node.textContent} (${percentage}%)`; } })() Old post but how could I make this show both days and hours instead of only hours? Also, making it work for manga too Here's the latest version that shows both days and hours for both anime and manga // ==UserScript== // @name Days to Hours and stats in % // @namespace http://tampermonkey.net/ // @version 0.2 // @description Adds days and stats in % for both anime and manga // @author Me // @match https://myanimelist.net/profile/* // @run-at document-end // @grant GM_addStyle // ==/UserScript== (function(){ main(); function main() { GM_addStyle(".profile .user-statistics .stats-status{width: 200px;}"); const [animeDays,mangaDays] = document.querySelectorAll(".di-tc.al.pl8.fs12.fw-b"); showHours(animeDays); showHours(mangaDays); const {animeTotal,mangaTotal} = getTotals(); const {animeStats, mangaStats} = getStats(); showPercentage(animeStats,animeTotal); showPercentage(mangaStats,mangaTotal); } function showHours(days) { const hours = days.cloneNode(true); const hoursText = hours.querySelector("span"); const hoursValueNode = hoursText.nextSibling; const hoursValue = parseFloat(hoursValueNode.textContent.replace(/,/g,"")); hoursText.textContent = "Hours: "; hoursValueNode.textContent = (hoursValue * 24).toFixed(1); days.insertAdjacentElement("afterend",hours); } function getTotals() { const [animeTotalElement,,,mangaTotalElement] = document.querySelectorAll(".stats-data.fl-r span:nth-child(2)"); const totals = [animeTotalElement,mangaTotalElement]; const [animeTotal,mangaTotal] = totals.map(total => parseInt(total.textContent.replace(/,/g,""))); return { animeTotal,mangaTotal }; } function getStats() { const stats = [...document.querySelectorAll(".di-ib.fl-r.lh10")]; const animeStats = stats.slice(0,5); const mangaStats = stats.slice(5); return { animeStats, mangaStats }; } function showPercentage(stats,total) { const [watching,completed,onHold,dropped,planToWatch] = stats; [watching,completed,onHold,dropped,planToWatch].forEach(node => addPercentage(node,total)); } function addPercentage(node,total) { const value = parseInt(node.textContent.replace(/,/g,"")); let percentage; if(total === 0) { percentage = "0.00"; } else { percentage = (value*100/total).toFixed(2); } node.textContent = `${node.textContent} (${percentage}%)`; } })(); Thanks a lot! It's exactly what I was looking for |
More topics from this board
» What is your opinion about Chinese writing in video-games?Shizuna - Sep 7 |
10 |
by Nette
»»
6 hours ago |
|
» How cheap are fake pokémon cards...nhiudv - 8 hours ago |
0 |
by nhiudv
»»
8 hours ago |
|
» Have you ever had frustrating experiences with game crashes?fleurbleue - Yesterday |
7 |
by Shishio-kun
»»
8 hours ago |
|
» Is There Any game that's you're looking forward to getting ?VabbingSips - Aug 9 |
37 |
by lucjan
»»
9 hours ago |
|
» what's your opinion on speedrunning video games? Have you ever attempted to do a speedrun?TheBlockernator - Aug 31 |
22 |
by Retro8bit
»»
11 hours ago |