MediaWiki:DarkReader.js: Difference between revisions

finished testing
No edit summary
(finished testing)
Line 9: Line 9:


/* Possibly load the contents of a darkreader override css page and have darkreader abide by it */
/* Possibly load the contents of a darkreader override css page and have darkreader abide by it */
var idk;
/*fetch("https://robloxgalaxy.wiki/wiki/MediaWiki:Dark.css?action=raw&ctype=text/css")
var api = new mw.Api();
fetch("https://robloxgalaxy.wiki/wiki/MediaWiki:Dark.css?action=raw&ctype=text/css")
.then(function(response){return response.text();})
.then(function(response){return response.text();})
.then( function ( data ) {
.then( function ( data ) {
console.log(data)
console.log(data)
} );
} );*/


DarkReader.setFetchMethod(window.fetch);
DarkReader.setFetchMethod(window.fetch);