New
Jul 29, 2022 8:26 PM
#1
| https://greasyfork.org/en/scripts/448650 Enjoy! |
| 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 29, 2022 10:18 PM
#2
| any plans on adding forum topics or posts as well? |
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Jul 29, 2022 10:33 PM
#3
| @ShaggyZE Yes... for forum topics, posts won't work on the jikan api |
| 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 29, 2022 10:42 PM
#4
yea, I know, you'll have to fetch the links determine if it's a forum topic or post and query for the span title. |
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Jul 29, 2022 10:44 PM
#5
| @ShaggyZE MAL dislikes network requests, so wouldn't be a good idea to directly fetch a mal topic link |
| 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 29, 2022 10:50 PM
#6
hacker09 said: @ShaggyZE MAL dislikes network requests, so wouldn't be a good idea to directly fetch a mal topic link yea, I do it all the time in alot of my scripts, so I don't worry about them complaining, MAL has a bot prevention submit button and I usually add 3 seconds delay between requests anyway, plus I guarantee it takes up less bandwidth than google spiders indexing their pages, if thousands of people were using it at the same time then that's a different story in which case their devs or admins can start temp banning ip#'s if it's excessive. |
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Jul 29, 2022 10:54 PM
#7
| @ShaggyZE I also don't worry about them complaining either, I just hate their bot prevention submit button. I get that a lot anytime I open or do 40+ requests on any direct MAL urls, so I don't or at least avoid directly fetching mal for that reason. There's no point in having a script doing amazing things very slowly or making using have to wait or click on that button etc... |
| 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 29, 2022 10:57 PM
#8
hacker09 said: @ShaggyZE I also don't worry about them complaining either, I just hate their bot prevention submit button. I get that a lot anytime I open or do 40+ requests on any direct MAL urls, so I don't or at least avoid directly fetching mal for that reason. There's no point in having a script doing amazing things very slowly or making using have to wait or click on that button etc... that's true, though I usually have to wait longer for jikan requests to go through properly so not a fan of it either, so I just have the script click the button. |
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Jul 29, 2022 11:06 PM
#9
| @ShaggyZE I prefer adding a delay on jikan than adding on Mal urls. Yeah, in a few cases clicking on the btn works, but if the fetches are automatic then it can't be performed. My script malfunction helps me a lot on those times |
| 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 31, 2022 2:23 PM
#10
| @ShaggyZE Actually I just noticed that jikan only kinda works great with manga or anime topics, so I sadly won't add that topics feature |
| 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 31, 2022 2:43 PM
#11
| @hacker09 okay, no worries, I might mess around with it when I get bored. |
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Jul 31, 2022 2:52 PM
#12
| @ShaggyZE I was going to try that too, but after seeing that jikan doesn't support that I gave up hah Well, let me know if you find anything helpful, then I will work to make my script support it too. |
| 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 |
Aug 7, 2022 1:05 PM
#13
| nice update, I didn't have enough time to play around with it lol, but I wouldn't have thought of using xmlhttprequest or mal api v2 it's working almost as @Remocracy wanted in https://myanimelist.net/forum/?topicid=2028212#msg66801368 except for the post (#37) bit it works for some but not others and I noticed it adds " to the end of some of the urls. |
ShaggyZEAug 7, 2022 1:16 PM
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Aug 7, 2022 1:16 PM
#14
ShaggyZE said: I do see the post bit in your comment here, although this might be only because of it being the first post.nice update, I didn't have enough time to play around with it lol, but I wouldn't have thought of using xmlhttprequest or mal api v2 it's working almost as @Remocracy wanted in https://myanimelist.net/forum/?topicid=2028212#msg66801368 except for the post (#37) bit it works for some but not others and I noticed it adds " to some of the end of the urls. Test URL: https://myanimelist.net/forum/?topicid=2028212#msg66805094 |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 1:19 PM
#15
Remocracy said: ShaggyZE said: I do see the post bit in your comment here, although this might be only because of it being the first post.nice update, I didn't have enough time to play around with it lol, but I wouldn't have thought of using xmlhttprequest or mal api v2 it's working almost as @Remocracy wanted in https://myanimelist.net/forum/?topicid=2028212#msg66801368 except for the post (#37) bit it works for some but not others and I noticed it adds " to some of the end of the urls. Test URL: https://myanimelist.net/forum/?topicid=2028212#msg66805094 it's working in the post you just made too, but not in your suggestions thread which is weird, but I'm sure hacker09 will figure it out. Edit My guess is because you quoted the url which hacker09 didn't account for and most won't do so it should be fine. Test URL: "https://myanimelist.net/forum/?topicid=2028212#msg66805094" |
ShaggyZEAug 7, 2022 1:26 PM
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Aug 7, 2022 1:22 PM
#16
OK, I've tried it out a bunch and here are some of my suggestions:
|
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 1:25 PM
#17
| @ShaggyZE I've never seen yet " added to the end of some any urls... As for the posts (#37) number I said in the script page that it only works for the first 100 posts or 2 pages, if a comment is after that the only the topic title will be added. Fetching all topic pages would make the script take forever to work in the whole page, so it's pointless. @Remocracy As for the posts (#37) number I said in the script page that it only works for the first 100 posts or 2 pages, if a comment is after that the only the topic title will be added. Fetching all topic pages would make the script take forever to work in the whole page, so it's pointless. |
| 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 |
Aug 7, 2022 1:28 PM
#18
| @Remocracy Oh that's true I forgot about that. I guess I could do it but I'm not sure I will make a map anytime soon. So, do you also want title (moreinfo) etc? I think this is a bit pointless though but I can easily do that... 3 - Yeah I could do that, but it would be a bit complex and time taking. Not sure if I want to make the script translate your links to bbcode with the title instead of the full url, before a user posts a full url using the script |
| 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 |
Aug 7, 2022 1:29 PM
#19
| @hacker09 it happens when you surround the url like "https://myanimelist.net/forum/?topicid=2033985#msg67102551" which I explained most won't do like Remocracy did https://myanimelist.net/forum/?topicid=2028212#msg66801368 so it should be fine. and yea I noticed limit=100, that's more than enough. |
ShaggyZEAug 7, 2022 1:33 PM
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Aug 7, 2022 1:33 PM
#20
| @ShaggyZE Oh, I see now what you mean. That doesn't look that bad and it still works, so I guess it's okay... |
| 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 |
Aug 7, 2022 1:34 PM
#21
hacker09 said: @ShaggyZE I've never seen yet " added to the end of some any urls... As for the posts (#37) number I said in the script page that it only works for the first 100 posts or 2 pages, if a comment is after that the only the topic title will be added. Fetching all topic pages would make the script take forever to work in the whole page, so it's pointless. @Remocracy As for the posts (#37) number I said in the script page that it only works for the first 100 posts or 2 pages, if a comment is after that the only the topic title will be added. Fetching all topic pages would make the script take forever to work in the whole page, so it's pointless. I see you found out the same thing. It's actually a bug in the MAL parser for URLs that seems to treat quotes in the URL. Frankly, I'm surprised it works at all. Also, for the post number thing, you can probably use the capability https://myanimelist.net/forum/message/<id>?goto=topic |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 1:35 PM
#22
| @ShaggyZE It does not work for (#37)" on his topic, because 37 does not exist with that ID on that topic any longer. |
| 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 |
Aug 7, 2022 1:36 PM
#23
| @Remocracy Yeah, I've seen someone create a topic about that bug recently, so I was aware of it. Although urls are opened with any symbols in the end, they still work, so it's not a bug that needs their attention I think. |
| 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 |
Aug 7, 2022 1:37 PM
#24
| @Remocracy I've no idea about what you tried to say about "https://myanimelist.net/forum/message/<id>?goto=topic" |
| 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 |
Aug 7, 2022 1:39 PM
#25
hacker09 said: I mean I get that it's pointless but those two URLs posted side-by-side would look identical without it. Although nobody links to these sections anyways so there might be no need.@Remocracy Oh that's true I forgot about that. I guess I could do it but I'm not sure I will make a map anytime soon. So, do you also want title (moreinfo) etc? I think this is a bit pointless though but I can easily do that... 3 - Yeah I could do that, but it would be a bit complex and time taking. Not sure if I want to make the script translate your links to bbcode with the title instead of the full url, before a user posts a full url using the script And for #3, I'm confused about what you mean by "Not sure if I want to make the script translate your links to bbcode with the title instead of the full url, before a user posts a full url using the script". I'm saying to make it a button, so ideally what happens is that once the user is done with their post then they format it. Alternatively you could make it so that the URL has to be surrounded by spaces or start at the beginning/end of the post and have whitespace on the other side. I could implement this myself when you're done with the other features. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 1:42 PM
#26
hacker09 said: This gives us an offset we can use. For example, post 59181574 is #1001 on the thread it belongs to. Normally your code wouldn't find that, but with the URL https://myanimelist.net/forum/message/59181574?goto=topic it goes to https://myanimelist.net/forum/?topicid=1824703&show=1000#msg59181574 which gives us the offset we need (1000). Also in any case, any post that isn't in the first 50 posts will have the "show=..." param appended to the URL, because it is not a valid URL otherwise (that could be clicked on).@Remocracy I've no idea about what you tried to say about "https://myanimelist.net/forum/message/<id>?goto=topic" |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 1:44 PM
#27
| Also a minor thing I've noticed, but new posts made using Quick Reply (obviously) don't have their URLs rendered. I guess this can be easily solved with a reload but it does tend to be annoying, although with the #3 suggestion it wouldn't matter. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 1:45 PM
#28
| @Remocracy Yeah, usually no one links to those other entry sections anyway... Wow so you really want it very bad then... I know you said a button, but maybe I could make it even translate links on the fly as the user types or on hover over the reply button. Either way works. But it seems like to be a bbcode parser or translator, like another totally different script, so I'm just wondering if it is really good to add that feature too. The only good reason for me to add that now would be that the script wouldn't make any fetch requests if any users see that post, besides that sounds look another script a little bit. |
| 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 |
Aug 7, 2022 1:50 PM
#29
| @Remocracy Oh that's a nice find! So you mean I should do a common fetch to the post, get the show number, then use it as a parameter to get the post id from the MAL api? That would be basically a normal fetch request then, and would probably be better to not use the api since it would be a bit pointless to make another network request since the 1 normal fetch already returns the whole page html anyway, I could just scan the page to find the comment number and grab the post id from it. It's a nice find and good idea, but MAL hates normal fetch requests, so I wouldn't do it. It will likely crash quickly and make the user have to click on the prove you're not a bot too soon. Yeah I noticed that reloading is the page is necessary for now, so either your 3 suggestion is implement, or the user reloads the page or what I like is to use mutation observers or arrive.js for that Either way works for that. |
| 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 |
Aug 7, 2022 1:54 PM
#30
| @ShaggyZE The script also works on any user quotes. |
| 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 |
Aug 7, 2022 2:00 PM
#31
| I could add it to my MAL Enhancer extension (though not sure I have the time), it has parsing bbcode to html and html to bbcode, it already does it with its anime/manga finder so pressing CTRL+Enter will make the bbcode for whatever anime/manga you were typing, just doesn't do it for topics though I like the idea of event listener on hover over reply |
ShaggyZEAug 7, 2022 2:05 PM
![]() My Userscripts - Themes - Userstyles - Extensions (Chrome/Firefox) [API CSS] MAL-Scraper-API Cover/CSS Generator |
Aug 7, 2022 2:05 PM
#32
hacker09 said: I realized later it’s wholly unnecessary. When you click on a post outside of the first 50 to get a permalink, it includes the show parameter in the permalink. As you saw, the URL I included for the mat post had the show=1000 parameter anyways. You can see this yourself by trying to link a post on any page that’s not the first page.@Remocracy Oh that's a nice find! So you mean I should do a common fetch to the post, get the show number, then use it as a parameter to get the post id from the MAL api? That would be basically a normal fetch request then, and would probably be better to not use the api since it would be a bit pointless to make another network request since the 1 normal fetch already returns the whole page html anyway, I could just scan the page to find the comment number and grab the post id from it. It's a nice find and good idea, but MAL hates normal fetch requests, so I wouldn't do it. It will likely crash quickly and make the user have to click on the prove you're not a bot too soon. Yeah I noticed that reloading is the page is necessary for now, so either your 3 suggestion is implement, or the user reloads the page or what I like is to use mutation observers or arrive.js for that Either way works for that. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 2:12 PM
#33
| @ShaggyZE Yeah I still thinking if I should make time and if I want to add that 3 feature. @Remocracy So you mean I should just look for the show number on user posted links and use that as an offset for the mal API? That's better... |
| 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 |
Aug 7, 2022 2:15 PM
#34
hacker09 said: Yea, it would get the job done. If the show parameter was invalid it wouldn’t work for people not using the userscript as well. You can also lower your limit to 50 to make it faster. If there is no show parameter it defaults to 0.@ShaggyZE Yeah I still thinking if I should make time and if I want to add that 3 feature. @Remocracy So you mean I should just look for the show number on user posted links and use that as an offset for the mal API? That's better... |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 2:23 PM
#35
| @Remocracy I will try to see if I can make that work on the MAL API, thanks! |
| 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 |
Aug 7, 2022 2:35 PM
#36
| According to https://myanimelist.net/apiconfig/references/api/v2#operation/forum_topic_get there are only 2 params, limit and offset. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 7, 2022 2:40 PM
#37
| @Remocracy Yeah I know, I'm just wondering if show=1500 would be a valid 1500 offset number, I've to try to know it |
| 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 |
Aug 7, 2022 2:43 PM
#38
hacker09 said: I mean if it doesn’t work it’s broken for everyone so you maybe want to put in parentheses (unknown post) or something or just leave the topic title and no parentheses (like current behavior)@Remocracy Yeah I know, I'm just wondering if show=1500 would be a valid 1500 offset number, I've to try to know it |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 2:44 PM
#39
Some quick suggestions:
|
RemocracyAug 15, 2022 2:47 PM
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 2:45 PM
#40
| @Remocracy I get that and I am already planning on it. That isn't the issue I'm currently facing. |
| 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 |
Aug 15, 2022 2:47 PM
#41
hacker09 said: Sorry, I made my post prematurely, check my edit@Remocracy I get that and I am already planning on it. That isn't the issue I'm currently facing. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 2:49 PM
#42
| @Remocracy Yeah I'm waiting for your edits. Have you checked my comment though? My next update is there... Trigger it using my new script there, there's an issue I explained there too |
| 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 |
Aug 15, 2022 2:50 PM
#43
| I'm trying to look through your code but it is a bit confusing trying to figure out where things start and end. It would be helpful if everything could be broken up into functions. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 2:51 PM
#44
| @Remocracy Oh I see. Sorry for that Hover the reply button to see the magic |
| 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 |
Aug 15, 2022 2:58 PM
#45
| I hovered over the "reply" button and there seems to be no such magic as of yet. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 3:00 PM
#46
| @Remocracy Paste the test links on the box first. Remove the forum links |
| 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 |
Aug 15, 2022 3:04 PM
#47
| I tried this but nothing changed. I am trying to find the warning/errors but there seem to be none. I don't have too much experience with tamper monkey but is there a way to get access to any uncaught errors in userscripts? |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 3:09 PM
#48
| Ahh, nevermind I figured it out. I'm dumb to realize this but I have another userscript that deletes the reply button and replaces it with a new one that has a different onclick handler. |
My biggest regret: Reading all 200+ chapters of Kanojo, Okarishimasu |
Aug 15, 2022 3:09 PM
#49
| @Remocracy That's weird, it worked for shaggyze I use console.log or the dev tools debugger. |
| 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 |
Aug 15, 2022 3:11 PM
#50
| @Remocracy What's the user script name? |
| 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 |
More topics from this board
» Four Ages! ( 1 2 )Robert_SS_Gordon - Feb 21 |
55 |
by Robert_SS_Gordon
»»
7 minutes ago |
|
» 【 ART THREAD 】Let's share our art! ❤︎ ( 1 2 3 4 5 )mewmewforever - Aug 30, 2024 |
239 |
by Chiibihime
»»
1 hour ago |
|
» Share Your YouTube Channel/Videos! ( 1 2 3 4 5 ... Last Page )nin-tendo - Dec 16, 2022 |
617 |
by Retro8bit
»»
Yesterday, 10:30 PM |
|
» Yet another tier list appnoavarice - Nov 17, 2024 |
8 |
by Retro8bit
»»
Nov 10, 4:59 PM |
|
» Where to download anime poster images?mtron - Nov 8 |
5 |
by Retro8bit
»»
Nov 9, 5:24 PM |
