Skip to content

Commit

Permalink
Merge branch 'pt-plugins:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wegood9 authored Sep 21, 2024
2 parents bae7bfc + 4270897 commit 497e05d
Show file tree
Hide file tree
Showing 44 changed files with 1,488 additions and 1,031 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto detect text files and perform LF normalization
* text=auto
* eol=lf
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<img src="https://github.com/pt-plugins/PT-Plugin-Plus/raw/master/public/assets/icon-128.png"><br/>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases/latest" title="GitHub Releases"><img src="https://img.shields.io/github/release/pt-plugins/PT-Plugin-Plus.svg?label=Latest%20Release"></a>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases?include_prereleases/latest" title="GitHub Pre-releases"><img src="https://img.shields.io/github/release/pt-plugins/PT-Plugin-Plus.svg?include_prereleases&label=pre-release"></a>
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/releases" title="GitHub All Releases"><img alt="Releases" src="https://img.shields.io/github/downloads/pt-plugins/PT-Plugin-Plus/total.svg?label=Downloads"></a>
<img src="https://img.shields.io/badge/Used-TypeScript%20Vue-blue.svg">
<a href="https://github.com/pt-plugins/PT-Plugin-Plus/LICENSE" title="GitHub license"><img src="https://img.shields.io/github/license/pt-plugins/PT-Plugin-Plus.svg?label=License" alt="GitHub license"/></a>
Expand All @@ -19,10 +19,12 @@ PT 助手 Plus,是一款浏览器插件(Web Extensions),一个可以提

