mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 17:15:09 +00:00
remove unwanted files
This commit is contained in:
BIN
Scripts/.DS_Store
vendored
BIN
Scripts/.DS_Store
vendored
Binary file not shown.
@@ -1,48 +0,0 @@
|
||||
const userCheckinURL = 'http://he.sx.chinamobile.com/h/rest/v1/user/feequery';
|
||||
const userCookieKey = 'heLife_10086_userCookieKey';
|
||||
const userAgentKey = 'heLife_10086_userAgentKey';
|
||||
//const userDataKey = 'heLife_10086_userDataKey';
|
||||
|
||||
|
||||
let isGetCookie = typeof $request !== 'undefined';
|
||||
console.log(isGetCookie)
|
||||
console.log($request.headers['Cookie'])
|
||||
if (isGetCookie) {
|
||||
// 获取 Cookie
|
||||
if (true) {
|
||||
var cookie = $request.headers['Cookie'];
|
||||
var userAgent = $request.headers['User-Agent'];
|
||||
$prefs.setValueForKey(cookie, userCookieKey);
|
||||
$prefs.setValueForKey(userAgent, userAgentKey);
|
||||
$notify("成功获取山西和生活cookie 🎉", "", "请在Rewrite_Local禁用该脚本")
|
||||
}
|
||||
$done({});
|
||||
} else {
|
||||
// 查话费
|
||||
var request = {
|
||||
url: userCheckinURL,
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Cookie': $prefs.valueForKey(userCookieKey),
|
||||
'Accept-Encoding': 'gzip, deflate',
|
||||
'xm-sign': '5eaf02499406c8e9f548ee374fcac69b(71)1582216331415(27)1582216331415',
|
||||
'Connection': 'keep-alive',
|
||||
'Host': 'he.sx.chinamobile.com',
|
||||
'Accept': '*/*',
|
||||
'Referer': 'http://he.sx.chinamobile.com/h/index.html',
|
||||
'User-Agent': $prefs.valueForKey(userAgentKey),
|
||||
'Content-type' : 'application/json',
|
||||
'Content-Length': '2',
|
||||
'Accept-Language': 'zh-cn'
|
||||
},
|
||||
body: JSON.stringify({})
|
||||
};
|
||||
|
||||
$task.fetch(request).then(response => {
|
||||
const obj = JSON.parse(response.body);
|
||||
var temp = obj.data;
|
||||
$notify("话费余额"+temp.PREPAY_FEE_YUAN)
|
||||
}, reason => {
|
||||
$notify("山西移动和生活", "", reason.error)
|
||||
});
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
if ($request.url.indexOf('watermark') > 0) {
|
||||
$done({url: $request.url.replace(/&watermark=\d/, "")});
|
||||
} else {
|
||||
$done();
|
||||
}
|
||||
if ($request.url.indexOf('vide.f7') > 0) {
|
||||
$done({url: $request.url.replace(/vide\.f7/, "vide.f")});
|
||||
} else {
|
||||
$done();
|
||||
}
|
||||
|
||||
/**********************************************************
|
||||
#### 原作者:https://Choler.github.io/Surge/Script/Amark.js
|
||||
^https:\/\/[\s\S]*\/aweme\/v1\/play\/\?video url script-response-body https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Amark.js
|
||||
[MITM]
|
||||
hostname = api.amemv.com, api*.musical.ly, api*.tiktokv.com
|
||||
**********************************************************/
|
||||
@@ -1,35 +0,0 @@
|
||||
$notify(TikTok, 已匹配)
|
||||
let body = JSON.parse($response.body);
|
||||
if(body.aweme_list){
|
||||
body.aweme_list.forEach((element, index)=>{
|
||||
if(element.hasOwnProperty('raw_ad_data')){
|
||||
body.aweme_list.splice(index, 1);
|
||||
}
|
||||
});
|
||||
body.aweme_list.forEach((element, index)=>{
|
||||
if(element.hasOwnProperty('simple_promotions')){
|
||||
delete body.aweme_list[index].simple_promotions;
|
||||
}
|
||||
});
|
||||
body.aweme_list.forEach((element, index) => {
|
||||
if (element.hasOwnProperty('prevent_download')) {
|
||||
body.aweme_list[index].status.reviewed = 1;
|
||||
body.aweme_list[index].prevent_download = false;
|
||||
}
|
||||
});
|
||||
body.aweme_list.forEach((element, index) => {
|
||||
if (element['interaction_stickers'] !== null) {
|
||||
body.aweme_list[index].interaction_stickers = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
$done({body: JSON.stringify(body)});
|
||||
|
||||
/**********************************************************
|
||||
From Surge Version: https://raw.githubusercontent.com/Choler/Surge/master/Script/Aweme.js
|
||||
[Rewrite]
|
||||
^https:\/\/[\s\S]*\/v1\/(aweme\/)?(feed|post)\/ url script-response-body https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Aweme.js
|
||||
|
||||
[MITM]
|
||||
hostname = aweme*.snssdk.com
|
||||
**********************************************************/
|
||||
@@ -1,39 +0,0 @@
|
||||
/* Made by Meeta(西瓜视频官网:www.xg1.app)
|
||||
更新:0701
|
||||
1.文本编辑模式下复制粘贴
|
||||
Surge:
|
||||
http-response https?:\/\/api2\.gkaorlz\.com\:8080\/api\/user\/ script-path=https://meetagit.github.io/MeetaRules/Surge/Scripting/watermelonvideo.js,requires-body=true
|
||||
QuantumultX:
|
||||
^https?:\/\/api2\.gkaorlz\.com\:8080\/api\/user\/ url script-response-body https://meetagit.github.io/MeetaRules/Surge/Scripting/watermelonvideo.js,requires-body=true
|
||||
|
||||
2.添加hostname = api2.gkaorlz.com
|
||||
欢迎关注TG频道:@meetashare
|
||||
*/
|
||||
|
||||
const path1 = "/api/user/get";
|
||||
const path2 = "/api/user/getAdv";
|
||||
const path3 = "api/user/getNotice";
|
||||
var body = $response.body;
|
||||
var url = $request.url;
|
||||
if (url.indexOf(path1) != -1){
|
||||
let obj = JSON.parse(body);
|
||||
obj.content["nickName"] = "Meeta_share";
|
||||
obj.content["level"] = "5";
|
||||
obj.content["vipType"] = "3";
|
||||
obj.content["expirationTime"] = "3029548557000";
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
if (url.indexOf(path2) != -1){
|
||||
let obj = JSON.parse(body);
|
||||
obj.content["img"] = "http://ww1.sinaimg.cn/large/0076dY5Wgy1g36mmbdvv7j30gf0zkwf2.jpg";
|
||||
obj.content["url"] = "https://s2.ax1x.com/2019/07/11/Zgxxpt.jpg";
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
if (url.indexOf(path3) != -1){
|
||||
let obj = JSON.parse(body);
|
||||
obj.content["title"] = "Meeta 小贴士";
|
||||
obj.content["content"] = "<big>色不异空,空不异色,色即是空,空即是色,受想行识,亦复如是。舍利子,是诸法空相,不生不灭,不垢不净,不增不减。</big>";
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
$done({body});
|
||||
@@ -1,31 +0,0 @@
|
||||
let body = $response.body;
|
||||
body = JSON.parse(body);
|
||||
if (-1 != $request.url.indexOf('init')) {
|
||||
body['adSwitch'] = [];
|
||||
body['adUpdateTime'] += 86400*365;
|
||||
// 关闭弹幕功能
|
||||
// body['barrageIp'] = "";
|
||||
}
|
||||
if (-1 != $request.url.indexOf('ads')) {
|
||||
// 留下影片推荐,防止轮播位置空白
|
||||
body['ads'] = body['ads'].filter(
|
||||
function (item) {
|
||||
if (6 != item.adType) {
|
||||
return false;
|
||||
}
|
||||
if (-1 == item.click.indexOf('yyets://')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
body = JSON.stringify(body);
|
||||
$done({body});
|
||||
/**
|
||||
* 感谢分享 @haokaiyang
|
||||
* MITM: ctrl.playcvn.com
|
||||
* 人人影视字幕组(https://itunes.apple.com/cn/app/%E4%BA%BA%E4%BA%BA%E5%BD%B1%E8%A7%86%E5%AD%97%E5%B9%95%E7%BB%84/id1052761459)
|
||||
* 应用有广告缓存,可能需要重装
|
||||
* Surge:http-response http://ctrl.playcvn.com/app/(init|ads) requires-body=true,script-path=YYeTs.js
|
||||
* QuantumultX:^http://ctrl.playcvn.com/app/(init|ads) url script-response-body https://raw.githubusercontent.com/KOP-XIAO/QuantumultX/master/Scripts/YYeTs.js
|
||||
*/
|
||||
@@ -1,35 +0,0 @@
|
||||
var body = $response.body;
|
||||
var url = $request.url;
|
||||
const path1 = "/app/ios/user/index";
|
||||
const path2 = "/app/ios/vod/show";
|
||||
const path3 = "/app/ios/ads/index";
|
||||
|
||||
if (url.indexOf(path1) != -1){
|
||||
let obj = JSON.parse(body);
|
||||
obj.data.user["viptime"] = "2066-01-01 08:00:00";
|
||||
obj.data.user["cion"] = "66666";
|
||||
obj.data.user["vip"] = "1";
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
if (url.indexOf(path2) != -1){
|
||||
let obj = JSON.parse(body);
|
||||
obj.data["looktime"] = -1;
|
||||
obj.data["vip"] = "4";
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
if (url.indexOf(path3) != -1){
|
||||
let obj = JSON.parse(body);
|
||||
obj.data["pic"] = "http://ww1.sinaimg.cn/large/0076dY5Wgy1g36mmbdvv7j30gf0zkwf2.jpg";
|
||||
obj.data["url"] = "https://t.me/meetaclub";
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
|
||||
$done({body});
|
||||
|
||||
|
||||
|
||||
// Made by Meeta(爱美剧)(官网下载:app.meiju2018.com)
|
||||
// https?:\/\/mjappaz.yefu365.com\/index.php\/app\/ios\/
|
||||
// hostname = mjappaz.yefu365.com
|
||||
@@ -1,9 +0,0 @@
|
||||
/*
|
||||
提取115中的视频使用nPlayer进行播放.
|
||||
使用方法:
|
||||
1.在[Script]分组下添加下面这行配置
|
||||
http-request ^https?:\/\/.*\.115\.com\/.*\.m3u8.*$ script-path=https://raw.githubusercontent.com/ikanam/Surge-Scripts/master/115tonplayer.js
|
||||
*/
|
||||
|
||||
$notify('播放地址提取成功, 长按(重按)通知查看', '', 'nplayer-' + $request.url);
|
||||
$done({});
|
||||
@@ -1,21 +0,0 @@
|
||||
const path1 = "/interface/sdk/sdkad.php";
|
||||
const path2 = "/wbapplua/wbpullad.lua";
|
||||
|
||||
const url = $request.url;
|
||||
var body = $response.body;
|
||||
if (url.indexOf(path1) != -1) {
|
||||
let re = /\{.*\}/;
|
||||
body = body.match(re);
|
||||
var obj = JSON.parse(body);
|
||||
if (obj.background_delay_display_time) obj.background_delay_display_time = 60*60*24*365;
|
||||
if (obj.show_push_splash_ad) obj.show_push_splash_ad = false;
|
||||
if (obj.ads) obj.ads = [];
|
||||
body = JSON.stringify(obj) + 'OK';
|
||||
}
|
||||
|
||||
if (url.indexOf(path2) != -1) {
|
||||
var obj = JSON.parse(body);
|
||||
if (obj.cached_ad && obj.cached_ad.ads) obj.cached_ad.ads = [];
|
||||
body = JSON.stringify(obj);
|
||||
}
|
||||
$done(body);
|
||||
File diff suppressed because one or more lines are too long
@@ -1,30 +0,0 @@
|
||||
const weaapi = "https://www.tianqiapi.com/api/?version=v6"
|
||||
|
||||
$request(weaapi, function(error, response, data){
|
||||
if (error){
|
||||
console.log(error);
|
||||
$done();
|
||||
} else {
|
||||
var obj = JSON.parse(data);
|
||||
console.log(obj);
|
||||
var city = "所在城市: " + obj.city;
|
||||
var wea = "天气状况: " + obj.wea + " 当前" + obj.tem + "℃ " + obj.tem2 + "℃~" + obj.tem1 + "℃";
|
||||
var air = "当前风力: " + obj.win + obj.win_speed + " 风速" + obj.win_meter + "\n空气指数: " + obj.air + " " + obj.air_level + "\n友情提示: " + obj.air_tips + "\n更新时间: " + obj.date + " "+ obj.update_time;
|
||||
let wmation = [city,wea,air];
|
||||
$notify("Weather Condition:", wmation[0]+ wmation[1]+ wmation[2]);
|
||||
$done();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
/*****************************************************************
|
||||
|
||||
修改自:https://meetagit.github.io/MeetaRules/Surge/Scripting/hourlyWeather.js
|
||||
|
||||
[Script]
|
||||
|
||||
# 在每天 8:00-20:00 整点预报天气
|
||||
cron "0 8-20 * * *" script-path=https://raw.githubusercontent.com/ydzydzydz/Rules/master/js/weather.js
|
||||
|
||||
*****************************************************************/
|
||||
Reference in New Issue
Block a user