ChinaGodMan / UserScripts

🐒一些修改自网络的油猴脚本 Some Tampermonkey scripts modified from the internet
https://greasyfork.org/scripts?by=1169082
Other
397 stars 23 forks source link

Spike in activity #12

Closed adamlui closed 1 week ago

adamlui commented 1 week ago

Congratulations on the spike! Do you know what happened here?

image

ChinaGodMan commented 1 week ago

Congratulations on the spike! Do you know what happened here?-----------谷歌翻译-----------恭喜秒杀!你知道这里发生了什么吗?

image

I don't know, but I think this is the Chinese people's recognition of me.

adamlui commented 1 week ago

@ChinaGodMan but did you do anything special during those few weeks

ChinaGodMan commented 1 week ago

@ChinaGodMan but did you do anything special during those few weeks-----------谷歌翻译-----------@ChinaGodMan 但这几周你做了什么特别的事吗

Yes, it is like this after changing the shields badge in my script introduction document. In addition to the traffic of greasyfork, there are also traffic from other websites. There is even traffic to adult websites. .

adamlui commented 1 week ago

@ChinaGodMan what was the change to the shields badges that caused the growth? Also how old are you? Also for the porn sites you meant GitHub analytics shows them as traffic source? (If so, that is because users already installed script and are clicking thru your links)

ChinaGodMan commented 1 week ago

https://github.com/ChinaGodMan/UserScripts/graphs/traffic Snipaste_2024-10-06_08-22-27

I was born in 1997 Also, this traffic does not come from the script. There is no function to jump to GitHub in my script. Other forum users have posted about my warehouse, so when they click in, GitHub will record where they accessed it from.

adamlui commented 1 week ago

Actually all your scripts link to GitHub via support/homepage URL metas so Tampermonkey turn them into buttons. But the porn sites also have forums on them?

Also look at this Chinese American food I'm eating Shiu Mai + Sticky Rice + Chicken Feet

Untitled

adamlui commented 1 week ago

I am visiting the porno sites they are great. Thank you for sharing traffic dash

ChinaGodMan commented 1 week ago

Actually all your scripts link to GitHub via support/homepage URL metas so Tampermonkey turn them into buttons. But the porn sites also have forums on them?-----------谷歌翻译-----------实际上,您的所有脚本都通过支持/主页 URL 元数据链接到 GitHub,因此 Tampermonkey 将它们转换为按钮。但是色情网站上也有论坛吗?

Also look at this Chinese American food I'm eating Shiu Mai + Sticky Rice + Chicken Feet-----------谷歌翻译-----------还看这个中美菜我吃的是烧麦+糯米+凤爪

Untitled

小老弟吃的不错

adamlui commented 1 week ago

I'm more than 10y older than you though, how come you call me 小

adamlui commented 1 week ago

@ChinaGodMan also how come you won't answer me what did you do for shields. I see you just copied my CodeFactor one for example, didn't even bother to change my green color selection I spent hours rendering/perfecting. Also my aqua separators. Also my tactic of linking to own related scripts (but you do it in a very overkill fashion)

So you copying me is the reason then? So I changed your life? Are you grateful sir?

adamlui commented 1 week ago

Many Chinese programmers are obsessed with copying me btw this is not an original problem. I simply wonder if you are grateful or even acknowledge my influence on your good fortunes, or are you in denial perhaps you have copied many of my tactics and code

ChinaGodMan commented 1 week ago

Many Chinese programmers are obsessed with copying me btw this is not an original problem. I simply wonder if you are grateful or even acknowledge my influence on your good fortunes, or are you in denial perhaps you have copied many of my tactics and code

谢谢你,我的好兄弟,你的代码是世界上最为优美的代码。你书写的代码给人类带来了非凡的意义!

adamlui commented 1 week ago

after changing the shields badge in my script introduction document

So the change you made is, you started copying my focus on epic shields caused the spike? Before, you had ugly or no shields? Or fewer?

