Board Thread:Support Requests - Getting Technical/@comment-3528606-20190509222157

I saw the Warframe fandom's custom JS implementation for the discord widget, and loved the widget, and I was wondering how to implement separate MediaWiki prefixed js files (I know how to include prefixed css files in the main Wikia.css page, but I am not sure how to initialize custom JS that isn't on Wikia.js).

Also I ran the code in my console to test to make sure that it works, and while the visual aspect of parsing the incoming JSON data works the actual JSON fetch doesn't, because a CORS policy is in place. How do I fix this and allow the fetch to happen, like the Warframe wiki (talked with one member of their staff, who pointed me to an inactive mod who probably did most of the logistics of implementation).

The latter might not even be a problem, since I don't remember how to initialize custom JS code :) 