Consumer key: TgHNMa7WZE7Cxi1JbkAMQ
Consumer secret: SHy9mBMBPNj3Y17et9BF4g5XeqS4y3vkeW24PttDcY
var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
var ado = (function() { | |
if (typeof window === "undefined") { | |
return new ActiveXObject("ADODB.Stream"); | |
} else { | |
var _GetObject = (typeof GetObject === "function") ? GetObject : (function() { | |
var script = window.document.createElement("script"); | |
script.setAttribute("language", "VBScript"); | |
script.innerHTML = "Function GetObjectHelper(name)\nSet GetObjectHelper = GetObject(name)\nEnd Function"; | |
window.document.body.appendChild(script); |
using System; | |
using System.Runtime.InteropServices; | |
using System.Collections; | |
using System.Windows.Forms; | |
using System.Drawing; | |
namespace DragDrop | |
{ | |
[Guid("17DF9AAF-10AF-4917-A9E3-37609089120F")] | |
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] |
function _if(val) { | |
function _true() { | |
return { | |
_else: function () {}, | |
_elseif: function () {return _true} | |
}; | |
} | |
function _false() { | |
return { | |
_else: function (cb) {cb()}, |
javascript:(function (href, target) { | |
href = "http://aclog.koba789.com/"; | |
target = location.href.split("/").slice(2); | |
if (!target[target.length - 1]) target.pop(); | |
if (target.length === 3) { | |
href += target[2]; | |
} else if (target.length === 4) { | |
if (target[3] === "recent") { | |
href += target[2] + "/timeline"; | |
} else if (target[3] === "oldest") { |
(function() { | |
var list, toDragon; | |
list = [["bug", "dragon"], ["Bug", "Dragon"], ["バグ", "ドラゴン"], ["ばぐ", "どらごん"], ["バグ", "ドラゴン"]]; | |
(toDragon = function(node) { | |
if (node.nodeValue !== null) { | |
[].forEach.call(list, function(item) { | |
node.nodeValue = node.nodeValue.split(item[0]).join(item[1]); | |
}); | |
} | |
[].forEach.call(node.childNodes, function(child) { |
// Q.1 | |
// for loop | |
function sumForLoop(arr) { | |
var ret = 0; | |
for (let i = 0; i < arr.length; ++i) { | |
ret += arr[i]; | |
} | |
return ret; | |
} | |
// while loop |
javascript:(() => { | |
function download(uid) { | |
var url = ""; | |
var metadata = null; | |
return new Promise((resolve, reject) => { | |
amznMusic.data.getServerSongForPlayer(result => { | |
if (!result) { | |
reject(); | |
return; |
javascript:(function(){var a=prompt("\u6587\u5b57(\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u6539\u884c)");if(null!==a){var c=document.querySelectorAll("h2")[1].children[1],b=document.createElement("div");b.textContent=a;a=b.innerHTML.split(",").join("<br>");c.innerHTML=a}})(); |