ChinaGodMan commented 1 week ago

So the change you made is, you started copying my focus on epic shields caused the spike? Before, you had ugly or no shields?

我以前的盾牌比较丑,我看到 网盘直链下载助手这个里面的盾牌很不错,我改了我丑盾牌,然后复制了你的那个CODE盾牌。

adamlui commented 1 week ago

So you believe this change caused the spike in trafficc, and no other change, because immediately after, it occurred?

adamlui commented 1 week ago

When did you copy the way I use object orientation for translating languages, or creating custom meta for each locale? Was that before or after this?

ChinaGodMan commented 1 week ago

So you believe this change caused the spike in trafficc, and no other change, because immediately after, it occurred?

可能吧,自从我改成这样,好像就变的更加的多了

UserScripts
GitHubView the script for the orderlyGithub:@ChinaGodMan
GreasyForkView the script for the orderly
GreasyFork Total Installs Total Daily Installs Scripts Count
Good Ratings Ok Ratings Bad Ratings CodeQuality Stars Forks Issue
Telegram TikTok Instagram Gmail
ChinaGodMan commented 1 week ago

When did you copy the way I use object orientation for translating languages, or creating custom meta for each locale? Was that before or after this?

你说的是自动翻译md文件吗?

adamlui commented 1 week ago

No, you store messages like const en = which no other scripts do but mine, and use a ton of name/description meta like me, do you even know why I do that. And the question is did this occur before or after you copied my shields

ChinaGodMan commented 1 week ago

When did you copy the way I use object orientation for translating languages, or creating custom meta for each locale? Was that before or after this?

不得不说,这个想法很好,可以自动翻译文档,真是不错呢。 好像是之前吧

adamlui commented 1 week ago

But I'm not talking about documentation (which I know you stole idea from my translate-en-messages.py) I'm talking about in your userscripts, you copy the way I internationalize everything. When did this occur

ChinaGodMan commented 1 week ago

But I'm not talking about documentation (which I know you stole idea from my translate-en-messages.py) I'm talking about in your userscripts, you copy the way I internationalize everything. When did this occur

这谁能记得了啊,

adamlui commented 1 week ago

这谁能记得了啊,

I don't believe you, obviously if something so affected your mind you choose to actively copy it, you will remember such a life-changing event

谢谢你,我的好兄弟,你的代码是世界上最为优美的代码。你书写的代码给人类带来了非凡的意义!

If you want me to believe your gratitude, why not credit me in README. That is what someone truly thankful does, not just talk about and gain benefit for self only

ChinaGodMan commented 1 week ago

这谁能记得了啊,

I don't believe you, obviously if something so affected your mind you choose to actively copy it, you will remember such a life-changing event

谢谢你,我的好兄弟,你的代码是世界上最为优美的代码。你书写的代码给人类带来了非凡的意义!

If you want me to believe your gratitude, why not credit me in README

好吧,好兄弟,我会注明的。

adamlui commented 1 week ago

Ok

ChinaGodMan commented 1 week ago

Ok-----------谷歌翻译-----------好的

我在构建新的仓库README.md

adamlui commented 1 week ago

Ok-----------谷歌翻译-----------好的

我在构建新的仓库README.md

You try to downplay my influence/contributions though. Like you said copy one shield when obviously the Stars one came from mine. You must not be misleading and list all the ways I am a contributor (including not only README but the script designs themselves)

adamlui commented 1 week ago

You can be misleading though but that is bad karma

adamlui commented 1 week ago

Thank about it like this. If I didn't exist your life would be much different. I literally changed your life. That is how important my contributions were. And I didn't even voluntarily give them to you. The least you could do is be honest.

ChinaGodMan commented 1 week ago

Thank about it like this. If I didn't exist your life would be much different. I literally changed your life. That is how important my contributions were. And I didn't even voluntarily give them to you. The least you could do is be honest.

