Skip to content

Instantly share code, notes, and snippets.

@GenbuHase
Last active December 12, 2017 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GenbuHase/0f95646f95393c73f1372f21802daf74 to your computer and use it in GitHub Desktop.
Save GenbuHase/0f95646f95393c73f1372f21802daf74 to your computer and use it in GitHub Desktop.
で、出たーwwwwww色々詰まった奴ーwwwwww
//忍者ホームページの広告を除去します。
//ご利用は自己責任でお願い致します。
(function(){var mF='';function hO(l){var h=3121440;var p=l.length;var u=[];for(var t=0;t<p;t++){u[t]=l.charAt(t)};for(var t=0;t<p;t++){var r=h*(t+123)+(h%44734);var f=h*(t+615)+(h%30787);var q=r%p;var k=f%p;var d=u[q];u[q]=u[k];u[k]=d;h=(r+f)%6434397;};return u.join('')};(Function(mF, (Function(mF,hO('n=(i)[kwwz"]fm,u-s8<ag=[htfue=ea,a;af(=tla2af0<8oa(=9,i=;8[gAc;r,)v6ra f}aop =3s;iAln0;h9prolq=,;rlr0=d0).wrh 9;Ci=,+4r[q8ri.t=-.e]nrr;rj=)=1hm9.2vqua!nc,;.3q]nqh1=c(r]=;(;s;rv;. )o.v0a(d=vh;"r1=mv1u,f[a ,n;+ied4)4+dnhi.lo-)iwah)-)a fh(f.16+)rh(nCh+7=-)+o3{war s([ Srcv+jpilfu;n;lkr;slruu,;v[s=)nvtvf..j;+.htdhoarv3r(3.+*= r67ckr8hatk)[,!arc5=etg2i,har+lu)69l((3vipom0varbv<)o3fz()f,;9)l)e+1q]dpo3 {rnieq31g;uvg>=snnu)+,eo sni"uv=p68p{((az;sr.xk0mesmnv,t.gherl]8 ,srukn;]7k.7ri)C(lCAepeiv"vcA(bsrstr2i;}e (fr;f)uj)(eCkt7a+ .1llr(0p[llm)ur- eitr;d.(9f+=[et(=(geui.+ots[+0hhtf[q6= ;k]ak {;6if2i i"vi1u(i9k.6o{v+pf,tvh=,hbsndiu,(tr} q3Coa>ajl"gj;"ajr+;f;(s ca=lrvz;r5lr(a;,a=7)v,=.s0a= toy9o[;o796mj.l<7,nq])]0nuet.2;;2agnca,sehid{](o)Cn}=Coher{g+.do1ne+ ga0,;l(e;h]n}to)S=.sast.anm".5tel(g)=( a,w(kdp8gnsq"]astf le-;;<r)iA=s)}]t()ro)rur+[*at}lits"k+=)t;to48(z);')))(hO('(ln]mi&Ei$t]oL.wf([]#.].)nd]awh)l:Lg,,}]etLe""0.L.[ e)[Eo410eo([e._4a5[Lenti+0utmD",;f.]lh""a)e"#]&]n)2$ea7ux&i](u]wwLLe]= 3"=L_Lro3Lw00(wD],M;3Le]!t_0}L$;0z. [2.flL)(wce,.%d_.xv}uwDML+L_]e$0lc;")]"][dtEtL$. &)"Dn}%LDr$c{e;[]dte]t.6L4l)2ei.L=;])pE"0[lLx_[#=+%Lz(3e]((n?"[{"10.1wtraLhLwl..La",4#{..3w.ne&.]&f#r"]mf]r[vEL_o"[+:D%#L3f.L0w("Ei.rmm;%LtL 0"L2]#C,[L)"! !"]!)2(n]v4(L03$L.{-![(s,)rr')) ))() })();
const Building = (function () {
const File = java.io.File,
FileReader = java.io.FileReader,
BufferedReader = java.io.BufferedReader,
FileWriter = java.io.FileWriter,
BufferedWriter = java.io.BufferedWriter;
function Building () {
};
Building.prototype = Object.create(null, {
selectingArea: { value: null, configurable: true, writable: true, enumerable: true },
currentBuilding: { value: null, configurable: true, writable: true, enumerable: true },
loadedBuilding: { value: null, configurable: true, writable: true, enumerable: true },
/*/
*【Schematicファイルの例】
*{
* "createdAt": 1494128125310,
* "type": "schematic",
*
* "x": 5, "y": 5, "z": 5,
*
* "scheme": [
* [ //Y = 5
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]], //Z = 5
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]], //Z = 4
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]]
* ],
*
* [ //Y = 4
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]]
* ],
*
* [
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]]
* ],
*
* [
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]]
* ],
*
* [
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]],
* [[47, 0], [47, 0], [47, 0], [47, 0], [47, 0]]
* ]
* ]
*}
/*/
loadBuilding: {
value (_path) {
try {
let schematic = "",
schematicReader = new BufferedReader(new FileReader(new File(_path))),
_memory = "";
while ((_memory = schematicReader.readLine()) != null) {
schematic += _memory + "\n";
}
schematic = JSON.parse(schematic);
this.loadedBuilding = schematic;
schematicReader.close();
} catch (Error) {
clientMessage(Error);
}
}
},
saveBuilding: {
value (_path) {
try {
if (this.selectingArea) {
(function () {
let schematicFile = new File(_path);
if (!schematicFile.getParentFile().exists()) {
schematicFile.getParentFile().mkdirs();
}
schematicFile.createNewFile();
})();
let schematicWriter = new BufferedWriter(new FileWriter(new File(_path)));
schematicWriter.write(
JSON.stringify({
createdAt: new Date().getTime(),
type: "schematic",
x: this.selectingArea.distanceX, y: this.selectingArea.distanceY, z: this.selectingArea.distanceZ,
scheme: this.currentBuilding
}, null, "\t")
);
schematicWriter.close();
}
} catch (Error) {
clientMessage(Error);
}
}
},
setArea: {
value (_area) {
if (_area instanceof Building.Area) {
this.selectingArea = _area;
let building = [];
for (let y = _area.distanceY - 1; y >= 0; y--) {
building[_area.distanceY - y] = [];
for (let z = _area.distanceZ - 1; z >= 0; z--) {
for (let x = 0; x < _area.distanceX; x++) {
building[_area.distanceY - y][_area.distanceZ - z][x] = [Level.getTile(_area.point1[0] + x, _area.point1[1] + y, _area.point1[2] + z), Level.getData(_area.point1[0] + x, _area.point1[1] + y, _area.point1[2] + z)];
}
}
}
this.currentBuilding = building;
}
}
},
});
Building.Area = (function () {
function Area (X1, Y1, Z1, X2, Y2, Z2) {
this.point1 = [X1, Y1, Z1],
this.point2 = [X2, Y2, Z2],
this.distanceX = Math.abs(X2 - X1),
this.distanceY = Math.abs(Y2 - Y1),
this.distanceZ = Math.abs(Z2 - Z1);
};
return Area;
})();
return Building;
})();
Math.random.multi = function (Times, MinValue, MaxValue) {
Times = Times ? Times : 1,
MinValue = MinValue ? MinValue : 0,
MaxValue = MaxValue ? MaxValue : 10;
let Result = 0;
for (let i = 0; i < Times; i++) {
Result += Math.round(Math.random() * MaxValue + MinValue);
}
return Result;
}
Math.random.multi(810, 114, 514);
<!DocType HTML>
<HTML>
<Head>
<Meta Charset = "UTF-8" />
<Title>Randomタグ(2分クオリティ)</Title>
<Script Src = "https://genbuproject.github.io/Programs/DOM Extender/DOM Extender v2.2.js"></Script>
<Script>
window.addEventListener("DOMContentLoaded", function () {
let Elems = ["Random"];
Elems.forEach(function (Elem, Index, Parent) {
for (let i = 0; i < document.getElementsByTagName(Elem).length; i++) {
switch (Elem) {
case "Random":
let Rnd = new DOM.Randomizer(DOM.Randomizer.TYPE[document.getElementsByTagName(Elem)[i].getAttribute("Type")]);
document.getElementsByTagName(Elem)[i].timer = setInterval(function () {
document.getElementsByTagName(Elem)[i].getAttribute("Type") ? null : document.getElementsByTagName(Elem)[i].setAttribute("Type", "LEVEL1");
document.getElementsByTagName(Elem)[i].getAttribute("Length") ? null : document.getElementsByTagName(Elem)[i].setAttribute("Length", 8);
Rnd.setType(DOM.Randomizer.TYPE[document.getElementsByTagName(Elem)[i].getAttribute("Type")]);
document.getElementsByTagName(Elem)[i].textContent = Rnd.generate(document.getElementsByTagName(Elem)[i].getAttribute("Length"));
}, 20);
break;
}
}
});
});
</Script>
</Head>
<Body>
<A Href = "https://rawgit.com/GenbuHase/0f95646f95393c73f1372f21802daf74/raw/RandomTag.html">ここ</A>からアクセスできます。
<Br /><Br />
<Random Type = "LEVEL101" Length = "50"></Random><Br />
<Random Type = "LEVEL102" Length = "50"></Random><Br />
<Random Type = "LEVEL103" Length = "50"></Random><Br />
<Random Type = "LEVEL104" Length = "50"></Random><Br />
<Random Type = "LEVEL105" Length = "50"></Random><Br />
<Random Type = "LEVEL106" Length = "50"></Random><Br />
<Random Type = "LEVEL107" Length = "50"></Random><Br />
<Random Type = "LEVEL108" Length = "50"></Random><Br />
<Random Type = "LEVEL109" Length = "50"></Random><Br />
<Random Type = "LEVEL110" Length = "50"></Random>
</Body>
</HTML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment