BewlyBewly / BewlyBewly

Improve your Bilibili homepage by redesigning it, adding more features, and personalizing it to match your preferences. (English | 简体中文 | 正體中文 | 廣東話)
https://chromewebstore.google.com/detail/bewlybewly/bbbiejemhfihiooipfcjmjmbfdmobobp
MIT License
4.3k stars 140 forks source link

[Safari]:安装指南 #679

Open Chenpeel opened 5 months ago

Chenpeel commented 5 months ago

转换成Safari拓展

对于Safari浏览器,没有在商店上架,可以自己转换

  1. 下载extension.zip

    • 下载到Downloads文件夹下
  2. 在浏览器中开启开发者选项

    • 在浏览器启动后,按Command + , 进入设置(或直接点击菜单栏->Safari浏览器->设置)
    • 选择 高级->显示网页开发者功能 ,此时与高级同栏会出现开发者选项
  3. 允许未签名的拓展

    • 在设置中,进入开发者选项,选择 允许未经签名的拓展 (可能会要求输入密码)
  4. 使用Xcode的xcrun命令在终端进行转换

    • 打开终端
    • 依次运行:
      # 切换到下载目录
      cd ~/Downloads/
      # safari-web-extension-converter:转换为safari拓展,--no-open:不用Xcode自动打开, 这里extension是因为自动解压了
      xcrun safari-web-extension-converter --no-open extension
  5. 在Xcode中运行

    • 运行完上述命令后,在访达中打开Downloads下生成的BewlyBewly文件夹,双击其中的BewlyBewly.xcodeproj文件,以打开Xcode
    • 打开之后点击左上角的运行,稍等片刻,显示build success即可
    • 可能会出现,运行按钮显示需下载iOS**等要求,这是因为在运行右侧的横栏中选择了iOS,点击切换到Mac即可
  6. 在浏览器添加

    • 完成 5 后 ,在浏览器的设置->扩展 中应该能看到 BewlyBewly了
    • 选择添加即可,可将拓展设置成仅在bilibili.com允许

可能的问题!!!

  1. 右侧登录按钮在已经登录状态下,可能仍然没有刷新
  2. 在退出Safari程序后,再次启动,可能需要重新执行上述的 步骤3->步骤6

可能的方法

  1. 对于问题1
    • 可以在 Safari设置-> 隐私 -> 网站跟踪 ,选择取消勾选防止跨站跟踪解决
    • ⚠️但是,关闭了防止跨站跟踪,意味着其他网站可能会跟踪你的网页浏览(活动)记录、收集你的设备信息等等。详细信息见Safari浏览器使用手册——跨站跟踪
hakadao commented 5 months ago

謝謝提供 其實上架app store要apple developer認證每年要99美元,我之前在b站充電和愛發電獲得的金錢都沒到99美元的一半 要上架的話想當於賠錢進去了(賠錢那裏沒有算入我2年內的投入)所以我不怎麼想上架

MengNianxiaoyao commented 5 months ago

已经编译出第一版safari插件了,但不确定是否能正常运行,你可以下载试试看

点击下载

zirawell commented 5 months ago

编译安装的Safari拓展使用过程中,登录账号似乎无效,实际账号登录了,但是正在关注和订阅剧集这些和账户相关功能依然不可用,提示需要登录账号,请问这个有办法解决么

zirawell commented 5 months ago

@Chenpeel 对的,不过我是重启系统才会需要再打开允许未经签名的拓展,重启Safari的话拓展会消失不见,重新编译也不行,我的错误和你的类似,也是这些:

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'v.data.durl[0]')
    (anonymous function) (index.global.js:206:10185)
