Dreadcast - AITL Libre

Pour un AITL Libre! Non à la censure!

当前为 2015-02-08 提交的版本,查看 最新版本

// ==UserScript==
// @name Dreadcast - AITL Libre
// @namespace DreadCast
// @include http://www.dreadcast.net/Main
// @grant none
// @author La Plume
// @date 08/02/2015
// @version 0.1
// @description Pour un AITL Libre! Non à la censure!
// @compat Firefox, Chrome
// @require http://code.jquery.com/jquery-1.10.2.min.js
// ==/UserScript==

jQuery.noConflict();

docAnnoncesForAITLLibre = 'http://docs.google.com/uc?export=download&id=0B-Av7SO5FgugbXdnV3ZnWUVNUW8';


function getAnnoncesForAITLLibre(aitlID){
jQuery.ajax({
type: 'GET',
url: docAnnoncesForAITLLibre,
async: false,
jsonpCallback: 'AnnoncesForAITLLibre',
contentType: "application/json",
dataType: 'jsonp',
success: function(json){
$("#nbAnnoncesAITLLibre").html(json.annonces.length);
htmlAnnoncesForAITLLibre = $("#"+aitlID+" .AnnoncesForAITLLibre .texte table tbody");
htmlAnnoncesForAITLLibre.html('');
jQuery.each(json.annonces, function(key, val){
htmlAnnoncesForAITLLibre.append(''+val[0]+''+val[1]+'');
htmlAnnoncesForAITLLibre.append(''+val[2]+'');
});
}
});
}

AITL.prototype.startSave = AITL.prototype.start;
AITL.prototype.start = function (a) {
this.startSave(a);
$("#"+this.id+" .principal .canaux_imperiaux .texte .paragraphe:last table:last tbody tr:last").after('La plume libre0');
$("#"+this.id+" .deces").after('La plume libre');
getAnnoncesForAITLLibre(this.id);
}

AITL.prototype.showAnnoncesForAITLLibre=function(){
$("#"+this.id+" .principal").children().each(function(){
"AnnoncesForAITLLibre"!=$(this).attr("class")&&$(this).fadeOut()
}),
$("#"+this.id+" .actions .menu1, #"+this.id+" .actions .menu2, #"+this.id+" .actions .menu3").fadeOut(),
$("#"+this.id+" .AnnoncesForAITLLibre").fadeIn();
getAnnoncesForAITLLibre(this.id);
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址