<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=User%3AReisuDesign%2Fcommon.js</id>
	<title>User:ReisuDesign/common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=User%3AReisuDesign%2Fcommon.js"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=User:ReisuDesign/common.js&amp;action=history"/>
	<updated>2026-04-11T08:43:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=User:ReisuDesign/common.js&amp;diff=71&amp;oldid=prev</id>
		<title>ReisuDesign: Created page with &quot;// Customization const config = mw.config.values; const dev = window.dev = window.dev || {}; dev.BD_FullFilePatrol = true; dev.betterFandom = { 	patrolOnDelete: true,		// sysop only, as it reads on the tin 	noThanks: true,				// remove Extension:Thanks bloat 	customInsert: true,			// add a dropdown on the source editor toolbar for on-demand preloads and simple inserts 	originalPreview: true,		// display original img in image overlay instead of webm 	categoryMedia: true,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=User:ReisuDesign/common.js&amp;diff=71&amp;oldid=prev"/>
		<updated>2025-11-09T13:16:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;// Customization const config = mw.config.values; const dev = window.dev = window.dev || {}; dev.BD_FullFilePatrol = true; dev.betterFandom = { 	patrolOnDelete: true,		// sysop only, as it reads on the tin 	noThanks: true,				// remove Extension:Thanks bloat 	customInsert: true,			// add a dropdown on the source editor toolbar for on-demand preloads and simple inserts 	originalPreview: true,		// display original img in image overlay instead of webm 	categoryMedia: true,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;// Customization&lt;br /&gt;