[Error] Source Map loading errors (x4)
[Error] Failed to load resource: the server responded with a status of 404 () (biliMirror.umd.mini.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (86.fd3f7.function.chunk.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (log-reporter.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (950.ee096.function.chunk.js.map, line 0)
pingcheng commented 5 months ago

已经编译出第一版safari插件了,但不确定是否能正常运行,你可以下载试试看

点击下载

我使用了一下,目前没有发现问题。

vaz1306011 commented 4 months ago

已经编译出第一版safari插件了,但不确定是否能正常运行,你可以下载试试看

点击下载

主頁的"加到稍候觀看"的按鈕案了沒有反應

wanpiDedata commented 4 months ago

同样的问题,另外有概率页面卡死不加载。

lemonwithme commented 3 months ago

謝謝提供 其實上架app store要apple developer認證每年要99美元,我之前在b站充電和愛發電獲得的金錢都沒到99美元的一半 要上架的話想當於賠錢進去了(賠錢那裏沒有算入我2年內的投入)所以我不怎麼想上架

apple真的是罪大恶极

yueqiangst commented 2 months ago

为什么用你这个方法插件安装后无法完成登录

MengNianxiaoyao commented 2 months ago

为什么用你这个方法插件安装后无法完成登录

很抱歉,safari 插件缺少开发者,现有开发者精力不足以维护该浏览器支持

yueqiangst commented 2 months ago

主要是mac上用chrome的cpu占用太高了……就safari合适,但没法用目前,哎发自我的 iPhone在 2024年7月17日,17:29,梦念逍遥 @.***> 写道:

为什么用你这个方法插件安装后无法完成登录

很抱歉,safari 插件缺少开发者,现有开发者精力不足以维护该浏览器支持

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

hakadao commented 2 months ago

主要是mac上用chrome的cpu占用太高了……就safari合适,但没法用目前,哎发自我的 iPhone在 2024年7月17日,17:29,梦念逍遥 @.***> 写道:

为什么用你这个方法插件安装后无法完成登录

很抱歉,safari 插件缺少开发者,现有开发者精力不足以维护该浏览器支持

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

說真的只要你用了bewlybewly基本上就不用想着低佔用,並且safari一樣一大堆擴展沒有做適配

Kanbebetter commented 2 months ago

已经编译出第一版safari插件了,但不确定是否能正常运行,你可以下载试试看

点击下载

请问能帮忙编译出最新的适用于Safari的bewlybewly插件吗,我在最新版测试系统,运行转换程序一直报错

iewnfod commented 2 months ago

v0.27.4 版本,在 macOS 15.1 Developer Beta 中使用 xcrun safari-web-extension-converter --no-open extension 进行转换,出现了以下错误:

Warning: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari:
    match_about_blank

有大佬知道要如何解决吗?

Kanbebetter commented 1 month ago

v0.27.4 版本,在 macOS 15.1 Developer Beta 中使用 xcrun safari-web-extension-converter --no-open extension 进行转换,出现了以下错误:

Warning: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari:
  match_about_blank

有大佬知道要如何解决吗?

我让chatgpt帮我优化了一下,目前已经编译出可用的插件了,只是右上角不能显示头像,但能登录成功 MySafariExtensionApp.app.zip

vaz1306011 commented 1 month ago

v0.27.4 版本,在 macOS 15.1 Developer Beta 中使用 xcrun safari-web-extension-converter --no-open extension 进行转换,出现了以下错误:

Warning: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari:
    match_about_blank

有大佬知道要如何解决吗?

我让chatgpt帮我优化了一下,目前已经编译出可用的插件了,只是右上角不能显示头像,但能登录成功 MySafariExtensionApp.app.zip

我安裝後沒法登入耶,雖然按登入按鈕會顯示已登入然後跳轉回首頁,但是稍後觀看跟收藏都沒有東西

Kodakolor commented 1 month ago

让编译好的插件在其他 Mac 上运行

Anz-03 commented 2 days ago

v0.27.4 版本,在 macOS 15.1 Developer Beta 中使用 xcrun safari-web-extension-converter --no-open extension 进行转换,出现了以下错误:

Warning: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari:
    match_about_blank

有大佬知道要如何解决吗?

我让chatgpt帮我优化了一下,目前已经编译出可用的插件了,只是右上角不能显示头像,但能登录成功 MySafariExtensionApp.app.zip

有谁会签个名吗,这个我目前用着完美,只不过 sb 的 Safari 老是重启之后就自动关闭“允许未签名的拓展”,每次都要重新开启