Jump to navigation
Jump to search
m (last character, hopefully) |
(test worked) |
||
(34 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
// | // FIND AND REPLACE (modified) | ||
// | |||
// Author: User:Zocky @ en.wikipedia.org | |||
// License: (c) 2006, released under GPL | |||
// Desc: Adds a dropdown utility under the edit toolbar for search and replace terms. | |||
importScript('User:Najzere/zockys SearchBox.js'); | |||
importScript('User: | |||
/ | // AJAX PATROL V1.1 (modified) | ||
// | |||
// Author: User:Ryan Schmidt | |||
// License: Unstated (CC-BY-SA) | |||
// Description: Moves to next diff when you patrol and edit, or removes link if you're on the last one. | |||
var AjaxPatrolAutoNext = true; | var AjaxPatrolAutoNext = true; // set to "true" to turn on, or "false" to turn off | ||
importScript('User:Najzere/ajaxpatrol.js'); | |||
// URL SOURCE ON UPLOAD | |||
// | |||
// Author: User:Najzere | |||
// License: CC-BY-SA 3.0 - http://creativecommons.org/licenses/by-sa/3.0/ | |||
// Description: Adds image source to upload summary when uploading from URL | |||
importScript('User:Najzere/adduploadurl.js'); | |||
// ACHIEVEMENTS QUICK-FORMATTING | |||
// | |||
// Author: User:Najzere | |||
// License: CC-BY-SA 3.0 - http://creativecommons.org/licenses/by-sa/3.0/ | |||
// Description: Adds a button to the edit toolbar that attempts to format | |||
// copy/paste from xbox360achievements.com into SW achievements table. | |||
importScript('User:Najzere/formatachievements.js'); | |||
/ | // EDIT COUNTER | ||
// | |||
// Author: User:Najzere | |||
// License: CC-BY-SA 3.0 - http://creativecommons.org/licenses/by-sa/3.0/ | |||
// Description: Adds a button to the toolbox that generates a table of your edit counts by namespace. | |||
var editPage = 'Edit count'; // Page in userspace where table is written to | |||
var tableClass = 'collapsible collapsed'; // Class for the table | |||
var tableStyle = 'width:100%'; // Styles for the table | |||
mw.loader.load('http://strategywiki.org/w/index.php?title=User:Najzere/edit_counter.js&action=raw&ctype=text/javascript'); | |||
// test | |||
importScript('User:Najzere/spoilerimage.js'); | |||
/ | // CUSTOM STUFF ON PAGE LOAD | ||
/ | // | ||
/ | // Author: User:Najzere | ||
/ | // License: Public Domain | ||
/ | // Description: Add some links | ||
// Add stuff on page load | |||
$(document).ready(function() { | |||
// Add link directly to sub-pages of the current page | |||
mw.util.addPortletLink('p-tb','/w/index.php?title=Special:PrefixIndex&prefix='+mw.config.get('wgTitle')+'/'+'&namespace='+mw.config.get('wgNamespaceNumber'),'Sub-pages','t-subpages','View sub-pages',false,'#t-recentchangeslinked'); | |||
function | mw.util.addPortletLink('p-personal','/wiki/User:Najzere/Cleanup','Cleanup','p-cleanup','Personal cleanup stuff',false,'#pt-preferences'); | ||
}); | |||
Latest revision as of 14:22, 11 April 2013
// FIND AND REPLACE (modified)
//
// Author: User:Zocky @ en.wikipedia.org
// License: (c) 2006, released under GPL
// Desc: Adds a dropdown utility under the edit toolbar for search and replace terms.
importScript('User:Najzere/zockys SearchBox.js');
// AJAX PATROL V1.1 (modified)
//
// Author: User:Ryan Schmidt
// License: Unstated (CC-BY-SA)
// Description: Moves to next diff when you patrol and edit, or removes link if you're on the last one.
var AjaxPatrolAutoNext = true; // set to "true" to turn on, or "false" to turn off
importScript('User:Najzere/ajaxpatrol.js');
// URL SOURCE ON UPLOAD
//
// Author: User:Najzere
// License: CC-BY-SA 3.0 - http://creativecommons.org/licenses/by-sa/3.0/
// Description: Adds image source to upload summary when uploading from URL
importScript('User:Najzere/adduploadurl.js');
// ACHIEVEMENTS QUICK-FORMATTING
//
// Author: User:Najzere
// License: CC-BY-SA 3.0 - http://creativecommons.org/licenses/by-sa/3.0/
// Description: Adds a button to the edit toolbar that attempts to format
// copy/paste from xbox360achievements.com into SW achievements table.
importScript('User:Najzere/formatachievements.js');
// EDIT COUNTER
//
// Author: User:Najzere
// License: CC-BY-SA 3.0 - http://creativecommons.org/licenses/by-sa/3.0/
// Description: Adds a button to the toolbox that generates a table of your edit counts by namespace.
var editPage = 'Edit count'; // Page in userspace where table is written to
var tableClass = 'collapsible collapsed'; // Class for the table
var tableStyle = 'width:100%'; // Styles for the table
mw.loader.load('http://strategywiki.org/w/index.php?title=User:Najzere/edit_counter.js&action=raw&ctype=text/javascript');
// test
importScript('User:Najzere/spoilerimage.js');
// CUSTOM STUFF ON PAGE LOAD
//
// Author: User:Najzere
// License: Public Domain
// Description: Add some links
// Add stuff on page load
$(document).ready(function() {
// Add link directly to sub-pages of the current page
mw.util.addPortletLink('p-tb','/w/index.php?title=Special:PrefixIndex&prefix='+mw.config.get('wgTitle')+'/'+'&namespace='+mw.config.get('wgNamespaceNumber'),'Sub-pages','t-subpages','View sub-pages',false,'#t-recentchangeslinked');
mw.util.addPortletLink('p-personal','/wiki/User:Najzere/Cleanup','Cleanup','p-cleanup','Personal cleanup stuff',false,'#pt-preferences');
});