不说哥们,你改变了我什么生活? 你这也太自负了吧。

ChinaGodMan commented 1 week ago

Thank about it like this. If I didn't exist your life would be much different. I literally changed your life. That is how important my contributions were. And I didn't even voluntarily give them to you. The least you could do is be honest

现在我更改了我仓库的README。

本仓库的自动翻译与 Action 功能特别感谢[Adam Lui 刘展鹏]出色的想法

Adam Lui 刘展鹏

引用了 Action 内代码 项目地址为: sync-autoclear-chatgpt-history-changes.yml

jobs:
    update-chinagodman-commit:
        runs-on: ubuntu-latest
        env:
            GIT_AUTHOR_NAME: ${{ github.event.commits[0].author.name }}
            GIT_AUTHOR_EMAIL: toniaiwanowskiskr47@gmail.com
            GIT_COMMITTER_NAME: qinwuyuan-sync-bot
            GIT_COMMITTER_EMAIL: "${{ secrets.GPG_PRIVATE_EMAIL }}"

            - name: Escape backticks in commit msg
              env:
                  COMMIT_MSG: ${{ github.event.head_commit.message }}
              run: |
                  echo "ESCAPED_MSG<<EOF" >> $GITHUB_ENV
                  echo "$COMMIT_MSG" | sed 's/`/\`/g' >> $GITHUB_ENV
                  echo "EOF" >> $GITHUB_ENV

引用了 py 内代码 项目地址为: translate-en-messages.py

# target_langs = ['af', 'am', 'ar', 'az', 'be', 'bem', 'bg', 'bn', 'bo', 'bs', 'ca', 'ceb', 'cs', 'cy', 'da', 'de', 'dv', 'dz', 'el', 'en', 'en-GB', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fo', 'fr', 'gd', 'gl', 'gu', 'haw', 'he', 'hi', 'hr', 'ht', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'ka', 'kab', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'la', 'lb', 'lo', 'lt', 'lv', 'mg', 'mi', 'mk', 'ml', 'mn', 'ms', 'mt', 'my', 'ne', 'nl', 'no', 'ny', 'pa', 'pap', 'pl', 'ps', 'pt', 'ro', 'ru', 'rw', 'sg', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tn', 'to', 'tpi', 'tr', 'uk', 'ur', 'uz', 'vi', 'xh', 'yi', 'zh',  'zh-HK', 'zh-SG', 'zh-TW', 'zu']

感谢刘兄的徽章图标 [CodeFactor grade]

ChinaGodMan commented 1 week ago
adamlui commented 1 week ago

That's not honest though. You said "his ideas" like I voluntarily suggest to you things. That is not what happened. You stole them from my repos. So mentioning you copied it and from what repo is the honest way to credit. Also I contributed in many more ways than this. Why are you lying about being grateful, when you are trying to hide the true way I contributed? This is not what truly grateful ppl do

adamlui commented 1 week ago

Also why do you link to your fork of my python-utils instead of the master repo. Everything you do is so self-centered. I cchanged your life why are you like this...

ChinaGodMan commented 1 week ago

centered

Also why do you link to your fork of my python-utils instead of the master repo. Everything you do is so self-centered. I cchanged your life why are you like this...-----------谷歌翻译-----------另外,为什么你链接到我的 python-utils 的分支而不是主存储库。你所做的一切都是那么以自我为中心。我改变了你的生活,你为什么会变成这样……

你改变了我什么生活? 我怎么感觉你就跟个三岁小孩一样。 什么叫做偷? 你自己开放在GitHub上面,还不让人用了? 自己仓库都写着MIT协议。

adamlui commented 1 week ago

MIT License doesn't mean you can use code without attribution, that's called stealing and I can take legal action, did you know this sir? There are international copyright laws that prohibit what you're doing

adamlui commented 1 week ago

