跳转到内容

User:Frankou/racMisc.js

维基百科,自由的百科全书

这是本页的一个历史版本,由Mywood留言 | 贡献2009年4月27日 (一) 09:29 User:Frank5308000/racMisc.js移动到User:Frankou/racMisc.js: 当由"Frank5308000"重命名作"Frankou"时已经自动移动用户页)编辑。这可能和当前版本存在着巨大的差异。

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
//<nowiki>
//$GET
function $GET (name) {
 var matches = RegExp('[&?]' + name + '=([^&]*)').exec(document.location.href);
 if (matches) { try { return decodeURIComponent(matches[1]); } catch (expt) {}}
 return null;
}
 
var racGETType;
var racGETContent;
var racGETPosition;
var racGETSummery;
var racGETAddition;
var racGETAction;
var racGETExcludePageId;
var racGETAddToList;
var racSearchStub = false;
var racInsertLocation = false;

//racSettings
var racSettings = {
sig:'~~~'
};

var racExcludeThisPage = false;
if (!racExcludeList.include) {
alert ('Exclude list is not exist!\nIts constructor is ' + racExcludeList.constructor);
}else{
racExcludeThisPage = racExcludeList.include (wgArticleId);
}

//racTime
function racTime () {
 var now = new Date();
 return (
  now.getUTCFullYear().toPaddedString (4) + '-' +
  now.getUTCMonth().toPaddedString (2) + '-' +
  now.getUTCDate().toPaddedString (2) + 'T' +
  now.getUTCHours().toPaddedString (2) + ':' +
  now.getUTCMinutes().toPaddedString (2) + ':' +
  now.getUTCSeconds().toPaddedString (2) + 'Z'
 );
}
//</nowiki>