All From Google.com with public search
| NUM | URL |
|---|---|
| 1 | https://ustc-edu-cn.mirror.aliyuncs.com |
| 2 | https://kfwkfulq.mirror.aliyuncs.com |
| 3 | https://2lqq34jg.mirror.aliyuncs.com |
| (() => { | |
| // ----------------------------------------------------------------- | |
| // CONFIG (you're safe to edit this) | |
| // ----------------------------------------------------------------- | |
| // ~ GLOBAL CONFIG | |
| // ----------------------------------------------------------------- | |
| const MODE = 'publish_drafts'; // 'publish_drafts' / 'sort_playlist'; | |
| const DEBUG_MODE = true; // true / false, enable for more context | |
| // ----------------------------------------------------------------- | |
| // ~ PUBLISH CONFIG |
| (function () { | |
| let settings = { | |
| spoofIp: '', | |
| previous: [], | |
| headers: ['X-Forwarded-For'] | |
| }; | |
| browser.storage.sync.get(settings).then((loadedSettings) => { | |
| settings = loadedSettings; | |
| setBadge(settings.spoofIp); | |
| }); |
| // 替换成你想镜像的站点 | |
| const upstream = 'www.google.com' | |
| let upstream_domain = 'www.google.com' | |
| // 如果那个站点有专门的移动适配站点,否则保持和上面一致 | |
| const upstream_mobile = 'www.google.com' | |
| // 你希望禁止哪些国家访问 | |
| const blocked_region = ['RU'] |
| import requests | |
| import random | |
| from datetime import datetime | |
| import time | |
| # 文件路径 | |
| file_path = r"F:/Download/test.jpg" | |
| # 目标URL | |
| url = "https://api.weixinyanxuan.com/mall/api/img/upload" |
| @echo off | |
| netsh interface ipv6 set privacy state=disable | |
| netsh interface ipv6 set privacy state=enable |
All From Google.com with public search
| NUM | URL |
|---|---|
| 1 | https://ustc-edu-cn.mirror.aliyuncs.com |
| 2 | https://kfwkfulq.mirror.aliyuncs.com |
| 3 | https://2lqq34jg.mirror.aliyuncs.com |
| import requests | |
| import time | |
| import re | |
| import os | |
| # 从环境变量中获取 Cookie | |
| COOKIES = os.environ.get('BAIDU_COOKIE', '') | |
| HEADERS = { | |
| 'Connection': 'keep-alive', |
| /*大于1024宽度才会生效*/ | |
| @media (min-width: 1024px){ | |
| .post-date { | |
| background-color: #ff8000 !important; | |
| padding: 2px 7px; | |
| border-radius: 10px; | |
| color: #ffffff !important; | |
| width: max-content; | |
| font-size: 10px !important; | |
| margin-top: 5%; |
| // 配置多个 access token(output) From https://cloud.sambanova.ai/ | |
| const ACCESS_TOKENS = [ | |
| "your_access_token_1", | |
| "your_access_token_2", | |
| "your_access_token_3" | |
| ]; | |
| // 用于验证客户端请求的 token(input) | |
| const TOKEN = "your_hardcoded_token_here"; |
| const CEREBRAS_API_URL = 'https://gateway.ai.cloudflare.com/v1/xxx/cerebras/cerebras'; | |
| const MAX_RETRIES = 3; | |
| const RETRY_DELAY = 1000; | |
| // Debug 函数 | |
| async function debugFetch(url, options) { | |
| console.log('Request URL:', url); | |
| console.log('Request Headers:', JSON.stringify(options.headers)); | |
| try { |