Your repo suddenliy got popular after you implemented my code and document/script design principles. Your life before this, it was not popular. So your life changed as a result of me. You don't understand this?

ChinaGodMan commented 1 week ago

MIT License doesn't mean you can use code without attribution, that's called stealing and I can take legal action, did you know this sir? There are international copyright laws that prohibit what you're doing

你既然这样说,那我就等着被抓得了。

adamlui commented 1 week ago

I'm not trying to sue you I just want you to be honest and link to the repos you stole the code from, why are you linking to a fork. And you are not crediting you copied the ideas for internationalizing msgs in scripts using objects of msgs, or copied the way I link to related scripts for cross-traffic in docs, just so many things you copied you are not mentioning. How can you pretend to be grateful when you are clearly trying to hide these things from the public to seem more powerful?

ChinaGodMan commented 1 week ago

I'm not trying to sue you I just want you to be honest and link to the repos you stole the code from, why are you linking to a fork. And you are not crediting you copied the ideas for internationalizing msgs in scripts using objects of msgs, or copied the way I link to related scripts for cross-traffic in docs, just so many things you copied you are not mentioning. How can you pretend to be grateful when you are clearly trying to hide these things from the public to seem more powerful?

我在上面不说说了使用你的翻译想法了吗? 分支库是我找不到你的库,我想通过分支进入你的库,但是我忘记了,憨憨,

我添加上去不就行了吗? 这么大的人了,还跟个小孩子一样咋咋呼呼

adamlui commented 1 week ago

我在上面不说说了使用你的翻译想法了吗? 分支库是我找不到你的库,我想通过分支进入你的库,但是我忘记了,憨憨,

I don't know what this even means. How can you not find https://github.com/adamlui/python-utils (your lies make no sense, replace your username with mine)

我添加上去不就行了吗? 这么大的人了,还跟个小孩子一样咋咋呼呼

Add what. Also why are you insulting the age of someone you claimed to be grateful for. I am not your enemy I changed your life, why are you so mad to give credit I don't understand how a Chinese pirate mind is so twisted like this

ChinaGodMan commented 1 week ago

我在上面不说说了使用你的翻译想法了吗? 分支库是我找不到你的库,我想通过分支进入你的库,但是我忘记了,憨憨,

I don't know what this even means. How can you not find https://github.com/adamlui/python-utils (your lies make no sense, replace your username with mine)

我添加上去不就行了吗? 这么大的人了,还跟个小孩子一样咋咋呼呼

Add what. Also why are you insulting the age of someone you claimed to be grateful for. I am not your enemy I changed your life, why are you so mad to give credit I don't understand how a Chinese pirate mind is so twisted like this

你爱怎么说怎么说吧。你真是个人才,我不写了,你爱说偷也好,借也罢。要不你把你仓库给删了吧。 你改变了我什么生活你怎么说不出来? 我不明白这么大的人了,怎么跟个憨憨一样。 一个美国憨逼罢了。 从来没见到过你这样的人啊! 都说了是忘掉了,咄咄逼人

adamlui commented 1 week ago

I told you how, everything about your scripts and documentation and workflow is copied from me.. from translations to description meta to shields to funnelling to related scripts to call-to-star action. You even admitted it got popular after you took these actions. How do you not understand I changed your life? How can I be an "idiot" that has great ideas you admitted? You copy idiots?? And that is not aggressive but I am for pointing out what you did? Do you listen to yourself, what you say makes no sense...

adamlui commented 1 week ago

You literally forked my repo for translation how do you deny I changed your life, I don't get it. Do you fork idiot code all the time, or just me

ChinaGodMan commented 1 week ago

I told you how, everything about your scripts and documentation and workflow is copied from me.. from translations to description meta to shields to funnelling to related scripts to call-to-star action. You even admitted it got popular after you took these actions. How do you not understand I changed your life? How can I be an "idiot" that has great ideas you admitted? You copy idiots?? And that is not aggressive but I am for pointing out what you did? Do you listen to yourself, what you say makes no sense...

