Skip to content

Commit

Permalink
perf: 删除所有的浏览器权限设置
Browse files Browse the repository at this point in the history
  • Loading branch information
dlzmoe committed Dec 26, 2024
1 parent 9cbddf1 commit 6745bd5
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .output/chrome-mv3/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"manifest_version":3,"name":"LinuxDo Scripts","description":"为 linux.do 用户提供了一些增强功能。","version":"1.0.6","icons":{"16":"icon/16.png","32":"icon/32.png","48":"icon/48.png","96":"icon/96.png","128":"icon/128.png"},"permissions":["storage","scripting"],"background":{"service_worker":"background.js"},"action":{"default_title":"Default Popup Title","default_popup":"popup.html"},"content_scripts":[{"matches":["https://linux.do/*"],"js":["content-scripts/content.js"]}],"web_accessible_resources":[{"resources":["content-scripts/content.css"],"matches":["https://linux.do/*"]}]}
{"manifest_version":3,"name":"LinuxDo Scripts","description":"为 linux.do 用户提供了一些增强功能。","version":"1.0.6","icons":{"16":"icon/16.png","32":"icon/32.png","48":"icon/48.png","96":"icon/96.png","128":"icon/128.png"},"permissions":[],"background":{"service_worker":"background.js"},"action":{"default_title":"Default Popup Title","default_popup":"popup.html"},"content_scripts":[{"matches":["https://linux.do/*"],"js":["content-scripts/content.js"]}],"web_accessible_resources":[{"resources":["content-scripts/content.css"],"matches":["https://linux.do/*"]}]}
24 changes: 12 additions & 12 deletions .output/chrome-mv3/popup.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Default Popup Title</title>
<meta name="manifest.type" content="browser_action">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Default Popup Title</title>
<meta name="manifest.type" content="browser_action">
<script type="module" crossorigin src="/chunks/popup-y6NwxbGV.js"></script>
<link rel="stylesheet" crossorigin href="/assets/popup-5DI6f4o3.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
</head>
<body>
<div id="app"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion .output/firefox-mv2/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"manifest_version":2,"name":"LinuxDo Scripts","description":"为 linux.do 用户提供了一些增强功能。","version":"1.0.6","icons":{"16":"icon/16.png","32":"icon/32.png","48":"icon/48.png","96":"icon/96.png","128":"icon/128.png"},"permissions":["storage","scripting"],"background":{"scripts":["background.js"]},"browser_action":{"default_title":"Default Popup Title","default_popup":"popup.html"},"content_scripts":[{"matches":["https://linux.do/*"],"js":["content-scripts/content.js"]}],"web_accessible_resources":["content-scripts/content.css"]}
{"manifest_version":2,"name":"LinuxDo Scripts","description":"为 linux.do 用户提供了一些增强功能。","version":"1.0.6","icons":{"16":"icon/16.png","32":"icon/32.png","48":"icon/48.png","96":"icon/96.png","128":"icon/128.png"},"permissions":[],"background":{"scripts":["background.js"]},"browser_action":{"default_title":"Default Popup Title","default_popup":"popup.html"},"content_scripts":[{"matches":["https://linux.do/*"],"js":["content-scripts/content.js"]}],"web_accessible_resources":["content-scripts/content.css"]}
24 changes: 12 additions & 12 deletions .output/firefox-mv2/popup.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Default Popup Title</title>
<meta name="manifest.type" content="browser_action">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Default Popup Title</title>
<meta name="manifest.type" content="browser_action">
<script type="module" crossorigin src="/chunks/popup-y6NwxbGV.js"></script>
<link rel="stylesheet" crossorigin href="/assets/popup-5DI6f4o3.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
</head>
<body>
<div id="app"></div>
</body>
</html>
Binary file modified .output/linuxdo-scripts-1.0.6-chrome.zip
Binary file not shown.
Binary file modified .output/linuxdo-scripts-1.0.6-firefox.zip
Binary file not shown.
Binary file modified .output/linuxdo-scripts-1.0.6-sources.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- feat: 增加手动导入导出功能
- feat: 增加手动导入导出功能
- perf: 删除所有的浏览器权限设置,不获取任何权限,十分安全
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
> 特别活动:【L 站 2024 年度总结】脚本 - [源码](./plugin/summary.user.js) / [直接安装](https://raw.githubusercontent.com/dlzmoe/linuxdo-scripts/refs/heads/main/plugin/summary.user.js)
<h2 align="center">LinuxDo Scripts 扩展(原名:linuxdo-scripts 增强插件)</h2>
<p align="center">脚本持续更新,欢迎提出 Issues,提交 Pr ~</p>

> 由油猴插件重构成浏览器扩展,进入 1.0 版本。
> 暂时未上架扩展商店,可以在 releases 中下载最新安装包。
<p align="center">持续更新,欢迎提出 Issues,提交 Pr ~</p>

[中文简体](https://github.com/dlzmoe/linuxdo-scripts/blob/main/README.md) | [English](https://github.com/dlzmoe/linuxdo-scripts/blob/main/README_EN.md)

Expand All @@ -25,10 +22,10 @@ LinuxDo Scripts 扩展,话题列表显示创建时间,显示楼层数,新
[使用和开发文档](https://linuxdo-scripts-docs.netlify.app/) |
[Discord 社区](https://discord.gg/n2pErsD7Kg)


## 安装使用

- Chrome、Edge、Arc 用户请在 [Chrome 商店中安装](https://chromewebstore.google.com/detail/fbgblmjbeebanackldpbmpacppflgmlj)
- 火狐浏览器用户点击链接下载压缩包使用。[下载压缩包](https://github.com/dlzmoe/linuxdo-scripts/releases)

![image](https://github.com/user-attachments/assets/1553917a-1b3b-44f4-b624-2ca2a1616e4f)

Expand Down
78 changes: 38 additions & 40 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
> **Note**
> Special Event: [L Station 2024 Annual Summary] Script - [Source Code](./plugin/summary.user.js) / [Direct Install](https://raw.githubusercontent.com/dlzmoe/linuxdo-scripts/refs/heads/main/plugin/summary.user.js)
> Special Activity: [L Station 2024 Annual Summary] Script - [Source Code](./plugin/summary.user.js) / [Direct Installation](https://raw.githubusercontent.com/dlzmoe/linuxdo-scripts/refs/heads/main/plugin/summary.user.js)
<h2 align="center">LinuxDo Scripts Extension (formerly known as: linuxdo-scripts Enhancement Plugin)</h2>
<p align="center">The scripts are continuously updated; feel free to raise Issues and submit Pull Requests!</p>

> Rebuilt from a Tampermonkey plugin to a browser extension, now at version 1.0.
> Currently not available in the extension store, you can download the latest installation package from releases.
<h2 align="center">LinuxDo Scripts Extension (formerly: linuxdo-scripts Enhancement Plugin)</h2>
<p align="center">Continuously updated. Issues and PR submissions are welcome!</p>

[简体中文](https://github.com/dlzmoe/linuxdo-scripts/blob/main/README.md) | [English](https://github.com/dlzmoe/linuxdo-scripts/blob/main/README_EN.md)

<p align="center">
<img src="https://img.shields.io/github/v/release/dlzmoe/linuxdo-scripts?label=LinuxDo Scripts 扩展&labelColor=%235D5D5D&color=%23E97435">
<img src="https://img.shields.io/github/v/release/dlzmoe/linuxdo-scripts?label=LinuxDo Scripts Extension&labelColor=%235D5D5D&color=%23E97435">
<img src="https://img.shields.io/github/last-commit/dlzmoe/linuxdo-scripts">
<img src="https://img.shields.io/github/stars/dlzmoe%2Flinuxdo-scripts?style=flat">
<img src="https://img.shields.io/github/license/dlzmoe/linuxdo-scripts">
</p>

The LinuxDo Scripts extension offers features such as displaying creation times in topic lists, showing post counts, opening topics in new tabs, forcing block (blacklisting) specific topics, quick replies (customizable), optimizing signature images to prevent distortion, direct preview of details and comments in topic lists, import/export panels for settings, lottery for posts, user-defined tags, options to view only the original poster's messages, auto-scrolling for reading, support for custom CSS styles, mixed English and Chinese optimization, level information queries, AI topic summarization and smart response generation, WebDAV synchronization, theme skin switching for the forum, and many more features. Please check the settings list for continuous updates and new ideas!
The LinuxDo Scripts extension displays the creation time in topic lists, shows post counts, opens topics in new tabs, forces block (blacklist) a user's topics, provides quick replies to topics (customizable), optimizes signature image display to prevent broken images, allows direct preview of details and comments in topic lists, imports and exports settings panel, offers post-level lotteries, supports user-defined tags, shows only the owner’s posts, automatically scrolls for reading, supports custom CSS styles, optimizes mixed Chinese and English display, queries level information, provides AI summarization of topics, intelligently generates replies, supports WebDAV synchronization, and allows switching of forum themes. For more features, please check the settings list; features are continuously updated, and new ideas are welcome!

[Github Repository](https://github.com/dlzmoe/linuxdo-scripts) |
[Chrome Store](https://chromewebstore.google.com/detail/fbgblmjbeebanackldpbmpacppflgmlj) |
~~[Greasyfork Store Installation](https://greasyfork.org/scripts/501827)~~ |
[Bug Feedback and Feature Requests](https://github.com/dlzmoe/linuxdo-scripts/issues/new/choose) |
[Bug Reports and Feature Requests](https://github.com/dlzmoe/linuxdo-scripts/issues/new/choose) |
[Usage and Development Documentation](https://linuxdo-scripts-docs.netlify.app/) |
[Discord Community](https://discord.gg/n2pErsD7Kg)

## Installation and Usage
## Installation and Use

- Chrome, Edge, and Arc users please [install from the Chrome Store](https://chromewebstore.google.com/detail/fbgblmjbeebanackldpbmpacppflgmlj)
- Chrome, Edge, and Arc users please install from the [Chrome Store](https://chromewebstore.google.com/detail/fbgblmjbeebanackldpbmpacppflgmlj)
- Firefox users can click the link to download the compressed package for use. [Download Compressed Package](https://github.com/dlzmoe/linuxdo-scripts/releases)

![image](https://github.com/user-attachments/assets/1553917a-1b3b-44f4-b624-2ca2a1616e4f)

Expand All @@ -37,32 +35,32 @@ The LinuxDo Scripts extension offers features such as displaying creation times
<summary>Feature List:</summary>

- [x] Display creation time in topic lists
- [x] Show post counts
- [x] Open topics in new tabs
- [x] Force block (blacklist) specific topics
- [x] Quick replies (customizable)
- [x] Optimize signature image display to prevent distortion
- [x] Import/export settings panel
- [x] Lottery for posts
- [x] Toggle view for only the original poster
- [x] Auto-scrolling for reading
- [x] Dark mode
- [x] User tagging feature
- [x] Direct preview of details and comments in topic lists
- [x] Comment box emoji optimization
- [x] Support for custom CSS styles
- [x] Mixed Chinese and English layout optimization
- [x] New level information query feature
- [x] Toggle forum emoji styles
- [x] AI topic summarization and smart response generation
- [x] Support for WebDAV synchronization
- [x] Switch forum theme skins
- [x] More features can be found in the settings list
- [x] Show post counts
- [x] Open topics in new tabs
- [x] Force block (blacklist) certain user's topics
- [x] Quick reply to topics (customizable)
- [x] Optimize signature image display to prevent broken images
- [x] Import and export settings panel
- [x] Post-level lotteries
- [x] Show only owner’s posts toggle
- [x] Automatic scrolling for reading
- [x] Dark mode
- [x] User tags function
- [x] Direct preview of details and comments in topic lists
- [x] Emoji optimization in comment box
- [x] Support custom CSS styles
- [x] Optimize mixed Chinese and English display
- [x] Added level information query
- [x] Switch forum emoji styles
- [x] AI summarization of topics, intelligent reply generation
- [x] Support WebDAV synchronization
- [x] Switch forum theme skins
- [x] More features, please check the settings list

</details>

<details>
<summary>Some Screenshots:</summary>
<summary>Some Screenshot Demonstrations:</summary>

| ![image](https://github.com/user-attachments/assets/f3fb854f-e6fd-4da4-9a9c-377b6537fab7) | ![image](https://github.com/user-attachments/assets/3b2a9e63-3939-4dbc-a00f-c713ca2c7f33) |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
Expand All @@ -77,19 +75,19 @@ The LinuxDo Scripts extension offers features such as displaying creation times
node: v22.12.0
```

Features are developed as components to avoid conflicts.
Features are developed as components, registering a new component for each new feature to avoid conflicts.

Clone this repository, installe dependencies, and run the code.
Clone the repository, install dependencies, and run the code.

```shell
git clone https://github.com/dlzmoe/linuxdo-scripts
yarn # Install dependencies
yarn dev # Run locally
```

No build is required; I will review PR code and merge without many issues in the shortest time.
No build is required; PR code will be reviewed and merged as soon as possible if there are no major issues.

## Changelog
## Change Log

[version-log.md](https://github.com/dlzmoe/linuxdo-scripts/blob/main/version-log.md)

Expand All @@ -101,8 +99,8 @@ No build is required; I will review PR code and merge without many issues in the

## Disclaimer

All features provided by this script run solely in the browser, and the source code used is transparent and publicly available. This script is for educational and research purposes only, does not utilize any profit schemes, nor does it participate in any profit organizations. Any disputes arising from the use of this script, all parties should resolve amicably. This script holds no responsibility for any losses or injuries that may occur to the user or others when using the software provided via this script. By downloading, installing, and using the software provided in this product, users indicate their trust in the authors and their related agreements and disclaimers.
All features provided in this script run only in the browser, and the source code used is publicly available and transparent. This script is for educational and research purposes only, does not engage in any profit-making schemes or associations, and any disputes arising from or related to the use of this script should be amicably resolved by the parties involved. This script is not responsible for any loss or damage caused to users or others when using the software provided by this script. By downloading, installing, and using the software provided in this product, users indicate their trust in the author and related agreements and disclaimers.

## License Agreement
## Copyright Agreement

[MIT license](https://github.com/dlzmoe/linuxdo-scripts/blob/main/LICENSE)
[MIT License](https://github.com/dlzmoe/linuxdo-scripts/blob/main/LICENSE)
4 changes: 0 additions & 4 deletions version-log.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## 1.0.6

- feat: 增加手动导入导出功能

## 1.0.5

- delete: 精简一些代码和错误的文件
Expand Down
2 changes: 1 addition & 1 deletion wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
name: 'LinuxDo Scripts',
version: pkg.version,
description: '为 linux.do 用户提供了一些增强功能。',
permissions: ['storage', 'scripting'],
permissions: [],
},
hooks: {
'build:manifestGenerated': (wxt, manifest) => {
Expand Down

0 comments on commit 6745bd5

Please sign in to comment.