Global CSS/JS migrationEdit
Hello MJ94. You have global scripts in User:MJ94/global.js, which you import using your local JS pages. Since August 2014, your global.js and global.css pages are loaded automatically on all wikis. Since you already import them yourself, you may experience script errors or tools being added twice. Do you want me to remove the global imports from your local pages using Synchbot (without changing any other content)? —Pathoschild 18:57, 28 June 2015 (UTC)
- @Pathoschild: Hi there! First off, I apologize for the delayed response; actually, I forgot to see thank you for this edit as well (talk about a delayed response). I am assuming you are talking about the Twinkle scripts, correct? I apologize for my confusion, but I am not sure what Synchbot would be changing compared to what I currently have set up? Do you mind explaining the process you've suggested a bit further, please? Thank you so much, MJ94 (talk) 00:22, 4 July 2015 (UTC)
- Sure. You added some scripts to User:MJ94/global.js that you want to run on all wikis. Previously you needed to manually import them on all wikis with mw.loader.load, like you have in lad:User:MJ94/common.js. In August 2014 global user pages finally went live, and suddenly your global.js was loaded automatically on all wikis. That means your global scripts are now loaded twice: once by global user pages, and a second time by your mw.loader.load imports. That can cause all sorts of script issues.
- Synchbot is dedicated to crosswiki user tasks like this. In this case, the bot would go to each of your common.js pages and remove the unneeded global.js import. If the page contains nothing else (like ilo:User:MJ94/common.js), the bot would delete it. Any other scripts you have in local common.js pages would be left untouched. —Pathoschild 01:16, 04 July 2015 (UTC)