> ~~注意:`1.0.0` 以下的配置不能直接用于该版本,请勿将 `1.0.0` 以下的版本配置进行导入操作。~~
最新版本以及功能请登录后从[Action](https://github.com/pt-plugins/PT-Plugin-Plus/actions)里获取。如不会安装请参看Wiki
最新版本请登录后从[Pre-release](https://github.com/pt-plugins/PT-Plugin-Plus/releases?include_prereleases/latest)获取。如不会安装请参看Wiki

**提Issue前请务必检查Dev版本、Pull Request以及之前的Issue**

**M-Team 请于站点控制台 -> 实验室 获取 Token 填入后使用**

## 已支持的浏览器
- <a href="https://chrome.google.com/webstore/detail/abkdiiddckphbigmakaojlnmakpllenb" title="已在 Chrome Web Store 市场上发布的版本">![Google Chrome](https://img.shields.io/chrome-web-store/v/abkdiiddckphbigmakaojlnmakpllenb.svg?label=Google%20Chrome)</a> (已下架,见[原因](https://github.com/pt-plugins/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
- <a href="https://addons.mozilla.org/zh-CN/firefox/addon/pt-plugin-plus/" title="已在 Mozilla Add-on 上发布的版本">![Mozilla Firefox](https://img.shields.io/amo/v/pt-plugin-plus.svg?label=Mozilla%20Firefox)</a> (已下架,见[原因](https://github.com/pt-plugins/PT-Plugin-Plus/wiki#%E5%B7%B2%E8%A2%AB%E4%B8%8B%E6%9E%B6%E7%9A%84%E6%B5%8F%E8%A7%88%E5%99%A8)
Expand Down
27 changes: 21 additions & 6 deletions resource/schemas/Luminance/config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "Luminance",
"ver": "0.0.1",
"plugins": [{
"name": "种子列表",
"pages": ["/torrents.php"],
"scripts": ["/schemas/NexusPHP/common.js", "/schemas/Common/torrents.js"]
}],
"searchEntry": [{
"name": "all",
"enabled": true
}],
"searchEntryConfig": {
"page": "/browse.php",
"queryString": "search=$key$&searchin=title",
"page": "/torrents.php",
"queryString": "title=$key$&action=advanced",
"resultType": "html",
"parseScriptFile": "/schemas/Luminance/getSearchResult.js"
},
Expand Down Expand Up @@ -35,11 +40,12 @@
"filters":["query.text().sizeToNumber()"]
},
"seeding": {
"selector": ["#nav_seeding_r"]
"selector": ["#nav_seeding"],
"filters": ["query.text().match(/\\d+/)[0]"]
},
"leeching": {
"selector": ["#nav_leeching"],
"filters": ["query.match(/\\d+/)[0]"]
"filters": ["query.text().match(/\\d+/)[0]"]
}
}
},
Expand All @@ -51,7 +57,7 @@
},
"uploads": {
"selector": [".stats:eq(3) > li:eq(8)"],
"filters": ["query.match(/\\d+/)[0]"]
"filters": ["query.text().match(/\\d+/)[0]"]
},
"joinTime": {
"selector": [".time:eq(0)"],
Expand All @@ -68,6 +74,15 @@
"filters": ["query.text().match(/Size: (.*)/)[1].sizeToNumber()"]
}
}
},
"common": {
"page": "/torrents.php",
"fields": {
"downloadURLs": {
"selector": ["table.torrent_table a[href*='action=download&id='],a.button.blueButton"],
"filters": ["query.toArray()"]
}
}
}
}
}
}
112 changes: 112 additions & 0 deletions resource/sites/bitporn.eu/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"name": "BitPorn",
"timezoneOffset": "+0200",
"description": "BitPorn",
"url": "https://bitporn.eu/",
"icon": "https://bitporn.eu/favicon.ico",
"tags": ["成人"],
"schema": "NexusPHP",
"host": "bitporn.eu",
"levelRequirements": [
{
"level": 1,
"name": "Power User",
"interval": "4",
"downloaded": "5GB",
"ratio": "1",
"seedingPoints": "5",
"privilege": "可以发送邀请;可以直接发布种子;可以查看用户列表;可以请求续种;可以查看排行榜;可以查看其它用户的种子历史(如果用户隐私等级未设置为\"\")"
},
{
"level": 2,
"name": "Elite User",
"interval": "4",
"downloaded": "100GB",
"ratio": "1.2",
"seedingPoints": "500",
"privilege": "Elite User及以上用户封存账号后不会被删除。"
},
{
"level": 3,
"name": "Crazy User",
"interval": "8",
"downloaded": "250GB",
"ratio": "1.8",
"seedingPoints": "1500",
"privilege": "得到两个邀请名额;可以在做种/下载/发布的时候选择匿名模式。"
},
{
"level": 4,
"name": "Insane User",
"interval": "24",
"downloaded": "500GB",
"ratio": "2.2",
"seedingPoints": "10000",
"privilege": "可以查看普通日志。"
},
{
"level": 5,
"name": "Veteran User",
"interval": "32",
"downloaded": "750GB",
"ratio": "3",
"seedingPoints": "50000",
"privilege": "得到三个邀请名额;可以查看其它用户的评论、帖子历史。Veteran User及以上用户会永远保留账号。"
},
{
"level": 6,
"name": "Extreme User",
"interval": "50",
"downloaded": "1TB",
"ratio": "3.55",
"seedingPoints": "100000",
"privilege": "可以更新过期的外部信息;可以查看Extreme User论坛。"
},
{
"level": 7,
"name": "Ultimate User",
"interval": "70",
"downloaded": "1.5TB",
"ratio": "4",
"seedingPoints": "150000",
"privilege": "得到五个邀请名额。"
},
{
"level": 8,
"name": "BitPorn Master",
"interval": "100",
"downloaded": "3TB",
"ratio": "4.55",
"seedingPoints": "500000",
"privilege": "得到十个邀请名额。"
}
],
"collaborator": ["tomyangsh"],
"selectors": {
"userSeedingTorrents": {
"page": "/getusertorrentlistajax.php?userid=$user.id$&type=seeding",
"fields": {
"seeding": {
"selector": [
"b:first"
],
"filters": [
"query.text()"
]
},
"seedingSize": {
"selector": "",
"filters": [
"query.text().match(/Total size:(.*?)Prev/g)",
"(query && query.length>0) ? query[0].replace('Total size:', '').replace('<< Prev', '').trim() : 0",
"(query != 0) ? query.sizeToNumber() : 0"
]
}
}
}
},
"torrentTagSelectors": [{
"name": "Free",
"selector": "span[title='Free']"
}]
}
Loading

0 comments on commit 497e05d

Please sign in to comment.