Jump to content

User:Gracefool/common.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
/* General */
// [[User:PleaseStand/Hide Vector sidebar|Hide Vector sidebar]] //vector.js
//if (document.getElementById('editform')) {
// importScript( 'User:PleaseStand/hide-vector-sidebar.js' );
//}

// [[Wikipedia:Tools/Navigation popups|Navigation popups]]
importScript('User:Lupin/popups.js');
window.popupStructure = 'original';   //'shortmenus'
window.popupShortcutKeys = true;   //false
window.popupNavLinkSeparator = ' · ';
window.popupRevertSummaryPrompt = true;   //false

// [[Wikipedia:Comments in Local Time|Comments in Local Time]]
LocalComments = {
        dateDifference: false,
        dateFormat: 'dmy',
        timeFirst: false,
        twentyFourHours: true,
        dayOfWeek: false,
        dropDays: 28,
        dropMonths: 12
};

/* [[User:Haza-w/Drop-down_menus|Drop-down menus]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AHaza-w%2Fcactions.js&action=raw&ctype=text/javascript'); // [[User:Haza-w/cactions.js]]
var cactions = {
    itabs: true,
    svars: Array(
        ['My userspace', 'https://en.wikipedia.org/wiki/Special:PrefixIndex/User:Gracefool/'],
        ['User talk templates', mw.config.get('wgScript') + '?title=Wikipedia:Template_messages/User_talk_namespace&action=view']
    )
};
2do: move all functionality to TemplateScript

*/

/* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/wiki/TemplateScript */
$.getScript('//tools.wmflabs.org/meta/scripts/pathoschild.templatescript.js', function() {
  pathoschild.TemplateScript.Add([
    { category: 'Being nice', name: 'Welcome', template: '{{welcome}} ··'''[[User:Gracefool|gracefool]]'''[[User talk:gracefool|💬]] 08:59, 6 September 2014 (UTC)', position: 'after', editSummary: 'Welcome!', forNamespaces: 3 },
    { category: 'Being nice', name: 'Hi', template: '{{hi}} ··'''[[User:Gracefool|gracefool]]'''[[User talk:gracefool|💬]] 08:59, 6 September 2014 (UTC)', position: 'after', editSummary: 'Hi!', forNamespaces: 3 }
  ]);
});

/* Editing */
//if (typeof(wikEdUseWikEd) != 'undefined') { if (wikEdUseWikEd == true) {
  /*nw// [[User:Lenore/autolink]] plaintext links
  importScript("User:Lenore/autolink.js");
  var autolinkParseLink = false;
  // [[User:Ais523/bracketmatch.js|bracket matcher]]
  importScript('User:Ais523/bracketmatch.js');*/
//}}
// [[User:ערן/autocomplete.js|Edit autocomplete]]
mw.loader.load('//bits.wikimedia.org/he.wikipedia.org/load.php?debug=false&lang=he&modules=ext.gadget.autocomplete');
/*nw// [[User:PleaseStand/References segregator|References segregator]] editing tool
importScript("User:PleaseStand/segregate-refs.js");
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/segregate-refs.js&action=raw&ctype=text/javascript');*/


/* Watchlist */
// [[User:UncleDouggie/smart watchlist]]
//importScript('User:UncleDouggie/smart watchlist.js');
/*nw// [[user:js/watchlist|Watchlist links]]
importScript('user:js/watchlist');*/
// [[User:Ais523/catwatch|watch categories]]
//importScript('User:Ais523/catwatch.js');
/*
WatchlistConfig = { ignorePages: [
'Wikipedia talk:Citation templates',
'Wikipedia:AutoWikiBrowser/Typos',
] };
importScript('User:Gary King/hide pages in watchlist.js');*/

/* History */
//[[User:Equazcion/ActiveWatchers|Active watchers]]
importScript('User:Equazcion/ActiveWatchers.js');

/* Talk */
// [[User:PleaseStand/Comment highlighter|Comment highlighter]]
importScript("User:PleaseStand/highlight-comments.js");
window.highlightCommentsSettings = {
  highlighterFunction: function( hc ) {
    hc.addColorForUsers( '#ccffdd', [
      mw.config.get( 'wgUserName' ),
      '127.0.0.1',
      'Zanuga',
      'Jimbo Wales',
    ] );
    hc.wrapComments();
    hc.addMenuItem();
  }
};

/* User */
// [[User:PleaseStand/User info|Extra user info]]
importScript("User:PleaseStand/userinfo.js");
// reFill
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

/*nw// [[User:TheDJ/Qui]] //vector.js?
importScript('User:TheDJ/qui.js');*/


/*Replaced by Gadgets
importScript("Wikipedia:WikiProject User scripts/Scripts/Edit Top.js");*/