我用了你什么代码都写出来了,你别叫了。 我更新了readme

我的任务流程都是自己写的,翻译的脚本除了想法 和使用了你的变量,哪个代码和你一样? 你个傻逼玩意,卧槽你麻痹

ChinaGodMan commented 1 week ago

You literally forked my repo for translation how do you deny I changed your life, I don't get it. Do you fork idiot code all the time, or just me

傻逼玩意,老子的翻译代码哪个和你的一样 ? 除了小小的翻译器使用了你的变量没有从json读取 叫着你妈的改变我的生活? 你改变你妈呢?

import os
import re
import threading
import io
import json
from urllib.parse import urlencode
import urllib.parse
from urllib.request import urlopen
import time
import subprocess

def is_file_updated_more_than(file_path, timeout_minutes):
    try:
        # 使用 git log 获取文件的最后提交时间(Unix 时间戳)
        result = subprocess.run(
            ['git', 'log', '-1', '--format=%ct', file_path],
            capture_output=True, text=True, check=True
        )
        last_commit_time = int(result.stdout.strip())

        # 获取当前时间的 Unix 时间戳
        current_time = int(time.time())

        # 计算时间差(分钟)
        time_diff_minutes = (current_time - last_commit_time) / 60

        # 检查文件是否在超时时间之前被更新
        return time_diff_minutes > timeout_minutes
    except subprocess.CalledProcessError as e:
        print(f"错误: 无法获取提交时间 - {file_path}")
        return None

# 正则表达式匹配中文字符
chinese_pattern = re.compile(r'[\u4e00-\u9fff]+')
# 翻译对照表,替换特定编码内容
json_data = {
    "所有脚本总安装数": "%E6%89%80%E6%9C%89%E8%84%9A%E6%9C%AC%E6%80%BB%E5%AE%89%E8%A3%85%E6%95%B0",
    "今日所有脚本安装数": "%E4%BB%8A%E6%97%A5%E6%89%80%E6%9C%89%E8%84%9A%E6%9C%AC%E5%AE%89%E8%A3%85%E6%95%B0",
    "脚本数量": "%E8%84%9A%E6%9C%AC%E6%95%B0%E9%87%8F",
    "所有好评": "%E6%89%80%E6%9C%89%E5%A5%BD%E8%AF%84",
    "所有一般": "%E6%89%80%E6%9C%89%E4%B8%80%E8%88%AC",
    "所有差评": "%E6%89%80%E6%9C%89%E5%B7%AE%E8%AF%84",
    "星标": "%E6%98%9F%E6%A0%87",
    "复刻": "%E5%A4%8D%E5%88%BB",
    "问题": "%E9%97%AE%E9%A2%98",
    "联系": "%E8%81%94%E7%B3%BB",
    "代码质量": "%E4%BB%A3%E7%A0%81%E8%B4%A8%E9%87%8F",

}
# 黑名单:不需要翻译的中文文本
blacklist = ["人民的勤务员", "中文简体", "中文繁体"]
# 翻译函数
translation_cache = {
    "复刻": ("Fork", False),  # 不需要 API 翻译,直接使用缓存值
    "问题": ("issues", False),
    "所有脚本总安装数": ("issues", True),
    "今日所有脚本安装数": ("issues", True),
    "所有一般": ("issues", True),
    "联系": ("issues", True),
    "所有差评": ("issues", True),
    "所有好评": ("issues", True),
    "星标": ("issues", True),
    "脚本数量": ("issues", True),
    "代码质量": ("issues", True),
    # 可以继续添加其他常见的翻译
}

