テスト
2023/09/24(日) 16:13:42.97ID:H/2vOjOy
てすと
2023/09/24(日) 16:14:11.83ID:1FUR7V+0
てすと
2024/04/14(日) 11:26:35.91ID:A6nc8mUa
「@if …」から「//end」の範囲を CompileUpdateNewPostFtd.bat として保存
@if (0)==(0) echo off
set jsc=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\jsc.exe
"%jsc%" /nologo /debug+ /fast- /t:winexe /out:"%~dp0UpdateNewPostFtd.exe" "%~f0"
exit /b %ERRORLEVEL%
@end
import Microsoft.Win32;
import System;
import System.IO;
var arguments: String[] = Environment.GetCommandLineArgs();
if (arguments.Length == 1)
Environment.Exit(0);
const live5chRegistoryKey: String
= "HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\Live2ch\\";
var live5chPath: String = Registry.GetValue(live5chRegistoryKey + "Path",
"Path", Environment.CurrentDirectory + "/live2ch.exe");
var live5chDirectory: String = Path.GetDirectoryName(live5chPath);
var ftdPostFile = live5chDirectory + "\\newpost.ftd";
var maxPost: int = Int32.Parse(Registry.GetValue(
live5chRegistoryKey + "Setting",
"FtdMaxPost", Environment.CurrentDirectory + "\\live2ch.exe"));
/*
@if (0)==(0) echo off
set jsc=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\jsc.exe
"%jsc%" /nologo /debug+ /fast- /t:winexe /out:"%~dp0UpdateNewPostFtd.exe" "%~f0"
exit /b %ERRORLEVEL%
@end
import Microsoft.Win32;
import System;
import System.IO;
var arguments: String[] = Environment.GetCommandLineArgs();
if (arguments.Length == 1)
Environment.Exit(0);
const live5chRegistoryKey: String
= "HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\Live2ch\\";
var live5chPath: String = Registry.GetValue(live5chRegistoryKey + "Path",
"Path", Environment.CurrentDirectory + "/live2ch.exe");
var live5chDirectory: String = Path.GetDirectoryName(live5chPath);
var ftdPostFile = live5chDirectory + "\\newpost.ftd";
var maxPost: int = Int32.Parse(Registry.GetValue(
live5chRegistoryKey + "Setting",
"FtdMaxPost", Environment.CurrentDirectory + "\\live2ch.exe"));
/*
2024/04/14(日) 11:27:31.43ID:A6nc8mUa
*/
var arg: String = arguments[1];
var url: String;
if (/^https?:(\/\/.+\/)/.test(arg))
url = "http:" + RegExp.$1;
else
Environment.Exit(1);
var postUrl: Array = [url];
var sr : StreamReader = new StreamReader(ftdPostFile);
while (! sr.EndOfStream) {
var u: String = sr.ReadLine();
if (u != url)
postUrl.push(u);
if (postUrl.Length == maxPost)
break;
}
sr.Close();
var sw : StreamWriter = new StreamWriter(ftdPostFile);
for (var i = 0; i < postUrl.length; i++)
sw.WriteLine(postUrl[i]);
sw.Close();
//end
var arg: String = arguments[1];
var url: String;
if (/^https?:(\/\/.+\/)/.test(arg))
url = "http:" + RegExp.$1;
else
Environment.Exit(1);
var postUrl: Array = [url];
var sr : StreamReader = new StreamReader(ftdPostFile);
while (! sr.EndOfStream) {
var u: String = sr.ReadLine();
if (u != url)
postUrl.push(u);
if (postUrl.Length == maxPost)
break;
}
sr.Close();
var sw : StreamWriter = new StreamWriter(ftdPostFile);
for (var i = 0; i < postUrl.length; i++)
sw.WriteLine(postUrl[i]);
sw.Close();
//end
2024/04/14(日) 15:40:28.21ID:A6nc8mUa
訂正: 下から9行目 Length を length に修正して下さい
if (postUrl.Length == maxPost)
↓
if (postUrl.length == maxPost)
if (postUrl.Length == maxPost)
↓
if (postUrl.length == maxPost)
2024/04/15(月) 17:20:52.96ID:fzbF0U+r
てすと2
2024/07/03(水) 00:40:57.42ID:V9JIRXE5
貼れる?
javascript:(()=>{alert(`hello world.`);})();
javascript:(()=>{alert(`hello world.`);})();
2024/07/03(水) 00:41:54.13ID:V9JIRXE5
長いと貼れない?
javascript:(()=>{if(location.href=="https://donguri.5ch.net/bag"){w=Array.from(document.querySelector("#weaponTable tbody").rows).length;a=Array.from(document.querySelector("#armorTable tbody").rows).length;alert(`武器${w}個、防具${a}個、合計${w+a}個`);}})();
javascript:(()=>{if(location.href=="https://donguri.5ch.net/bag"){w=Array.from(document.querySelector("#weaponTable tbody").rows).length;a=Array.from(document.querySelector("#armorTable tbody").rows).length;alert(`武器${w}個、防具${a}個、合計${w+a}個`);}})();
77ラスト
2024/07/03(水) 01:18:38.68ID:V9JIRXE5 ブックマーク登録
とか
登録したブックマーク
が悪さしてるのか?
とか
登録したブックマーク
が悪さしてるのか?
2024/07/03(水) 21:04:08.06ID:V9JIRXE5
ブックマークレットを利用した簡単アイテムカウント
javascript:(()=>{l=location;if(l.host+l.pathname=='donguri.5ch.net/bag'){q=(s)=>document.querySelector(s);w=q('#weaponTable tbody').rows.length;a=q('#armorTable tbody').rows.length;s=w+a+1-parseInt(q('header h5').innerText.match(/\d+/)[0]);alert(`武器${w}個、防具${a}個、合計${w+a}個\n${s>0?s+'個分解すれば、':''}箱開け可能`);}})();
javascript:(()=>{l=location;if(l.host+l.pathname=='donguri.5ch.net/bag'){q=(s)=>document.querySelector(s);w=q('#weaponTable tbody').rows.length;a=q('#armorTable tbody').rows.length;s=w+a+1-parseInt(q('header h5').innerText.match(/\d+/)[0]);alert(`武器${w}個、防具${a}個、合計${w+a}個\n${s>0?s+'個分解すれば、':''}箱開け可能`);}})();
2024/10/12(土) 07:45:37.18ID:DET419zt
test
2024/10/12(土) 07:46:14.48ID:DET419zt
ttps://www.google.co.jp/
レスを投稿する
ニュース
- 高市政権の核兵器保有発言「事実なら非常に深刻な事態。国際社会は警戒すべき」中国 ★3 [お断り★]
- 【野球】メジャー挑戦・村上宗隆 22日に期限迫るも市場沈黙… 三振率や変化球対応を懸念 「日本Uターン」悪夢が現実味 米報道 [冬月記者★]
- マクドナルド、チキンマックナゲット30ピース(ソース6個付き)通常1480円が、950円に [お断り★]
- 松村沙友理「いい女っていっぱいおるけどいい男あんまおらんくない?30オーバーでいい男性ってみんな結婚してる」★2 [muffin★]
- 高市首相、円安・物価高で利上げ容認 昨年「あほ」と批判も…就任後は財政拡張批判も意識 ★2 [蚤の市★]
- 【赤坂サウナ火災】「通風口」叩き助け求めたか…夫には広範囲“やけど”の痕あり妻を熱からかばおうと覆い被さった可能性 ★2 [ぐれ★]
- 【実況】博衣こよりのえちえちスーパーダンガンロンパ7🧪
- 36歳ママ、自宅で16歳の長男と11歳の二男と9歳の三男を斧などで殺した後に子殺し自殺 夕方帰宅したパパが家に入れず110番して発覚 東京 [597533159]
- 射精管理されてるような曲が好きなんだが
- 職場の女が俺のことを下の名前で呼ぶようになったんだが脈アリ?
- 【実況】博衣こよりのえちえちスーパーダンガンロンパ8🧪
- 【速報】日英GDP逆転、世界6位の経済規模に転落 [237216734]
