User:PrimeHunter/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin is at User:PrimeHunter/common.css. |
mw.loader.load('https://pl.wikipedia.org/w/index.php?title=MediaWiki:Gadget-colored-nicknames.js&action=raw&ctype=text/javascript');
mw.loader.load('https://pl.wikipedia.org/w/index.php?title=MediaWiki:Gadget-colored-nicknames.css&action=raw&ctype=text/css', 'text/css');
mw.loader.load('https://pl.wikipedia.org/w/index.php?title=MediaWiki:Gadget-WikidataInfo.js&action=raw&ctype=text/javascript');
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-CategoryAboveAll.js&action=raw&ctype=text/javascript');
mw.loader.load( '//wiki.riteme.site/w/index.php?title=User:Nardog/MoveHistory.js&action=raw&ctype=text/javascript' );
importScript('User:PrimeHunter/Search_sort.js'); // Linkback: [[User:PrimeHunter/Search sort.js]]
importScript('User:PrimeHunter/Subpages.js'); // Linkback: [[User:PrimeHunter/Subpages.js]]
importScript('User:PrimeHunter/Base title.js'); // Linkback: [[User:PrimeHunter/Base title.js]]
importScript('User:PrimeHunter/Image tabs.js'); // Linkback: [[User:PrimeHunter/Image tabs.js]]
importScript('User:PrimeHunter/English_interface.js'); // Linkback: [[User:PrimeHunter/English interface.js]]
importScript('User:Mr. Stradivarius/gadgets/DiffOnly.js') // Linkback: [[User:Mr. Stradivarius/gadgets/DiffOnly.js]]
importScript('User:Mr. Stradivarius/gadgets/SearchEditLink.js') // Linkback: [[User:Mr. Stradivarius/gadgets/SearchEditLink.js]]
importScript('User:PrimeHunter/Pageviews.js'); // Linkback: [[User:PrimeHunter/Pageviews.js]]
importScript('User:PrimeHunter/Search_sister_projects.js'); // Linkback: [[User:PrimeHunter/Search sister projects.js]]
importScript('User:PrimeHunter/Safemode edit.js'); // Linkback: [[User:PrimeHunter/Safemode edit.js]]
importScript('User:PrimeHunter/Safe mode.js'); // Linkback: [[User:PrimeHunter/Safe mode.js]]
importScript('User:Lourdes/Backlinks.js'); // Linkback: [[User:Lourdes/Backlinks.js]]
importScript('User:PrimeHunter/Articles_in_category.js'); // Linkback: [[User:PrimeHunter/Articles in category.js]]
importScript('User:PrimeHunter/Sortkeys.js'); // Linkback: [[User:PrimeHunter/Sortkeys.js]]
importScript('User:PrimeHunter/External links.js'); // Linkback: [[User:PrimeHunter/External links.js]]
importScript('User:PrimeHunter/Where links this.js'); // Linkback: [[User:PrimeHunter/Where links this.js]]
importScript('User:PrimeHunter/My_logs.js'); // Linkback: [[User:PrimeHunter/My logs.js]]
importScript('User:PrimeHunter/Vector 2022 reload.js'); // Linkback: [[User:PrimeHunter/Vector 2022 reload.js]]
mw.loader.using(['mediawiki.util'], function () {
mw.util.addPortletLink(
'p-tb',
'//www.wikidata.org/wiki/Special:Search?search=' + encodeURIComponent( mw.config.get('wgPageName') ),
'Wikidata search',
't-wikidatasearch',
'Search the page name in Wikidata',
null,
'#t-wikibase'
);
});
// Adds a wikidata description just below the "page title"
var wdDescription = " "
var wgLanguage = mw.config.get("wgContentLanguage");
var wgQid = mw.config.get("wgWikibaseItemId");
$.ajax({
url: '//www.wikidata.org/w/api.php',
data: {
action: 'wbgetentities',
ids: wgQid,
props: "descriptions",
languages : wgLanguage,
format: 'json'
},
dataType: 'jsonp',
success: function(data) {
if ( data && data.entities && data.entities[wgQid] && data.entities[wgQid].descriptions && data.entities[wgQid].descriptions[wgLanguage]){
$("#siteSub").append('<div class = "wdDesc">' + wdDescription + data.entities[wgQid].descriptions[wgLanguage].value + '</div>');
}
}
});
importScript( 'User:Qwertyytrewqqwerty/DisamAssist.js' ); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Equazcion/CustomSummaryPresets.js'); //Linkback: [[User:Equazcion/CustomSummaryPresets.js]]
var customsum1 = "My first custom edit summary";
var customsum2 = "My second custom edit summary";
var myLintHints = { };
myLintHints.rooms = "*";
mw.hook( "lintHint.config" ).fire( myLintHints );
mw.loader.load( "https://wiki.riteme.site/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript" );
importScript( 'User:Bradv/Scripts/Superlinks.js' ); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
mw.loader.using('ext.relatedArticles.readMore.bootstrap')
// Add custom CharInsert entries per [[Help:CharInsert#Customization]]
window.charinsertCustom = {
"Wiki markup": ' Custom: {\{Draft.categories|1=\n+}}\n <syntaxhighlight.lang=\"\">\n+\n</syntaxhighlight>\n <code><nowiki>+</nowiki></code> {\{ping|+}}',
};
importStylesheet('User:PrimeHunter/Hide edit count.css'); // Linkback: [[User:PrimeHunter/Hide edit count.css]]
$('.mw-notification-area-overlay:contains("This topic could not be found")').hide()