<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.drunkenfell.com/index.php?action=history&amp;feed=atom&amp;title=User%3AServian%2Fwikia.js</id>
	<title>User:Servian/wikia.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.drunkenfell.com/index.php?action=history&amp;feed=atom&amp;title=User%3AServian%2Fwikia.js"/>
	<link rel="alternate" type="text/html" href="https://www.drunkenfell.com/index.php?title=User:Servian/wikia.js&amp;action=history"/>
	<updated>2026-05-01T14:08:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://www.drunkenfell.com/index.php?title=User:Servian/wikia.js&amp;diff=72649&amp;oldid=prev</id>
		<title>imported&gt;Servian: Created page with &quot;/* add a button that increases the content size and hides the rail */ function CreateContentResizeButton() { 	if(wgTitle != wgMainPageTitle) { 		$('ul.wikia-menu-button').after('...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.drunkenfell.com/index.php?title=User:Servian/wikia.js&amp;diff=72649&amp;oldid=prev"/>
		<updated>2011-02-02T20:46:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;add a button that increases the content size and hides the rail: &lt;/span&gt; function CreateContentResizeButton() { 	if(wgTitle != wgMainPageTitle) { 		$(&amp;#039;ul.wikia-menu-button&amp;#039;).after(&amp;#039;...&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* add a button that increases the content size and hides the rail */&lt;br /&gt;
function CreateContentResizeButton() {&lt;br /&gt;
	if(wgTitle != wgMainPageTitle) {&lt;br /&gt;
		$('ul.wikia-menu-button').after('&amp;lt;ul class=&amp;quot;wikia-menu-button&amp;quot; id=&amp;quot;resizeButton&amp;quot; style=&amp;quot;margin-left:10px&amp;quot;&amp;gt;&amp;lt;a onclick=&amp;quot;ExpandContent();&amp;quot; data-id=&amp;quot;resizeButton&amp;quot; style=&amp;quot;color:#fff;&amp;quot; title=&amp;quot;Expands the content area. Note that this will hide the side rail.&amp;quot;&amp;gt; Expand &amp;lt;--&amp;gt; &amp;lt;/a&amp;gt;&amp;lt;/ul&amp;gt;');&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
addOnloadHook(CreateContentResizeButton);&lt;br /&gt;
&lt;br /&gt;
function ExpandContent() {&lt;br /&gt;
	$('header#WikiaPageHeader.WikiaPageHeader details').css({&amp;quot;width&amp;quot;: '980px'});&lt;br /&gt;
	$('article#WikiaMainContent.WikiaMainContent').css({&amp;quot;width&amp;quot;: '1000px'});&lt;br /&gt;
	$('div#catlinks.catlinks').css({&amp;quot;width&amp;quot;: '1000px'});&lt;br /&gt;
	$('div#WikiaRail.WikiaRail').css({&amp;quot;display&amp;quot;: 'none'});&lt;br /&gt;
	$('ul#resizeButton').replaceWith('&amp;lt;ul class=&amp;quot;wikia-menu-button&amp;quot; id=&amp;quot;resizeButton&amp;quot; style=&amp;quot;margin-left:10px&amp;quot;&amp;gt;&amp;lt;a onclick=&amp;quot;CompressContent();&amp;quot; data-id=&amp;quot;resizeButton&amp;quot; style=&amp;quot;color:#fff;&amp;quot; title=&amp;quot;Compress the content area back to its original width, and restore the side rail.&amp;quot;&amp;gt; Compress &amp;gt;--&amp;lt; &amp;lt;/a&amp;gt;&amp;lt;/ul&amp;gt;');&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function CompressContent() {&lt;br /&gt;
	$('header#WikiaPageHeader.WikiaPageHeader details').css({&amp;quot;width&amp;quot;: '670px'});&lt;br /&gt;
	$('article#WikiaMainContent.WikiaMainContent').css({&amp;quot;width&amp;quot;: '680px'});&lt;br /&gt;
	$('div#catlinks.catlinks').css({&amp;quot;width&amp;quot;: '638px'});&lt;br /&gt;
	$('div#WikiaRail.WikiaRail').css({&amp;quot;display&amp;quot;: 'block'});&lt;br /&gt;
	$('ul#resizeButton').replaceWith('&amp;lt;ul class=&amp;quot;wikia-menu-button&amp;quot; id=&amp;quot;resizeButton&amp;quot; style=&amp;quot;margin-left:10px&amp;quot;&amp;gt;&amp;lt;a onclick=&amp;quot;ExpandContent();&amp;quot; data-id=&amp;quot;resizeButton&amp;quot; style=&amp;quot;color:#fff;&amp;quot; title=&amp;quot;Expands the content area. Note that this will hide the side rail.&amp;quot;&amp;gt; Expand &amp;lt;--&amp;gt; &amp;lt;/a&amp;gt;&amp;lt;/ul&amp;gt;');&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/* Adding the following CSS support is recommended for WikiActivity2RecentChanges()...&lt;br /&gt;
    /- Widen area for Random Page and Wiki Activity buttons -/&lt;br /&gt;
    .WikiHeader .buttons {&lt;br /&gt;
        width: 290px;&lt;br /&gt;
    }&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
function WikiActivity2RecentChanges() {&lt;br /&gt;
	$('a.wikia-button[data-id$=&amp;quot;wikiactivity&amp;quot;]').replaceWith('&amp;lt;a data-id=&amp;quot;recentchanges&amp;quot; class=&amp;quot;wikia-button secondary&amp;quot; accesskey=&amp;quot;g&amp;quot; title=&amp;quot;Special:RecentChanges&amp;quot; href=&amp;quot;/wiki/Special:RecentChanges&amp;quot;&amp;gt;&amp;lt;img height=&amp;quot;0&amp;quot; width=&amp;quot;0&amp;quot; class=&amp;quot;sprite activity&amp;quot; src=&amp;quot;http://images1.wikia.nocookie.net/common/skins/common/blank.gif&amp;quot;&amp;gt;Recent Changes&amp;lt;/a&amp;gt;');&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
addOnloadHook(WikiActivity2RecentChanges);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/* Add history to the Edit dropdown menu for pages */&lt;br /&gt;
function HistoryDropdownMenuItem() {&lt;br /&gt;
	$('ul.wikia-menu-button li:first-child ul li:first-child').before('&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;/index.php?title='+ encodeURIComponent (wgPageName) +'&amp;amp;action=history&amp;quot;&amp;gt;History&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;');&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
addOnloadHook(HistoryDropdownMenuItem);&lt;br /&gt;
&lt;br /&gt;
/* The above solution works better&lt;br /&gt;
function History4EditProfile() {&lt;br /&gt;
	$('a.wikia-button[data-id$=&amp;quot;editprofile&amp;quot;]').before('&amp;lt;a class=&amp;quot;wikia-button&amp;quot; href=&amp;quot;/wiki/' + wgPageName + '?action=history&amp;quot; accesskey=&amp;quot;h&amp;quot; data-id=&amp;quot;history&amp;quot;&amp;gt;History&amp;lt;/a&amp;gt;');&lt;br /&gt;
	if ( (wgCanonicalNamespace == 'User') || (wgCanonicalNamespace == 'User_talk') ) {&lt;br /&gt;
		$('ul.wikia-menu-button').before('&amp;lt;a class=&amp;quot;wikia-button&amp;quot; href=&amp;quot;/wiki/' + wgPageName + '?action=history&amp;quot; accesskey=&amp;quot;h&amp;quot; data-id=&amp;quot;history&amp;quot;&amp;gt;History&amp;lt;/a&amp;gt;');&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
 &lt;br /&gt;
addOnloadHook(History4EditProfile);&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
function Return2PatrolledPage() {&lt;br /&gt;
	$('p#mw-returnto &amp;gt; a').before('&amp;lt;a href=&amp;quot;/wiki/' + wgPageName + '&amp;quot;&amp;gt;' + wgTitle + '&amp;lt;/a&amp;gt; or ');&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
addOnloadHook(Return2PatrolledPage);&lt;/div&gt;</summary>
		<author><name>imported&gt;Servian</name></author>
	</entry>
</feed>