This is the talk page for discussing improvements to the DoruDev page.
- Please sign and date your posts by typing four tildes (
~~~~). - Put new text under old text. Click here to start a new topic.
- If you're new to the wiki, please take a look at the talk page help.
- Be polite
- Assume good faith
- Be welcoming
Parent element is added too late
For me, it looks like the "My tools" element along with it's dropdown is added to the page too late, preventing the script from adding it's UI because the script only checks once. Tried on both skins. Nam 13:13, 27 July 2021 (UTC)
- The script relies on the "My Tools" menu being there when the document is ready, so you must customize your toolbar to have it. If you removed it, you'd probably have to click "Customize" and "reset defaults", and keep at least one item under the my tools menu. Other scripts may circumvent this using Placement, however that is not a library I'm thrilled to use, so my scripts tend to avoid using it. In either case, I believe this problem would happen with other scripts too if that's the case, is DoruDev really the only script with this problem? Perhaps you have it too early in your import order? MassCategorization also uses #my-tools directly, and if it doesn't find it, it gives up. -D 18:53, 27 July 2021 (UTC)
- Thanks for your reply. I guess I just didn't happen to use a script that utilizes "My Tools", and I didn't know that its time of existence depends on it containing items (like, what's the point of loading it later if it's empty? Either load it at the same time regardless of contents or don't load it at all if it's empty). A script can wait for it with an interval though.
- Anyway, I have populated my "My Tools", but the script keeps throwing errors. I see you have implemented a change so I will wait until it's approved.
- Nam 19:27, 27 July 2021 (UTC)
- Alright working now lol
- Nam 07:02, 28 July 2021 (UTC)
- lol awesome, an interval would probably run forever unless another script was using the Placement library, and yeah it was throwing errors because I erroneously copy-pasted an
onloadthat usedthis-D 07:15, 28 July 2021 (UTC)- Oh, I get it now, the empty "My Tools" dropdown that I got before was added by the Placement script which was imported by one of my scripts. Nam 09:33, 28 July 2021 (UTC)
- lol awesome, an interval would probably run forever unless another script was using the Placement library, and yeah it was throwing errors because I erroneously copy-pasted an