const config = mw.config.values;&lt;br /&gt;
const dev = window.dev = window.dev || {};&lt;br /&gt;
dev.BD_FullFilePatrol = true;&lt;br /&gt;
dev.betterFandom = {&lt;br /&gt;
	patrolOnDelete: true,		// sysop only, as it reads on the tin&lt;br /&gt;
	noThanks: true,				// remove Extension:Thanks bloat&lt;br /&gt;
	customInsert: true,			// add a dropdown on the source editor toolbar for on-demand preloads and simple inserts&lt;br /&gt;
	originalPreview: true,		// display original img in image overlay instead of webm&lt;br /&gt;
	categoryMedia: true,		// replace broken audio and video files in Category: namespace&lt;br /&gt;
	specialFilesRevamp: true,	// fix broken ogg and video files in Special:UnusedFiles, Special:NewFiles and add caption with link to file page&lt;br /&gt;
	sectionEditor: true,		// replace section editor anchors with custom toggles to display an in-page editor of the selected section, all without any page loading&lt;br /&gt;
	cmTOC: true,				// display a Table of Contents on the page tools on top left while in sorce editor for ease of navigation&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Better Topnav configuration&lt;br /&gt;
(window.dev = window.dev || {}).betterTopNav = {&lt;br /&gt;
	// &amp;quot;true&amp;quot; will default to 25 results, any integer can be used, but no more than 50 is recommended due to latency concerns&lt;br /&gt;
	results: true,&lt;br /&gt;
	&lt;br /&gt;
	// allows the search bar to be horizontally resized&lt;br /&gt;
	resize: true,&lt;br /&gt;
	&lt;br /&gt;
	// set the user menu to an on-hover popup&lt;br /&gt;
	hovermenu: true,&lt;br /&gt;
	&lt;br /&gt;
	// customize the tools dropdown and icons, &amp;quot;true&amp;quot; will keep the items in the default dropdown but will add the theme toggle as an icon too.&lt;br /&gt;
	/// alternatively an array like the following can be used to fully customize the elements in the dropdown as desired.&lt;br /&gt;
	/// the &amp;quot;link&amp;quot; and &amp;quot;text&amp;quot; properties are required. the &amp;quot;icon&amp;quot; property will show the element as an icon next to the dropdown.&lt;br /&gt;
    /// the used array will be logged in the browser console for ease of reference and customization&lt;br /&gt;
	tools: [&lt;br /&gt;
		{&lt;br /&gt;
			&amp;#039;link&amp;#039;: &amp;#039;/wiki/Special:RecentChanges&amp;#039;,&lt;br /&gt;
			&amp;#039;text&amp;#039;: &amp;#039;Recent Changes&amp;#039;,&lt;br /&gt;
			&amp;#039;icon&amp;#039;: &amp;#039;&amp;lt;svg class=\&amp;quot;wds-icon wds-icon-small\&amp;quot;&amp;gt;&amp;lt;use xlink:href=\&amp;quot;#wds-icons-activity-small\&amp;quot;&amp;gt;&amp;lt;/use&amp;gt;&amp;lt;/svg&amp;gt;&amp;#039;&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			// Theme switch requires &amp;#039;track&amp;#039; and &amp;#039;class&amp;#039; for the default functionality to activate&lt;br /&gt;
			&amp;#039;track&amp;#039;: &amp;#039;theme-switch-&amp;#039;+{dark:&amp;#039;light&amp;#039;, light:&amp;#039;dark&amp;#039;}[mw.user.options.values.theme],&lt;br /&gt;
			&amp;#039;class&amp;#039;: &amp;#039;wiki-tools__theme-switch&amp;#039;,&lt;br /&gt;
			&amp;#039;link&amp;#039;: &amp;#039;#&amp;#039;,&lt;br /&gt;
			&amp;#039;text&amp;#039;: {dark:&amp;#039;Light&amp;#039;, light:&amp;#039;Dark&amp;#039;}[mw.user.options.values.theme]+&amp;#039; Theme&amp;#039;,&lt;br /&gt;
			&amp;#039;icon&amp;#039;: &amp;#039;&amp;lt;svg class=\&amp;quot;wds-icon wds-icon-small\&amp;quot;&amp;gt;&amp;lt;use xlink:href=\&amp;quot;#wds-icons-&amp;#039;+{dark:&amp;#039;sun&amp;#039;, light:&amp;#039;moon&amp;#039;}[mw.user.options.values.theme]+&amp;#039;-small\&amp;quot;&amp;gt;&amp;lt;/use&amp;gt;&amp;lt;/svg&amp;gt;&amp;#039;&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			&amp;#039;link&amp;#039;: &amp;#039;/wiki/Special:Upload&amp;#039;,&lt;br /&gt;
			&amp;#039;text&amp;#039;: &amp;#039;Upload New File&amp;#039;&lt;br /&gt;
		},&lt;br /&gt;
		{&lt;br /&gt;
			&amp;#039;link&amp;#039;: &amp;#039;/wiki/Special:SpecialPages&amp;#039;,&lt;br /&gt;
			&amp;#039;text&amp;#039;: &amp;#039;Special Pages&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
	]&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// config for PageCreator&lt;br /&gt;
window.pageCreatorConfig = {&lt;br /&gt;
    namespaces: [0, 10, 8, 828],&lt;br /&gt;
    useUsernameAndLinks: true,&lt;br /&gt;
    useAvatar: false,&lt;br /&gt;
    useTimestamp: true,&lt;br /&gt;
    useUTC: false,&lt;br /&gt;
    useTimeago: true&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
importArticles({&lt;br /&gt;
	type: &amp;#039;script&amp;#039;,&lt;br /&gt;
	articles: [&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:LastEdited/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:AjaxBatchDelete.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:MoreDropdown/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:View_Source/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:Standard Edit Summary/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:EditConflictAlert/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:QuickDiff/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:MassRename/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:MassNullEdit/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:MassPatrol/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:StickySummary.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:PurgeButton.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:RedirectManagement/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:EditcountTab.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:LinkPreview/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:MassTableTracking.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:UserProfilePopup.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:View_Raw/code.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:BetterTopNav.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:TemplateWizard.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:MobilePreview.js&amp;#039;,&lt;br /&gt;
		&amp;#039;u:dev:MediaWiki:PageCreator/code2.js&amp;#039;,&lt;br /&gt;
		]&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
// betterFandom.customInsert preloads&lt;br /&gt;
mw.hook(&amp;#039;dev.BF_customInsert&amp;#039;).fire([&lt;br /&gt;
	// Template inserts&lt;br /&gt;
	{&lt;br /&gt;
		button:&amp;#039;Base Preload&amp;#039;,&lt;br /&gt;
		insert: &amp;#039;&amp;lt;includeonly&amp;gt;%+%&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation|type=Preload|content={{Preload Text}}}}&amp;lt;/noinclude&amp;gt;&amp;#039;,&lt;br /&gt;
		replaceAll: true,&lt;br /&gt;
		namespace: 10&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		button:&amp;#039;Invoke Preload&amp;#039;,&lt;br /&gt;
		insert: &amp;#039;&amp;lt;includeonly&amp;gt;{{#invoke:|main}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&amp;#039;,&lt;br /&gt;
		replaceAll: true,&lt;br /&gt;
		namespace: 10&lt;br /&gt;
	},&lt;br /&gt;
	&lt;br /&gt;
	// Module inserts&lt;br /&gt;
	{&lt;br /&gt;
		button:&amp;#039;Preload&amp;#039;,&lt;br /&gt;
		insert: &amp;#039;local p = {}\nlocal lib = require(\&amp;#039;Module:Feature\&amp;#039;)\n\nfunction p.main(frame)\n	local args = require(\&amp;#039;Module:Arguments\&amp;#039;).getArgs(frame)\n	\n	return p._main(args)\nend\n\nfunction p._main(args)\n	\nend\n\nreturn p&amp;#039;,&lt;br /&gt;
		replaceAll: true,&lt;br /&gt;
		namespace: 828&lt;br /&gt;
	},&lt;br /&gt;
	&lt;br /&gt;
	// File insterts&lt;br /&gt;
	{&lt;br /&gt;
		button:&amp;#039;File Redirect&amp;#039;,&lt;br /&gt;
		namespace: 6,&lt;br /&gt;
		insert: &amp;#039;#REDIRECT [[File:{{%safesubst%#replace:{{%safesubst%#replace:{{%subst%#replace:{{%subst%#titleparts:{{%subst%PAGENAME}}}}|: | }}|&amp;quot; | }}|/|_}}]]\n\n[[Category:Redirect Pages]]&amp;#039;,&lt;br /&gt;
		replaceAll: true&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		button:&amp;#039;Placeholder&amp;#039;,&lt;br /&gt;
		insert: &amp;#039;{{Placeholder Image%+%}}&amp;#039;,&lt;br /&gt;
		namespace: 6&lt;br /&gt;
	},&lt;br /&gt;
	{&lt;br /&gt;
		button:&amp;#039;Other&amp;#039;,&lt;br /&gt;
		namespace: 6,&lt;br /&gt;
		nested: [&lt;br /&gt;
			{&lt;br /&gt;
				button:&amp;#039;User Image&amp;#039;,&lt;br /&gt;
				insert: &amp;#039;[[Category:User Profile Images]]&amp;#039;,&lt;br /&gt;
				replaceAll: true,&lt;br /&gt;
				namespace: 6&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				button:&amp;#039;Mail&amp;#039;,&lt;br /&gt;
				insert: &amp;#039;==Summary==\n{{File|Mail Screenshots}}\n\n==Licensing==\n{{Fairuse}}&amp;#039;,&lt;br /&gt;
				replaceAll: true,&lt;br /&gt;
				namespace: 6&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				button:&amp;#039;General Cat Only&amp;#039;,&lt;br /&gt;
				insert: &amp;#039;==Summary==\n{{File|%+%}}\n\n==Licensing==\n{{Fairuse}}&amp;#039;,&lt;br /&gt;
				replaceAll: true,&lt;br /&gt;
				namespace: 6&lt;br /&gt;
			},&lt;br /&gt;
			{&lt;br /&gt;
				button:&amp;#039;General File&amp;#039;,&lt;br /&gt;
				insert: &amp;#039;==Summary==\n{{File\n|categories    = \n|featuring     = \n|neighbors     = \n|soundtracks   = \n|caption       = \n|sourcelink1   = \n|sourcelabel1  = \n|sourcelink2   = \n|sourcelabel2  = \n|sourcelink3   = \n|sourcelabel3  = \n|artistlink    = \n|artist        = \n|lang          = \n|date          = \n|gallery       = \n|description   = \n|transcription = \n|alt           = \n|annotations   = \n}}\n\n==Licensing==\n{{Fairuse}}&amp;#039;,&lt;br /&gt;
				replaceAll: true,&lt;br /&gt;
				namespace: 6&lt;br /&gt;
			},&lt;br /&gt;
		],&lt;br /&gt;
	},&lt;br /&gt;
]);&lt;br /&gt;
&lt;br /&gt;
// Custom Scripts&lt;br /&gt;
var lp = config.wgContentLanguage==&amp;#039;en&amp;#039; ? &amp;#039;&amp;#039; : &amp;#039;en:&amp;#039;; // add en: prefix in non-en wikis for proper load&lt;br /&gt;
importScriptPage(lp+&amp;#039;User:Mikevoir/BetterFandom.js&amp;#039;, &amp;#039;community&amp;#039;); // [[w:c:community:User:Mikevoir/BetterFandom.js]]&lt;br /&gt;
importScriptPage(lp+&amp;#039;User:Mikevoir/TimeParser.js&amp;#039;, &amp;#039;community&amp;#039;); // [[w:c:community:User:Mikevoir/TimeParser.js]]&lt;br /&gt;
importScriptPage(lp+&amp;#039;User:Kuhlau/CopyTitle.js&amp;#039;, &amp;#039;genshin-impact&amp;#039;); // [[w:c:genshin-impact:User:Kuhlau/CopyTitle.js]]&lt;br /&gt;
if (config.wgNamespaceNumber == 14) {importScriptPage(lp+&amp;#039;User:Mikevoir/UnusedFiles.js&amp;#039;, &amp;#039;community&amp;#039;);} // [[w:c:community:User:Mikevoir/UnusedFiles.js]]&lt;br /&gt;
&lt;br /&gt;
window.dev = window.dev || {};&lt;br /&gt;
(window.dev = window.dev || {}).betterFandom&lt;br /&gt;
window.dev.editSummaries = {&lt;br /&gt;
    css: &amp;#039;#stdSummaries { ... }&amp;#039;,&lt;br /&gt;
    select: &amp;#039;User:ReinDevildom/Stdsummaries&amp;#039;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
window.PurgeButtonText = &amp;#039;purge&amp;#039;;&lt;/div&gt;</summary>
		<author><name>ReisuDesign</name></author>
	</entry>
</feed>