My Lego Network Wiki
Advertisement
Forums: Index > Editing_Discussion > Strange JS Code



This is a little bit random, but I've got a notably large snippet of code in my personal monaco.js. I became weary of constantly opening a new tab and typing mylegonetwork.wikia.com and navigating to monitor two pages simultaneously. My solution: an invisible green bar lurking at the bottom of the window; and when it is clicked, a small nav bar pops up, containing links to various locations in the wiki. You may choose whether that location leads to a new tab or not.

This is not something that will be implemented in MediaWiki:Common.js, but wiki-editors may find it useful.

--FB100Z TalkContribs  04:55, February 7, 2010 (UTC)

sounds cool--Joemantalkcont.TerrificTradesblogLoop! 16:06, February 7, 2010 (UTC)

In Firefox, just middle click (click using scroll or MB3 if you have one), or press Ctrl+left click any link and it'll open it up in a new tab. I middle click the logo constantly. Then I'm at the mainpage with the {{MLNNav}} and sidebar visible.
Aww.PNG Kjhf (Talkative?) Contribs 20:48, February 8, 2010 (UTC)
Unfortunately, I have no middle click. I know that most browsers allow you to right-click on a link and press "Open in new tab," but sometimes the page I wish to monitor is not one that is reachable by a link on the page I'm visiting.

Excuse my ignorance but what is Common-js BobaFett TalkBlog Visit Thornax and Goods! Contest! 22:13, February 8, 2010 (UTC)

(Sorry, I meant Common.js.) It's the custom JavaScript code in this wiki. Only admins and Wikia staff may edit it. See MediaWiki:Common.js. --FB100Z TalkContribs  22:39, February 8, 2010 (UTC)

Oh like MediaWiki:MonacoCSS? Also, for CSS, do I can't get the code to work. Should I use {| code |}? BobaFett TalkBlog Visit Thornax and Goods! Contest!

For security reasons, MediaWiki does not support the <style> tag. Stick the code into your personal CSS: User:BobaFett2/monaco.css. --FB100Z TalkContribs  02:27, February 9, 2010 (UTC)

Hmm? OK. BobaFett TalkBlog Visit Thornax and Goods! Contest! 02:31, February 9, 2010 (UTC)

If you don't get me on the security part, the CSS code body {display:none;} is enough to permanently blank all wiki pages in your browser. Do not try it. I shouldn't give you any ideas, but there's an example. --FB100Z TalkContribs  02:36, February 9, 2010 (UTC)
Advertisement