Skip to content

Instantly share code, notes, and snippets.

@TriMoon
Created October 26, 2018 13:51
Show Gist options
  • Select an option

  • Save TriMoon/f8de90f89e5b70a7e4beb8d89f6b8d17 to your computer and use it in GitHub Desktop.

Select an option

Save TriMoon/f8de90f89e5b70a7e4beb8d89f6b8d17 to your computer and use it in GitHub Desktop.
mediawiker preview for Wikia (W.I.P.)
{
"mediawiker_category_root": "Category:Templates",
"mediawiker_clearpagename_oninput": true,
"mediawiker_clipboard_as_defaultpagename": true,
"mediawiker_files_extension":
[
"wiki",
"wikia",
"mediawiki",
"wikipedia",
""
],
"mediawiker_mark_as_minor": true,
"mediawiker_site":
{
"Trainstation wiki":
{
"authorization_type": "login",
"cookies_browser": "firefox",
"domain": "",
"host": "trainstation.wikia.com",
"http_auth_login": "",
"http_auth_password": "",
"https": true,
"is_ssl_cert_verify": true,
"is_wikia": true,
"oauth_access_secret": "",
"oauth_access_token": "",
"oauth_consumer_secret": "",
"oauth_consumer_token": "",
"pagepath": "/wiki/",
"password": "*****",
"path": "/",
"preview_custom_head":
[
"<meta charset=\"UTF-8\"/>",
"<title>{{ title }}</title>",
"<script src=\"http://localhost/Wiki/Trainstation wiki/mediawiker_preview_fix.js\"></script>",
"<script src=\"http://localhost/Wiki/Trainstation wiki/mediawiker_preview_script.js\"></script>"
],
"proxy_host": "",
"retry_timeout": 30,
"show_red_links": false,
"use_http_auth": false,
"username": "*****"
}
},
"mediawiker_site_active": "Trainstation wiki",
"mediawiker_summary_postfix": " (ST3.Mediawiker)"
}
'use strict';
function mediawikerFixPreview (
baseURI
,localBaseURI='File://'
,debug=false
) {
let nonce='mediawiker'+Date.now()
,title='Mediawiker page preview'
function addCSP(node){
let element = document.createElement('meta')
,content
element.setAttribute('http-equiv', 'Content-Security-Policy')
content = "default-src 'none'; "
content += "font-src 'self' 'nonce-"+nonce+"' https://fonts.gstatic.com/ "+wgCdnRootUrl+"/; "
content += "img-src 'self' 'nonce-"+nonce+"' "+wgCdnRootUrl+"/; "
content += "script-src 'self' 'nonce-"+nonce+"'; "
// content += "script-src 'self' 'unsafe-inline' 'nonce-"+nonce+"'; "
// content += "script-src 'strict-dynamic' 'nonce-"+nonce+"'; "
content += "style-src 'self' 'nonce-"+nonce+"' "+baseURI+"/ "+wgCdnRootUrl+"/; "
content += "base-uri 'self' "+baseURI+"/; "
// content += "sandbox allow-same-origin allow-scripts; "
element.setAttribute('content', content)
node.appendChild(element)
debug&&console.debug( 'addCSP:', content, element )
}
function removeChilds(node,child) {
let childs, element
childs = node.getElementsByTagName(child)
for (element = childs.length - 1; element >= 0; element--) {
// console.debug( childs.item(element) )
node.removeChild( childs.item(element) )
}
}
function wrapChildren(node){
let element
, WikiaSiteWrapper
, WikiaPage
, WikiaPageBackground
, WikiaPageContentWrapper
, PageHeader
, page_header__main
, page_header__title
, page_header__contribution
, wds_button
, page_header__separator
, WikiaMainContent
, WikiaMainContentContainer
, WikiaArticle
, mw_content_text
// Create wrapers
WikiaSiteWrapper = document.createElement('div')
WikiaSiteWrapper.setAttribute('class', 'WikiaSiteWrapper')
WikiaPage = document.createElement('section')
WikiaPage.setAttribute('id', 'WikiaPage')
WikiaPage.setAttribute('class', 'WikiaPage V2')
WikiaPage.setAttribute('onclick', '')
// WikiaPage.onclick = null
WikiaSiteWrapper.appendChild(WikiaPage)
WikiaPageBackground = document.createElement('div')
WikiaPageBackground.setAttribute('id', 'WikiaPageBackground')
WikiaPageBackground.setAttribute('class', 'WikiaPageBackground')
WikiaPage.appendChild(WikiaPageBackground)
WikiaPageContentWrapper = document.createElement('div')
WikiaPageContentWrapper.setAttribute('class', 'WikiaPageContentWrapper')
WikiaPage.appendChild(WikiaPageContentWrapper)
PageHeader = document.createElement('header')
PageHeader.setAttribute('id', 'PageHeader')
PageHeader.setAttribute('class', 'page-header')
WikiaPageContentWrapper.appendChild(PageHeader)
page_header__main = document.createElement('div')
page_header__main.setAttribute('class', 'page-header__main')
PageHeader.appendChild(page_header__main)
page_header__title = document.createElement('h1')
page_header__title.setAttribute('class', 'page-header__title')
page_header__title.textContent = window.wgPageName
page_header__main.appendChild(page_header__title)
page_header__contribution = document.createElement('div')
page_header__contribution.setAttribute('class', 'page-header__contribution')
PageHeader.appendChild(page_header__contribution)
wds_button = document.createElement('div')
wds_button.setAttribute('class', 'wds-button')
wds_button.textContent = title
page_header__contribution.appendChild(wds_button)
page_header__separator = document.createElement('hr')
page_header__separator.setAttribute('class', 'page-header__separator')
WikiaPageContentWrapper.appendChild(page_header__separator)
WikiaMainContent = document.createElement('article')
WikiaMainContent.setAttribute('id', 'WikiaMainContent')
WikiaMainContent.setAttribute('class', 'WikiaMainContent')
WikiaMainContent.style.width = '100%'
WikiaPageContentWrapper.appendChild(WikiaMainContent)
WikiaMainContentContainer = document.createElement('div')
WikiaMainContentContainer.setAttribute('id', 'WikiaMainContentContainer')
WikiaMainContentContainer.setAttribute('class', 'WikiaMainContentContainer')
WikiaMainContent.appendChild(WikiaMainContentContainer)
WikiaArticle = document.createElement('div')
WikiaArticle.setAttribute('id', 'WikiaArticle')
WikiaArticle.setAttribute('class', 'WikiaArticle')
WikiaMainContentContainer.appendChild(WikiaArticle)
mw_content_text = document.createElement('div')
mw_content_text.setAttribute('id', 'mw-content-text')
mw_content_text.setAttribute('class', 'mw-content-ltr mw-content-text')
mw_content_text.setAttribute('lang', wgContentLanguage)
mw_content_text.setAttribute('dir', 'ltr')
WikiaArticle.appendChild(mw_content_text)
// Move all childs from original into our wrapper
for (element = node.children.length - 1; element >= 0; element--) {
mw_content_text.insertBefore(
node.removeChild(
node.children.item(element)
)
, mw_content_text.firstChild
)
}
// Add the wrappers to the body
node.insertBefore(WikiaSiteWrapper, node.firstChild)
}
function gen_sassesURL(
obj={
base: wgCdnRootUrl+'/__am/'+wgStyleVersion+'/sasses/'
,wgSassParams: {
'background-dynamic': 'false'
,'background-image': '/skins/oasis/images/themes/carbon.png'
,'background-image-height': '1086'
,'background-image-width': '1900'
,'color-body': '#1a1a1a'
,'color-body-middle': '#1a1a1a'
,'color-buttons': '#012e59'
,'color-community-header': '#012e59'
,'color-header': '#012e59'
,'color-links': '#70b8ff'
,'color-page': '#474646'
,'oasisTypography': 1
,'page-opacity': '100'
,'widthType': 0
}
,modules: [
'/skins/oasis/css/oasis.scss'
// ,'extensions/wikia/Forum/css/ForumTag.scss'
,'extensions/wikia/DesignSystem/styles/design-system.scss'
// ,'extensions/wikia/CommunityHeader/styles/index.scss'
,'extensions/wikia/PageHeader/styles/index.scss'
// ,'extensions/wikia/Recirculation/styles/recirculation.scss'
,'extensions/wikia/PortableInfobox/styles/PortableInfobox.scss'
// ,'extensions/wikia/Qualaroo/css/Qualaroo.scss'
]
// ,original: 'https://slot1-images.wikia.nocookie.net/__am/7510047510012/sasses/background-dynamic%3Dfalse%26background-image%3D%252Fskins%252Foasis%252Fimages%252Fthemes%252Fcarbon.png%26background-image-height%3D1086%26background-image-width%3D1900%26color-body%3D%25231a1a1a%26color-body-middle%3D%25231a1a1a%26color-buttons%3D%2523012e59%26color-community-header%3D%2523012e59%26color-header%3D%2523012e59%26color-links%3D%252370b8ff%26color-page%3D%2523474646%26oasisTypography%3D1%26page-opacity%3D100%26widthType%3D0/skins/oasis/css/oasis.scss,extensions/wikia/Forum/css/ForumTag.scss,extensions/wikia/DesignSystem/styles/design-system.scss,extensions/wikia/CommunityHeader/styles/index.scss,extensions/wikia/PageHeader/styles/index.scss,extensions/wikia/Recirculation/styles/recirculation.scss,extensions/wikia/PortableInfobox/styles/PortableInfobox.scss,extensions/wikia/Qualaroo/css/Qualaroo.scss'
}
){
let final, encoded_parts = []
for (const prop in obj.wgSassParams) {
encoded_parts.push(
prop + '=' + encodeURIComponent(obj.wgSassParams[prop])
)
}
// After this final is identical to original !
final = obj.base + encodeURIComponent( encoded_parts.join('&') ) + obj.modules.join()
if (debug&&obj.original) {
console.groupCollapsed('gen_sassesURL')
console.debug( 'generated === original:', obj.original === final )
console.debug( 'original:\t', obj.original )
console.debug( 'final:\t', final )
console.groupEnd()
}
return final
}
function addBaseTag(node){
let element = document.createElement('base')
element.setAttribute('href', baseURI)
element.setAttribute('target', '_blank')
node.appendChild(element)
debug&&console.debug( 'addBaseTag:', baseURI, element )
}
function addViewport(node){
let element = document.createElement('meta')
,content = 'width=device-width, user-scalable=yes'
element.setAttribute('name', 'viewport')
element.setAttribute('content', content)
node.appendChild(element)
debug&&console.debug( 'addViewport:', content, element )
}
function addTitle(node){
let element = document.querySelector('title')
if (!element) {
element = document.createElement('title')
node.appendChild(element)
} else if (element.textContent) {
window.wgPageName = element.textContent
}
if (!window.wgPageName) {
window.wgPageName='Unknown'
}
element.textContent = title + ' | ' + window.wgPageName
debug&&console.debug( 'addTitle:', text, element )
}
function addStyleSheet(node,url){
let element = document.createElement('link')
element.setAttribute('nonce', nonce)
element.setAttribute('href', url)
element.setAttribute('rel', 'stylesheet')
element.setAttribute('referrerpolicy', 'no-referrer')
element.setAttribute('type', 'text/css')
node.appendChild(element)
debug&&console.debug( 'addStyleSheet:', element )
}
function addScriptURL(node,url){
let element = document.createElement('script')
element.setAttribute('nonce', nonce)
element.setAttribute('src', url)
// element.setAttribute('type', 'application/ecmascript')
node.appendChild(element)
debug&&console.debug( 'addScriptURL:', element )
}
function addScriptCode(node,code){
let element = document.createElement('script')
element.setAttribute('nonce', nonce)
element.textContent = code.join("\n")
node.appendChild(element)
debug&&console.debug( "addScriptText:\n", "\t"+code.join("\n\t")+"\n", element )
}
function fixHead(){
let head = document.querySelector('head')
,tmpDebug=debug
debug&&console.groupCollapsed('fixHead')
debug&&console.debug( 'old', head.cloneNode(true) )
removeChilds( head, 'style')
removeChilds( head, 'link')
addCSP( head )
// 'charset' needs to be in original...
addBaseTag( head )
addViewport( head )
addTitle( head )
addStyleSheet( head, gen_sassesURL() )
addStyleSheet( head, baseURI+'/load.php?cb='+wgStyleVersion+'&debug=false&lang='+wgContentLanguage+'&modules=site&only=styles&skin='+skin+'&*' )
addStyleSheet( head, baseURI+'/load.php?debug=false&lang='+wgContentLanguage+'&modules=user&only=styles&skin='+skin+'&user='+wgUserName+'&*' )
addStyleSheet( head, localBaseURI+'/mediawiker_preview_style.css' )
addStyleSheet( head, baseURI+'/load.php?debug=false&lang='+wgContentLanguage+'&modules=ext.geshi.language.cpp|ext.visualEditor.viewPageTarget.noscript|mediawiki.legacy.commonPrint,shared|mediawiki.sectionAnchor|mediawiki.skinning.interface|mediawiki.ui.button|skins.'+skin+'.styles&only=styles&skin='+skin+'&*' )
// addStyleSheet( head, localBaseURI+'/mediawiker_preview_style_head.css' )
debug&&console.debug('new', head)
debug&&console.groupEnd()
}
function fixBody(){
let body = document.querySelector('body')
debug&&console.groupCollapsed('fixBody')
debug&&console.debug( 'old', body.cloneNode(true) )
body.removeAttribute('style')
body.setAttribute('class', "mediawiki ltr ns-subject skin-oasis oasis-breakpoints oasis-dark-theme background-fixed background-not-tiled")
wrapChildren( body )
// mw not defined yet
addScriptURL( body, '/load.php?cb='+wgStyleVersion+'&debug=false&lang=en&modules=startup&newve=1&only=scripts&skin='+skin+'&*' )
// Needs to be after module startup...
addScriptURL( body, wgCdnRootUrl+'/__load/-/debug=false&lang=en&only=scripts&skin='+skin+'&version=='+wgStyleVersion+'/jquery,mediawiki' )
addScriptURL( body, wgCdnRootUrl+'/__load/-/debug=false&lang=en&skin='+skin+'/amd.shared|ext.wikia.facebookTags|jquery.byteLength,checkboxShiftClick,client,cookie,makeCollapsible,messageBox,mw-jump,mwExtension,timeago|mediawiki.Title,Uri,api,cldr,jqueryMsg,language,user,util|mediawiki.action.watch.ajax|mediawiki.api.watch|mediawiki.language.init|mediawiki.legacy.ajax,wikibits|mediawiki.libs.pluralruleparser|mediawiki.page.ready,startup|underscore|wikia.fbLocale,history,importScript,loader,mw,nirvana,throbber,thumbnailer' )
addScriptURL( body, '/load.php?cb='+wgStyleVersion+'&debug=false&lang=en&modules=site&newve=1&only=scripts&skin='+skin+'&*' )
// addScriptURL( body, '/load.php?debug=false&lang=en&modules=user&newve=1&only=scripts&skin='+skin+'&user='+wgUserName+'&version=='+wgStyleVersion+'-20180929T162538Z&*' )
addScriptURL( body, '/load.php?debug=false&lang=en&modules=user&newve=1&only=scripts&skin='+skin+'&user='+wgUserName+'&version=='+wgStyleVersion+'&*' )
debug&&console.debug('new', body)
debug&&console.groupEnd()
}
function fixPreview(){
let html = document.querySelector('html')
debug&&console.groupCollapsed('mediawiker fixPreview')
html.setAttribute('class', 'client-js ve-not-available desktop landscape')
html.setAttribute('dir', 'ltr')
html.setAttribute('lang', wgContentLanguage)
fixHead()
fixBody()
debug&&console.groupEnd()
}
document.addEventListener('DOMContentLoaded', fixPreview, false);
}
'use strict';
var Wikia={},
wgUserName='<username>',
wgContentLanguage='en',
skin='oasis',
// wgPageName="<pagename>",
wgStyleVersion='0',
// wgStyleVersion="7510047510012",
wgCdnRootUrl='https://slot1-images.wikia.nocookie.net',
wgCdnApiUrl='https://api.wikia.nocookie.net/__cb'+wgStyleVersion,
wgUseSiteJs=true,
JSSnippetsStack=[],
wgGaHasAds=false;
// // window.mw||(mw={fk:1,loader:{state:function(s){preMwLdrStA=window.preMwLdrStA||[];preMwLdrStA.push(s)}}});
// if(!window.mw){
// window.mw={
// fk:1
// ,loader:{
// state:function(s){
// preMwLdrStA=window.preMwLdrStA||[];
// preMwLdrStA.push(s)
// }
// }
// };
// }
// // window.mw.fk&&delete mw;
// if(window.mw.fk){
// delete window.mw;
// }
mediawikerFixPreview(
'https://trainstation.wikia.com'
,'http://www.lan/Wiki/Trainstation wiki'
)
/*
@import url('https://trainstation.wikia.com/load.php?debug=false&lang=en&modules=site&only=styles&skin=oasis&*');
@import url('https://trainstation.wikia.com/load.php?debug=false&lang=en&modules=user&only=styles&skin=oasis&user=©TriMoon™&*');
@import url('https://trainstation.wikia.com/load.php?debug=false&lang=en&modules=ext.geshi.language.cpp|ext.visualEditor.viewPageTarget.noscript|mediawiki.legacy.commonPrint,shared|mediawiki.sectionAnchor|mediawiki.skinning.interface|mediawiki.ui.button|skins.oasis.styles&only=styles&skin=oasis&*');
*/
/*** CSS injected by skin and extensions ***/
/** after:; gen_sassesURL **/
a:lang(ar),a:lang(ckb),a:lang(fa),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}a.new,#quickbar a.new{color:#ba0000}
/* cache key: trainstation:resourceloader:filter:minify-css:7:c88e2bcd56513749bec09a7e29cb3ffa */
/*<![CDATA[*/
.source-cpp {line-height: normal;}
.source-cpp li, .source-cpp pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for cpp
* CSS class: source-cpp, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.cpp.source-cpp .de1, .cpp.source-cpp .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;font-family: monospace, monospace;}
.cpp.source-cpp {font-family: monospace, monospace;}
.cpp.source-cpp .imp {font-weight: bold; color: red;}
.cpp.source-cpp li, .cpp.source-cpp .li1 {font-weight: normal; vertical-align:top;}
.cpp.source-cpp .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.cpp.source-cpp .li2 {font-weight: bold; vertical-align:top;}
.cpp.source-cpp .kw1 {color: #0000ff;}
.cpp.source-cpp .kw2 {color: #0000ff;}
.cpp.source-cpp .kw3 {color: #0000dd;}
.cpp.source-cpp .kw4 {color: #0000ff;}
.cpp.source-cpp .co1 {color: #666666;}
.cpp.source-cpp .co2 {color: #339900;}
.cpp.source-cpp .coMULTI {color: #ff0000; font-style: italic;}
.cpp.source-cpp .es0 {color: #000099; font-weight: bold;}
.cpp.source-cpp .es1 {color: #000099; font-weight: bold;}
.cpp.source-cpp .es2 {color: #660099; font-weight: bold;}
.cpp.source-cpp .es3 {color: #660099; font-weight: bold;}
.cpp.source-cpp .es4 {color: #660099; font-weight: bold;}
.cpp.source-cpp .es5 {color: #006699; font-weight: bold;}
.cpp.source-cpp .br0 {color: #008000;}
.cpp.source-cpp .sy0 {color: #008000;}
.cpp.source-cpp .sy1 {color: #000080;}
.cpp.source-cpp .sy2 {color: #000040;}
.cpp.source-cpp .sy3 {color: #000040;}
.cpp.source-cpp .sy4 {color: #008080;}
.cpp.source-cpp .st0 {color: #FF0000;}
.cpp.source-cpp .nu0 {color: #0000dd;}
.cpp.source-cpp .nu6 {color: #208080;}
.cpp.source-cpp .nu8 {color: #208080;}
.cpp.source-cpp .nu12 {color: #208080;}
.cpp.source-cpp .nu16 {color:#800080;}
.cpp.source-cpp .nu17 {color:#800080;}
.cpp.source-cpp .nu18 {color:#800080;}
.cpp.source-cpp .nu19 {color:#800080;}
.cpp.source-cpp .me1 {color: #007788;}
.cpp.source-cpp .me2 {color: #007788;}
.cpp.source-cpp .ln-xtra, .cpp.source-cpp li.ln-xtra, .cpp.source-cpp div.ln-xtra {background-color: #ffc;}
.cpp.source-cpp span.xtra { display:block; }
/*]]>*/
/*<![CDATA[*/
.source-html5 {line-height: normal;}
.source-html5 li, .source-html5 pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for html5
* CSS class: source-html5, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.html5.source-html5 .de1, .html5.source-html5 .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;font-family: monospace, monospace;}
.html5.source-html5 {font-family: monospace, monospace;}
.html5.source-html5 .imp {font-weight: bold; color: red;}
.html5.source-html5 li, .html5.source-html5 .li1 {font-weight: normal; vertical-align:top;}
.html5.source-html5 .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.html5.source-html5 .li2 {font-weight: bold; vertical-align:top;}
.html5.source-html5 .kw2 {color: #000000; font-weight: bold;}
.html5.source-html5 .kw3 {color: #000066;}
.html5.source-html5 .es0 {color: #000099; font-weight: bold;}
.html5.source-html5 .br0 {color: #66cc66;}
.html5.source-html5 .sy0 {color: #66cc66;}
.html5.source-html5 .st0 {color: #ff0000;}
.html5.source-html5 .nu0 {color: #cc66cc;}
.html5.source-html5 .sc-2 {color: #404040;}
.html5.source-html5 .sc-1 {color: #808080; font-style: italic;}
.html5.source-html5 .sc0 {color: #00bbdd;}
.html5.source-html5 .sc1 {color: #ddbb00;}
.html5.source-html5 .sc2 {color: #009900;}
.html5.source-html5 .ln-xtra, .html5.source-html5 li.ln-xtra, .html5.source-html5 div.ln-xtra {background-color: #ffc;}
.html5.source-html5 span.xtra { display:block; }
/*]]>*/
/* MathJax */
.MathJax_Preview {color: #888}
#MathJax_Message {position: fixed; left: 1px; bottom: 2px; background-color: #E6E6E6; border: 1px solid #959595; margin: 0px; padding: 2px 8px; z-index: 102; color: black; font-size: 80%; width: auto; white-space: nowrap}
#MathJax_MSIE_Frame {position: absolute; top: 0; left: 0; width: 0px; z-index: 101; border: 0px; margin: 0px; padding: 0px}
.MathJax_Error {color: #CC0000; font-style: italic}
.mtext {font-family: sans-serif ! important; font-size: 80%}
.MathJax_Hover_Frame {border-radius: .25em; -webkit-border-radius: .25em; -moz-border-radius: .25em; -khtml-border-radius: .25em; box-shadow: 0px 0px 15px #83A; -webkit-box-shadow: 0px 0px 15px #83A; -moz-box-shadow: 0px 0px 15px #83A; -khtml-box-shadow: 0px 0px 15px #83A; border: 1px solid #A6D ! important; display: inline-block; position: absolute}
.MathJax_Hover_Arrow {position: absolute; width: 15px; height: 11px; cursor: pointer}
#MathJax_Zoom {position: absolute; background-color: #F0F0F0; overflow: auto; display: block; z-index: 301; padding: .5em; border: 1px solid black; margin: 0; font-weight: normal; font-style: normal; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; box-shadow: 5px 5px 15px #AAAAAA; -webkit-box-shadow: 5px 5px 15px #AAAAAA; -moz-box-shadow: 5px 5px 15px #AAAAAA; -khtml-box-shadow: 5px 5px 15px #AAAAAA; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
#MathJax_ZoomOverlay {position: absolute; left: 0; top: 0; z-index: 300; display: inline-block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
#MathJax_ZoomEventTrap {position: absolute; left: 0; top: 0; z-index: 302; display: inline-block; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
#MathJax_About {position: fixed; left: 50%; width: auto; text-align: center; border: 3px outset; padding: 1em 2em; background-color: #DDDDDD; color: black; cursor: default; font-family: message-box; font-size: 120%; font-style: normal; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 15px; -webkit-border-radius: 15px; -moz-border-radius: 15px; -khtml-border-radius: 15px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
.MathJax_Menu {position: absolute; background-color: white; color: black; width: auto; padding: 5px 0px; border: 1px solid #CCCCCC; margin: 0; cursor: default; font: menu; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -khtml-border-radius: 5px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
.MathJax_MenuItem {padding: 1px 2em; background: transparent}
.MathJax_MenuTitle {background-color: #CCCCCC; margin: -5px 0 0 0; text-align: center; font-style: italic; font-size: 80%; color: #444444; padding: 2px 0; overflow: hidden}
.MathJax_MenuArrow {position: absolute; right: .5em; color: #666666}
.MathJax_MenuActive .MathJax_MenuArrow {color: white}
.MathJax_MenuCheck {position: absolute; left: .7em}
.MathJax_MenuRadioCheck {position: absolute; left: .7em}
.MathJax_MenuLabel {padding: 1px 2em 3px 1.33em; font-style: italic}
.MathJax_MenuRule {border-top: 1px solid #DDDDDD; margin: 4px 3px}
.MathJax_MenuDisabled {color: GrayText}
.MathJax_MenuActive {background-color: #606872; color: white}
.MathJax_Menu_Close {position: absolute; width: 31px; height: 31px; top: -15px; left: -15px}
DIV.MathJax_MathML {text-align: center; margin: .75em 0px}
.MathJax_MathML {font-style: normal; font-weight: normal; line-height: normal; font-size: 100%; font-size-adjust: none; text-indent: 0; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; direction: ltr; border: 0; padding: 0; margin: 0}
span.MathJax_MathML {display: inline}
div.MathJax_MathML {display: block; text-align: left!important; margin-left: 0!important}
.MathJax_mmlExBox {display: block; overflow: hidden; height: 1px; width: 60ex; padding: 0; border: 0; margin: 0}
[mathvariant="double-struck"] {font-family: MathJax_AMS, MathJax_AMS-WEB}
[mathvariant="script"] {font-family: MathJax_Script, MathJax_Script-WEB}
[mathvariant="fraktur"] {font-family: MathJax_Fraktur, MathJax_Fraktur-WEB}
[mathvariant="bold-script"] {font-family: MathJax_Script, MathJax_Caligraphic-WEB; font-weight: bold}
[mathvariant="bold-fraktur"] {font-family: MathJax_Fraktur, MathJax_Fraktur-WEB; font-weight: bold}
[mathvariant="monospace"] {font-family: monospace}
[mathvariant="sans-serif"] {font-family: sans-serif}
[mathvariant="bold-sans-serif"] {font-family: sans-serif; font-weight: bold}
[mathvariant="sans-serif-italic"] {font-family: sans-serif; font-style: italic}
[mathvariant="sans-serif-bold-italic"] {font-family: sans-serif; font-style: italic; font-weight: bold}
[class="MJX-tex-oldstyle"] {font-family: MathJax_Caligraphic, MathJax_Caligraphic-WEB}
[class="MJX-tex-oldstyle-bold"] {font-family: MathJax_Caligraphic, MathJax_Caligraphic-WEB; font-weight: bold}
[class="MJX-tex-caligraphic"] {font-family: MathJax_Caligraphic, MathJax_Caligraphic-WEB}
[class="MJX-tex-caligraphic-bold"] {font-family: MathJax_Caligraphic, MathJax_Caligraphic-WEB; font-weight: bold}
@font-face /*1*/ {font-family: MathJax_AMS-WEB; src: url('https://slot1-images.wikia.nocookie.net/__cb7510047510012/common/extensions/Math/modules/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_AMS-Regular.otf')}
@font-face /*2*/ {font-family: MathJax_Script-WEB; src: url('https://slot1-images.wikia.nocookie.net/__cb7510047510012/common/extensions/Math/modules/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Script-Regular.otf')}
@font-face /*3*/ {font-family: MathJax_Fraktur-WEB; src: url('https://slot1-images.wikia.nocookie.net/__cb7510047510012/common/extensions/Math/modules/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Regular.otf')}
@font-face /*4*/ {font-family: MathJax_Caligraphic-WEB; src: url('https://slot1-images.wikia.nocookie.net/__cb7510047510012/common/extensions/Math/modules/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Regular.otf')}
@font-face /*5*/ {font-family: MathJax_Fraktur-WEB; font-weight: bold; src: url('https://slot1-images.wikia.nocookie.net/__cb7510047510012/common/extensions/Math/modules/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Fraktur-Bold.otf')}
@font-face /*6*/ {font-family: MathJax_Caligraphic-WEB; font-weight: bold; src: url('https://slot1-images.wikia.nocookie.net/__cb7510047510012/common/extensions/Math/modules/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Caligraphic-Bold.otf')}
div.MathJax_MathML math {text-align: left}
div.MathJax_MathContainer > span {text-align: left!important}
/* Tabber */
ul.tabbernav{margin:0;padding:3px 0;border-bottom:1px solid #CCC;font:bold 12px Verdana,sans-serif}ul.tabbernav li{list-style:none;margin:0;display:inline}ul.tabbernav li a{padding:3px .5em;margin-left:3px;border:1px solid #CCC;border-bottom:none;background:#F2F7FF;text-decoration:none;white-space:pre}ul.tabbernav li a:link{color:#448}ul.tabbernav li a:visited{color:#667}ul.tabbernav li a:hover{color:#000;background:#FFF9F2;border-color:#CCC}ul.tabbernav li.tabberactive a{background-color:#FFF;border-bottom:1px solid #FFF}ul.tabbernav li.tabberactive a:hover{color:#000;background:#FFF;border-bottom:1px solid #FFF}.tabber .tabbertab{padding:5px;border:1px solid #CCC;border-top:0}
@TriMoon
Copy link
Author

TriMoon commented Oct 26, 2018

Current bugs im aware of are:

  1. document.write() attempts from pulled-in scripts fail in firefox nightly.
  2. mw namespace isn't properly initialized yet, probably due to (1) above.
  3. Any functionality that uses javascript like tabview etc don't function yet due to (1) above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment