Misplaced Pages

User talk:ලේඛනාරක්ෂක

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

Using User:Andrybak/Scripts/Archiver.js on other wikis

Hello, ලේඛනාරක්ෂක/Lee. Regarding wikibooks:si:පරිශීලක:ලේඛනාරක්ෂක/Scripts/Archiver.js – you don't need to copy-paste the whole script to another wiki. You can load User:Andrybak/Scripts/Archiver.js directly by using mw.loader.load instead of importScript. Like so:

mw.loader.load('//en.wikipedia.org/search/?title=User:Andrybak/Scripts/Archiver.js&action=raw&ctype=text/javascript');

The above snippet can go either in wikibooks:si:පරිශීලක:ලේඛනාරක්ෂක/Scripts/Archiver.js (replacing all code there) or in wikibooks:si:පරිශීලක:ලේඛනාරක්ෂක/common.js.

There's some documentation about the differences between mw.loader.load and importScript at Template:Load user script. —⁠andrybak (talk) 23:31, 26 July 2024 (UTC)

@Andrybak Thanks for the info. I was looking for this but I guess I looked at the wrong place. -- Lee (talk) 04:41, 27 July 2024 (UTC)