User:Technical 13/common.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
m Debugging...
Technical 13 (talk | contribs)
Since they changed from bugzilla to phabricator, it's no longer stable.
 
(305 intermediate revisions by the same user not shown)
Line 1:
/* WikiBreak */
/* Visual name change mechanic so that I see "ShoeMaker" as I prefer while being able to keep my "Technical_13" login. */
// importScript( 'User:Technical_13/Scripts/WikiBreak.js' );//[[User:Technical 13/Scripts/WikiBreak]] annoyer...
$('h1[id^="firstHeading"]').each(function() {
/*
this.innerHTML = this.innerHTML.replace("User:Technical 13", "User:ShoeMaker");
$('h1[id^="firstHeading"]li.toclevel-2').each(function() {
});
$(this).html($(this).html().replace('<span>(<span>e<span>dit</span></span> | <span>t<span>alk</span></span> | <span>h<span>istory</span></span> <span>| <span>p<span>rotect</span></span> | <span>d<span>elete</span></span></span> | <span>l<span>i</span>nk<span>s</span></span> | <span>w<span>atch</span></span> | <span>log<span>s</span></span> | <span>v</span><span>iews</span>)</span>',''));
$('a[href^="/wiki/User:Technical_13"]').each(function() {
this.innerHTML = this.innerHTML.replace("Technical 13", "ShoeMaker");
});
 
*/
/* Virtual signature */
 
$('span[class="ShoeSig"]').each(function() {
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');//[[Meta:User:Hedonil/XTools/XTools.js]]
this.innerHTML = this.innerHTML.replace('>T13<', '>ShoeMaker<');
 
this.innerHTML = this.innerHTML.replace('>C<', '>Contributions<');
/*
this.innerHTML = this.innerHTML.replace('•', '<span style="text-decoration: blink; color: #FA88AF;">•</span>');
importScript( 'User:Anomie/previewtemplatelastmod.js' ); // Linkback: [[User:Anomie/previewtemplatelastmod.js]]
this.innerHTML = this.innerHTML.replace('<a href="/wiki/User_talk:Technical_13" title="User talk:Technical 13" class="mw-redirect">M</a>', '<a target="_blank" rel="nofollow" class="external text" href="http://ddowiki.com/page/User_talk:Technical_13">Message</a>');
importScript( 'User:Equazcion/ScriptInstaller.js' );// [[User:Equazcion/ScriptInstaller]]
this.innerHTML = this.innerHTML.replace('• <a href="/wiki/User:Technical_13/Sig" title="User:Technical 13/Sig" class="mw-redirect">Click to learn how to view this signature as intended</a> ', '');
importScript( 'User:Technical 13/Scripts/fileRedlinks.js' );// [[User:Technical 13/Scripts/fileRedlinks]]*/
this.innerHTML = this.innerHTML.replace('<a href="/wiki/User_talk:Technical_13" title="User talk:Technical 13" class="mw-redirect">talk</a><span class="before-localcomments">', '&nbsp;<a href="/wiki/Special:Contributions/Technical_13" title="Special:Contributions/Technical 13">Contributions</a>&nbsp;<span style="text-decoration: blink; color: #FA88AF;">•</span>&nbsp;<a target="_blank" rel="nofollow" class="external text" href="http://ddowiki.com/page/User_talk:Technical_13">Message</a>&nbsp;')
importScript( 'User:Technical 13/Scripts/admin eye.js' );// [[User:Technical 13/Scripts/admin eye]]
});
importScript( 'User:Technical 13/Scripts/Gadget-pageCount.js' );// [[User:Technical 13/Scripts/Gadget-pageCount]]
/*
// // // importScript( 'User:Technical_13/Scripts/GANreview.js' );// [[User:Technical_13/Scripts/GANreview]]
importScript( 'User:Technical_13/Scripts/CommonHebrewUserNames.js' );// [[User:Technical_13/Scripts/CommonHebrewUserNames]]
importScript( 'User:Technical_13/Scripts/Gadget-BugCreateNew.js' );// [[User:Technical_13/Scripts/Gadget-BugCreateNew]]*/
importScript( 'User:Technical_13/Scripts/Teahouse.js' );// [[User:Technical_13/Scripts/Teahouse]]
importScript( 'User:Technical_13/Scripts/ACC WikiLove.js' );// [[User:Technical_13/Scripts/ACC WikiLove]]
/*
importScript( 'User:Technical_13/Scripts/Gadget-LiveClock.js' );// [[User:Technical_13/Scripts/Gadget-LiveClock]]*/
/// importScript( 'User:Technical_13/Scripts/Gadget-listStyles.js' );// [[User:Technical_13/Scripts/Gadget-listStyles]] (running sandbox version in [[User:Technical 13/vector.js]])
 
/* AFCH */
// importScript( 'User:Theopolisme/afch-rewrite.js' );// [[User:Theopolisme/afch-rewrite.js]] [[WP:AFCHRW|AFCHRW]]
// importScript( 'User:Technical 13/Gadget-afchelper.js' );// Develop [[User:Technical 13/Gadget-afchelper.js]]
// importScript( 'MediaWiki:Gadget-afchelper-beta.js' );// Pushed beta [[MediaWiki:Gadget-afchelper-beta.js]] [[WP:AFCHB|AFCHB]]
 
/*
//// importScript( 'Wikipedia:AutoEd/complete.js' );// [[WP:AutoEd]]*/
//importScript( 'User:Writ Keeper/Scripts/teahouseUtility.js' );// 1-click to + TH invite/tb to a user [[User:Writ Keeper]]
/*importScript( 'User:Lupin/recent2.js' );// Lupin's AVT tool [[User:Lupin]]
importScript( 'User:Technical 13/Scripts/LagToHours.js' );// based on [[User:Equazcion/LagToMinutes]]
 
/* RefreshShrink all things on my WatchList"Contributions" page whenthat viewingno-one everyhas minuteedited since me. *//*
$('.mw-uctop').closest('li').css({"font-size":"6px", "text-decoration":"italic"});
if (document.___location.href == "http://en.wikipedia.org/wiki/Special:Watchlist") {
*/
setTimeout(function(){___location = ''},60000);
var timeNow = new Date();
var minNow = timeNow.getMinutes();
var minNow = minNow - 5;
timeNow.setMinutes(minNow);
var postTime = $('td.mw-enhanced-rc').html();/*
for (i=0;i<6;i++) {var postTime = postTime.replace("&nbsp;", "");}
var postTime = postTime.replace("<span class="mw-enhancedchanges-arrow-space"></span>", "");
var postTime = postTime.replace("<abbr class="newpage" title="This edit created a new page">N</abbr>", "");
var postTime = postTime.replace("<abbr class="minoredit" title="This is a minor edit">m</abbr>", "");
var postTime = postTime.replace("<abbr class="botedit" title="This edit was performed by a bot">b</abbr>", "");
var postTime = postTime.replace("<abbr class="unpatrolled" title="This edit has not yet been patrolled">!</abbr>", "");
var postTime = postTime.split(':', "2");
var postHour = postTime[0];
var postMin = postTime[1];
var timePost = new Date();
timePost.setHours(postHour);
timePost.setMinutes(postMin);
var SHOE = timePost + " =?= " timeNow;
$('td[class="mw-enhanced-rc"]').each(function() {this.innerHTML = this.innerHTML.replace('&nbsp;&nbsp;&nbsp;', SHOE);});
if (timePost >= timeNow) {$('td.mw-enhanced-rc').css({fontWeight: 'bold', fontSize: '12pt'});}*/
}