Difference between revisions of "User:Fbstj/gadget/history-test.js"

Jump to navigation Jump to search
m (for now)
m (tweak)
 
const edit_box = document.querySelector('.editButtons')
// check that there is an edit box
if (!edit_box || mw.config.get('wgCanonicalNamespace') !== "") return
 
const wob_url = link('https://wob.coppermind.net/basic_search/?query='+ pagename, 'search Arcanum for "'+ pagename +'"')
const book_url = link('http://search.coppermind.net/?search='+ pagename, 'search books for "'+ pagename +'"')
float.appendChild(document.createTextNode(']'))
}
 
$(function () {
 
document.querySelectorAll('.infobox,.navbar').forEach(add_editSection_link)
 
if (!mw.config.get('wgIsArticle') || mw.config.get('wgCanonicalNamespace') !== '')
return;
if (mw.config.get('wgCategories').includes('Meta'))
return;
 
})