Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
gived up

S9cn237 P0sce3fa

:octocat:
gived up
View GitHub Profile
View clock_in.js
/*
README:https://github.com/yichahucha/surge/tree/master
每日打卡提醒(corn "0 9,18 * * 1-5" 周一到周五,早九晚六)+ 每日壹句(有道词典)+ 跳转钉钉打卡页面
*/
const $tool = new Tool()
$tool.get('https://dict.youdao.com/infoline/style/cardList?mode=publish&client=mobile&style=daily&size=2', function (error, response, data) {
let obj = JSON.parse(data);
let date = new Date();
let isAM = date.getHours() < 12 ? true : false;
View weibo.sgmodule
#!name=weibo
#!desc=微博去广告
[Script]
http-response ^https?://(sdk|wb)app\.uve\.weibo\.com(/interface/sdk/sdkad.php|/wbapplua/wbpullad.lua) requires-body=1,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/wb_launch.js
http-response ^https?://m?api\.weibo\.c(n|om)/2/(statuses/(unread|extend|positives/get|(friends|video)(/|_)(mix)?timeline)|stories/(video_stream|home_list)|(groups|fangle)/timeline|profile/statuses|comments/build_comments|photo/recommend_list|service/picfeed|searchall|cardlist|page|!/(photos/pic_recommend_status|live/media_homelist)|video/tiny_stream_video_list|photo/info|remind/unread_count) requires-body=1,max-size=-1,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/wb_ad.js
[MITM]
hostname = api.weibo.cn, mapi.weibo.com, *.uve.weibo.com
View iOS15_Weather_AQI_US.js
// 此脚本仅适用于 iOS 15 的原生天气 App
// Developed by Hackl0us (https://github.com/hackl0us)
const $ = new Env('AQI-US');
$.token = 'hackl0us_aqi_token';
// STEP 1: 前往 https://aqicn.org/data-platform/token/ 注册账户,将申请的 API Token 填入下方
const aqicnToken = $.getdata($.token) || '466a9287d2d2e12fea2b4d7412a2080c865d98a2';
// STEP 2: 参考下方配置片段,在代理工具的配置文件中添加对应的配置。注意:script-path 后应该替换为添加 apicnToken 值后的脚本路径
@P0sce3fa
P0sce3fa / banwb.sgmodule
Last active Oct 9, 2021
surge_ban_list
View banwb.sgmodule
#!name=反SEO
#!desc=针对某些下三滥的网站进行反SEO,在你有意无意中点击到的时候,拒绝连接
[Rule]
DOMAIN-SUFFIX,005i.com,REJECT
DOMAIN-SUFFIX,01-123.com,REJECT
DOMAIN-SUFFIX,01-800.cn,REJECT
DOMAIN-SUFFIX,021shfx.com,REJECT
DOMAIN-SUFFIX,024ksm.com,REJECT