What problem does it solve?
This Skill streamlines the process of editing MediaWiki wikis without the need for complex software installations or terminal access.
Core Features & Use Cases
- Browser-based Editing: Perform wiki edits directly in the browser console.
- API Integration: Utilize MediaWiki's API for advanced operations like reading, modifying, and creating pages.
- Data Retrieval: Fetch and parse Discord content for reference.
- Use Case: Quickly update a wiki page by retrieving information from a Discord channel and directly editing the page using the browser console.
Quick Start
Open the browser console, run the following script to fetch the latest messages from a Discord channel:
(function() {
var token = 'YOUR_DISCORD_TOKEN';
var channelId = 'CHANNEL_ID';
return new Promise(function(resolve) {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://discord.com/api/v9/channels/' + channelId + '/messages?limit=50', true);
xhr.setRequestHeader('Authorization', 'Bearer ' + token);
xhr.onload = function() {
var msgs = JSON.parse(xhr.responseText);
resolve(JSON.stringify(clean(msgs)));
};
xhr.onerror = function() { resolve('error'); };
xhr.send();
});
})();