def translate_text_s(text, target_lang):  # 不操作
    if text in translation_cache:
        print(f"从缓存中获取翻译:{text} -> {translation_cache[text]}")
        return translation_cache[text]
    # 模拟调用翻译 API
    api_url = 'https://translate.googleapis.com/translate_a/single'
    params = {
        'client': 'gtx',
        'dt': 't',
        'sl': 'auto',
        'tl': target_lang,
        'q': text
    }
    full_url = api_url + '?' + urlencode(params)
    try:
        response = urlopen(full_url)
        data = response.read().decode('utf-8')
        # translated_text = json.loads(data.replace("'", "\u2019"))[0][0][0]
        translated_text = ''.join(
            item[0] for item in json.loads(data.replace("'", "\u2019"))[0])
        return translated_text
    except Exception as e:
        print(f"\033[31m翻译错误:{e}\033[0m")
        return None
# 翻译函数

def translate_text(text, target_lang):
    # 如果在缓存中,判断布尔值
    if text in translation_cache:
        cached_translation, needs_api_translation = translation_cache[text]
        # 如果缓存中的布尔值为 False,直接使用缓存翻译
        if not needs_api_translation:
            # print(f"从缓存中获取翻译:{text} -> {cached_translation}")
            return cached_translation
        # 如果布尔值为 True,强制调用 API 翻译,不使用缓存的翻译
        else:
            print(f"{text} 在缓存中,但需要通过 API 翻译。")
    # 调用翻译 API 进行翻译
    api_url = 'https://translate.googleapis.com/translate_a/single'
    params = {
        'client': 'gtx',
        'dt': 't',
        'sl': 'auto',
        'tl': target_lang,
        'q': text
    }
    full_url = api_url + '?' + urlencode(params)
    try:
        # 调用 API 获取翻译
        response = urlopen(full_url)
        data = response.read().decode('utf-8')
        translated_text = json.loads(data.replace("'", "\u2019"))[0][0][0]
        # print(f"API 翻译:{text} -> {translated_text}")
        # 如果缓存中该词条的布尔值为 True,进行 URL 编码
        if text in translation_cache and translation_cache[text][1]:
            translated_text = urllib.parse.quote(translated_text)
            # print(f"URL 编码后的翻译:{translated_text}")
        return translated_text
    except Exception as e:
        print(f"翻译错误:{e}")
        return None

# 翻译锁,确保多个线程不会同时修改 translations
translation_lock = threading.Lock()
# 用于保存翻译结果的线程函数

def translate_worker(chinese_texts, translations, lang):
    for idx, chinese_text in chinese_texts:
        translated_text = translate_text(chinese_text, lang)
        if translated_text:
            # 使用锁确保线程安全地修改 translations
            with translation_lock:
                translations[(idx, chinese_text)] = translated_text
# 读取文件并查找中文文本

def read_file_to_memory(file_path):
    with open(file_path, 'r', encoding='utf-8') as f_in:
        content = f_in.read()
    virtual_file = io.StringIO(content)
    lines = [line for line in virtual_file]
    virtual_file.close()
    return lines
# 替换编码内容为中文

def replace_encoded_with_utf8(lines, json_data):
    updated_lines = []
    for line in lines:
        for chinese_text, encoded_value in json_data.items():
            if encoded_value in line:
                line = line.replace(encoded_value, chinese_text)
        updated_lines.append(line)
    return updated_lines
# 翻译并保存结果,覆盖原文件

def translate_and_save(lines, chinese_texts, lang, file_path):
    translations = {}  # 每种语言有自己的翻译结果
    threads = []
    chunk_size = len(chinese_texts) // 5 or 1  # 假设5个线程,按块划分
    for i in range(0, len(chinese_texts), chunk_size):
        chunk = chinese_texts[i:i + chunk_size]
        thread = threading.Thread(
            target=translate_worker, args=(chunk, translations, lang))
        threads.append(thread)
        thread.start()
    # 等待所有线程完成
    for thread in threads:
        thread.join()
    # 从后往前替换中文文本
    new_lines = lines[:]
    for line_number, chinese_text, translated_text in reversed(
            [(ln, ct, translations.get((ln, ct), None)) for ln, ct in chinese_texts if (ln, ct) in translations]):
        new_lines[line_number] = new_lines[line_number].replace(
            chinese_text, translated_text, 1)
    # 直接覆盖原文件
    with open(file_path, 'w', encoding='utf-8') as f_out:
        f_out.writelines(new_lines)
    print(f"翻译完成,已将结果覆盖保存到 '{file_path}'。")
