Giter Site home page Giter Site logo

block100's Introduction

拦截100

拦截100是一款Safari浏览器扩展,完全基于iOS 15/iPadOS 15开发,能够拦截恶意的网页内app应用跳转,去除诱导广告,以此来进一步保护用户在浏览网页时的隐私和阻止广告追踪。除此之外,对于许多网页为了恶意跳转app而隐藏长文内容的行为,拦截100也会将其拦截并且自动展开长文内容,提高用户网页的体验。

使用手册

安装和运行:

1:在Xcode中创建Safari Extension App项目。
2:创建成功后,替换SafarWebExtension所在扩展文件夹下的Resources文件夹为此仓库Resources文件夹,
3:运行项目
在Safari中打开扩展查看。

代码目录:

1:Resources/jumpapp 文件夹为防App跳转目录:

此目录下可新增或修改防止网站跳转App代码
每个App跳转单独文件夹,在对应文件夹下创建编写js文件
在content.js中判断域名等执行对应的js

2:Resources/domain 文件夹为目前匹配站点的展开全文和去除广告目录:

此目录下每个文件夹以用来匹配的站点域名为名称如xx.xx.com,包含call.js和read.js和网站中文名.md。
call.js :去除当前站点广告代码
read.js 阅读当前站点时的展开全文代码
domain/domain.js:目前匹配站点清单及url地址匹配规则,key与具体站点文件夹名字对应。
新增修改代码时,根据需要可能需同步修改background.js和content.js或插件配置代码。

社区

如果你有好的意见或建议,欢迎给我们提 Issues

参与贡献

1:Fork仓库

  点击 Fork 按钮,将需要参与的项目仓库 fork 到自己的 Github 中。  

2:Clone 已经fork的项目

 在自己的 github 中,找到 fork 下来的项目,git clone 到本地。  

3:贡献代码

将 fork 源仓库连接到本地仓库, commit 信息提交,请描述提交的原因和功能。  

License

Copyright (c) 2021-2028 UU Momentum Network Technology Co., Ltd., All rights reserved.

Licensed under The GNU General Public License version 2 (GPLv2) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

block100's People

Contributors

uumomentum avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.