Jump to content

User:PrimeHunter/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
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( '//en.wikipedia.org/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]]
importScript('User:PrimeHunter/AllPages.js'); // Linkback: [[User:PrimeHunter/AllPages.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://en.wikipedia.org/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()