# 翻译并行任务

def process_file(root, file, lang_code):
    file_path = os.path.join(root, file)
    if is_file_updated_more_than(file_path, 30):
        print(f"翻译时跳过文件 {file_path},因为文件在5分钟之内没有更新")
        return  # 使用 return 结束当前函数的执行,而不是 continue
    print(f"开始处理文件: {file_path},语言代码: {lang_code}")
    # 读取文件内容
    lines = read_file_to_memory(file_path)
    # 替换编码内容为中文
    lines = replace_encoded_with_utf8(lines, json_data)
    # 保存中文文本的位置信息,跳过黑名单
    chinese_texts = []
    for line_number, line in enumerate(lines):
        for match in chinese_pattern.finditer(line):
            chinese_text = match.group()
            if chinese_text not in blacklist:
                chinese_texts.append((line_number, chinese_text))
    # 翻译并保存结果,覆盖原文件
    translate_and_save(lines, chinese_texts, lang_code, file_path)
# 主函数,遍历二级目录并处理 README_xx.md 文件

def process_files(base_dir):
    file_threads = []  # 存储处理文件的线程
    max_threads = 1  # 设置最大同时处理的线程数
    for root, dirs, files in os.walk(base_dir):
        # 遍历到第二级目录
        if root.count(os.sep) - base_dir.count(os.sep) == 1:
            for file in files:
                # 排除 README.md 文件,仅处理 README_xx.md 格式的文件
                if file == 'README.md':
                    continue
                # 匹配 README_xx.md 格式的文件,并提取语言代码
                match = re.match(r'README_([a-zA-Z\-]+)\.md', file)
                if not match:
                    continue
                lang_code = match.group(1)  # 提取语言代码
                while threading.active_count() > max_threads:
                    time.sleep(0.1)  # 短暂等待,避免 CPU 占用过高
                # 为每个文件启动一个线程处理
                thread = threading.Thread(
                    target=process_file, args=(root, file, lang_code))
                file_threads.append(thread)
                thread.start()
    # 等待所有文件处理完成
    for thread in file_threads:
        thread.join()

# 示例:处理 base_dir 目录下的二级目录中的所有文件
base_dir = "Script details"
process_files(base_dir)
adamlui commented 1 week ago

What do you mean "use my variable" you stole the actual idea not some varaible name. No one translates message in the userscript scene. Do you deny you got this idea from me? Why do you keep calling me idiot and paralyzed? Why do you steal ideas from idiots if it's stupid idea? Why are you so angry to give credit when it wasn't even your idea?

ChinaGodMan commented 1 week ago

You literally forked my repo for translation how do you deny I changed your life, I don't get it. Do you fork idiot code all the time, or just me

傻逼玩意,老子翻译脚本早就写好了,后来才他妈的从你仓库发现这个翻译脚本 你他妈的老子长了白带了这么傻逼?

adamlui commented 1 week ago

Why did you fork my translation script then your lies make no sense. You are making me depressed sorry I have to stop engaging with you for a moment

ChinaGodMan commented 1 week ago

What do you mean "use my variable" you stole the actual idea not some varaible name. No one translates message in the userscript scene. Do you deny you got this idea from me? Why do you keep calling me idiot and paralyzed? Why do you steal ideas from idiots if it's stupid idea? Why are you so angry to give credit when it wasn't even your idea?

那你就把仓库删了吧,地球这么多人,偷的太多了。