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

Content deleted Content added
Technical 13 (talk | contribs)
Debugging...
Technical 13 (talk | contribs)
Since they changed from bugzilla to phabricator, it's no longer stable.
 
(316 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() {
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>');
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>');
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> ', '');
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;')
})
 
//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]]
/* Refresh my WatchList page when viewing every minute */
 
if (document.___location.href == "http://en.wikipedia.org/wiki/Special:Watchlist") {
/*
setTimeout(function(){___location = ''},60000)
importScript( 'User:Anomie/previewtemplatelastmod.js' ); // Linkback: [[User:Anomie/previewtemplatelastmod.js]]
var timeNow = new Date();
importScript( 'User:Equazcion/ScriptInstaller.js' );// [[User:Equazcion/ScriptInstaller]]
var minNow = timeNow.getMinutes();
importScript( 'User:Technical 13/Scripts/fileRedlinks.js' );// [[User:Technical 13/Scripts/fileRedlinks]]*/
var minNow = minNow - 5;
importScript( 'User:Technical 13/Scripts/admin eye.js' );// [[User:Technical 13/Scripts/admin eye]]
timeNow.setMinutes(minNow);
importScript( 'User:Technical 13/Scripts/Gadget-pageCount.js' );// [[User:Technical 13/Scripts/Gadget-pageCount]]
var postTime = $('td.mw-enhanced-rc').html();
/*
for (i=0;1<6;i++) {var postTime = postTime.replace("&nbsp;", "");}
// // // importScript( 'User:Technical_13/Scripts/GANreview.js' );// [[User:Technical_13/Scripts/GANreview]]
var postTime = postTime.replace("<span class="mw-enhancedchanges-arrow-space"></span>", "");
importScript( 'User:Technical_13/Scripts/CommonHebrewUserNames.js' );// [[User:Technical_13/Scripts/CommonHebrewUserNames]]
var postTime = postTime.replace("<abbr class="newpage" title="This edit created a new page">N</abbr>", "");
importScript( 'User:Technical_13/Scripts/Gadget-BugCreateNew.js' );// [[User:Technical_13/Scripts/Gadget-BugCreateNew]]*/
var postTime = postTime.replace("<abbr class="minoredit" title="This is a minor edit">m</abbr>", "");
importScript( 'User:Technical_13/Scripts/Teahouse.js' );// [[User:Technical_13/Scripts/Teahouse]]
var postTime = postTime.replace("<abbr class="botedit" title="This edit was performed by a bot">b</abbr>", "");
importScript( 'User:Technical_13/Scripts/ACC WikiLove.js' );// [[User:Technical_13/Scripts/ACC WikiLove]]
var postTime = postTime.replace("<abbr class="unpatrolled" title="This edit has not yet been patrolled">!</abbr>", "");
/*
var postTime = postTime.split(':', "2");
importScript( 'User:Technical_13/Scripts/Gadget-LiveClock.js' );// [[User:Technical_13/Scripts/Gadget-LiveClock]]*/
var postHour = postTime[0];
/// importScript( 'User:Technical_13/Scripts/Gadget-listStyles.js' );// [[User:Technical_13/Scripts/Gadget-listStyles]] (running sandbox version in [[User:Technical 13/vector.js]])
var postMin = postTime[1];
 
var timePost = new Date();
/* AFCH */
timePost.setHours(postHour);
// importScript( 'User:Theopolisme/afch-rewrite.js' );// [[User:Theopolisme/afch-rewrite.js]] [[WP:AFCHRW|AFCHRW]]
timePost.setMinutes(postMin);
// importScript( 'User:Technical 13/Gadget-afchelper.js' );// Develop [[User:Technical 13/Gadget-afchelper.js]]
if (timePost >= timeNow) {$('td.mw-enhanced-rc').css({fontWeight: 'bold', fontSize: '12pt'});
// 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]]
 
/* Shrink all things on my "Contributions" page that no-one has edited since me. *//*
$('.mw-uctop').closest('li').css({"font-size":"6px", "text-decoration":"italic"});
*/