Git Product home page Git Product logo

obsidian-surfing's People

Contributors

kraibse avatar quorafind avatar ryotaushio avatar sharkmu avatar trikzon avatar windily-cloud avatar xmb-7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

obsidian-surfing's Issues

Feature Request: 网页采集

Feature Requested

一键采集网页内容,保存到指定目录下。

参考web-clipper

// 我知道这个要求很过分

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[功能请求] 添加插件选项, 允许设置功能键更改打开链接行为

Feature Requested

目前, 直接点击链接是在ob里打开新标签页. 建议增加更多配合功能键的新行为. 例如, 允许用户使用alt+click在ob外的浏览器里打开页面, 使用ctrl+click在ob里的相邻窗格内打开页面, ctrl+shift+click在悬浮页内打开页面(配合hover editor), ctrl+alt+click在新的ob窗口里打开页面.
如此一来, 即可吸收如下设置.
image

感谢费心开发, 一直在等原作者更新, 偶然看到cuman视频推荐, 立马就过来了. 顺便问下, cuman说有意向支持油猴插件, 如能实现那可太强了, 看B站视频进行学习并笔记, 没有油猴插件体验真的差强人意.

Checklist

  • The feature would be useful to more users than just me.

Feature Request: Actual New Tab From Link

Feature Requested

A feature that is missing from the current version is actually ctrl clicking on an image to open in a new tab silently, and I would like many other people enjoy this feature.

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: Cannot use `Ctrl` to open lin in external browser

Bug Description

无法按住 Ctrl 来在外部浏览器中打开页面

Relevant Screenshot

No response

To Reproduce

No response

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[Bug]: URI Scheme `obsidian://web-open` not working

Bug Description

The obsidian://web-open does not seem to work for me. I tried encoded and non-encoded URLs.

Relevant Screenshot

console output after trying:
Pasted image 2022-11-28 11 56 33

To Reproduce

Try to open any of these URIs:

obsidian://web-open?url=https://github.com/Quorafind/Obsidian-Surfing
obsidian://web-open?url=https%3A%2F%2Fgithub.com%2FQuorafind%2FObsidian-Surfing

Obsidian Version

Obsidian 1.0.4

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

只是删除video标签,video被inverse了

    @Quorafind  我发现一个问题,只是删除video标签,video被inverse了,我试了下这样改:
html {
    filter: invert(90%) hue-rotate(180deg);
}

img, svg, div[class*="language-"] {
    filter: invert(110%) hue-rotate(180deg);
    opacity: .8;
}

video{
    filter: invert(110%) hue-rotate(180deg);
    opacity: 1;
}

Originally posted by @windily-cloud in #35 (comment)

[Bug]: 不能打开本地html

Bug Description

macos系统, 点击html文件没反应, html reader插件可以, 但冲突

Relevant Screenshot

No response

To Reproduce

No response

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request: 支持图床管理html文件

Feature Requested

Bon佬和皮皮佬好,我有个使用markmind批注图床pdf的工作流,用起来比较方便,不知道用来这个插件上管理html批注是否也容易实现,在此介绍供参考。

在和markmind作者几次反馈后,markmind现在支持在pdf附件的多种管理功能:

  • 在线pdf:可以将pdf附件放到图床中,像图片一样管理,只需要同步md也可以保证批注链接不失效
  • pdf id: 使用id来指向存放批注信息的md,这个md中另有pdf链接的信息,这样更新pdf路径可以保证回链不失效
  • 缓存pdf: pdf文件可能比较大,每次预览会消耗大量流量,markmind在打开链接时,会先到附件文件夹匹配对应的PDF,匹配成功后使用本地pdf打开,如果不成功就打开原始的图床链接预览,然后保存一份缓存到附件文件夹,这样可以大大减少流量消耗。
    image

目前我试了一下,html放到图床之后,用Surfing打开会自动触发下载,如果能够做到预览而不是下载,那么参照上述pdf的流程也可以对html实现稳定的批注回链了!

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

Feature Request: 是否可以对页面的大小比例进行调节呢

Feature Requested

很感激作者的设计!想请问下是否可以更改页面大小的比例呢,比如目前在一个有限的面板下,只能通过滚轮对一个网页进行完全地浏览,可否增加一个功能,将页面的显示大小进行调节,有时候就可以不通过滚轮,完全在页面中显示出来了,或者是告诉一下如何在插件源码中自行更改代码呢?6

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: Mac设备下"复制指向突出显示的链接"开启后无效

Bug Description

Mac下,网页的右键菜单只有复制

  • 已尝试重启obsidian
  • 已尝试重装该插件
  • 其余web-browser插件已关闭

网页选中后右键如下图:
image

Relevant Screenshot

No response

To Reproduce

No response

Obsidian Version

0.3.0

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request: Zotero-Surfing

Feature Requested

Zotero中要是也有一款像Obsidian-Surfing一样的插件就好了

这个插件可以将各种网页嵌入到obsidian中,并进行访问

如果可以实现,那么就可以嵌入各种好用的工具,例如RSS订阅网站、notion网页笔记、x-mol文献平台、微信读书网页版、网页版思维导图等等一些快速便捷的工具(按钮

image


可能的应用:将ChatGPT嵌入zotero(视频为Zotero-Surfing的简单演示)

123.mp4

Relevant Screenshot

123.mp4

Checklist

  • The feature would be useful to more users than just me.

Forward-backward mouse button support + reload/dupplicate item in tab right click menu

Feature Requested

The title says it all, I am very accustomed to forward-backward side button navigation, and would love to have it in surf. Furthermore adding the common refresh/duplicate items in the tab right-click menu would also help match common browser behavior.

Lastly, having the ability to open in a new tab the previous/next page by scroll wheel (middle mouse) clicking the previous/next arrows would also be great to have!

Cheers and thanks for the great work, using the plugin virtually all the time nowadays!

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

Feature Request:

Feature Requested

Screenshot when you have opened web page inside Obsidian. I use a lot of mapping software and much of it is url based. So I ma already able to open it in Obsidian using Surfer (fantastic this is!!!).

I would love to be able to screenshot to an image in Obsidian. I do this now using Greenshot externally and saving into the Obsidian tree.

Would be delightful to be able to say right click and save a screenshot directly!

Thank you

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

Feature Request:

Feature Requested

Open in new Tab do not switch to it.

Relevant Screenshot

Holding ctrl and clicking a link usually in a browser give the user a new tab in another tab for that link

Checklist

  • The feature would be useful to more users than just me.

Feature Request: 网页翻译

Feature Requested

It would be great if there is a web page translation function

Relevant Screenshot

image

Checklist

  • The feature would be useful to more users than just me.

[Bug]: B站的复制时间戳没有分p

Bug Description

在B站,点右键有个复制时间戳的选项。
该选项复制出来的链接没有分P导致实际视频地址错误。

Relevant Screenshot

No response

To Reproduce

1、打开这个地址
2、右键点击”复制视频时间戳“并粘贴出来。00m25s
3、打开粘贴的链接,视频变成了这个

PS:上面的链接没有问题,我不太懂gayhub为啥跳到B站会显示404,直接访问该链接没有问题。

Obsidian Version

0.3.0

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request:

Feature Requested

可以在新的tab页的搜索栏加上切换搜索引擎的按钮吗,像浏览器中一样,这样可以极大地提高搜索体验度(不然来回去插件设置页面切换的话会有点麻烦)

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: B站某些视频复制时间戳无效。

Bug Description

问题和#66相同,点击后剪切板为空

Relevant Screenshot

我大概看了一下,带P的复制没有问题,但如果不带P就不行。
链接1

默认p=1的视频,在URL不写p参数的情况下依然是不能复制
链接2

当加上p=1参数后,该功能恢复正常。
链接3

即使没有分p的视频,加上p=1的参数,该功能依然正常。
链接4

To Reproduce

No response

Obsidian Version

0.5.0

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

增加按alt键用浏览器打开

Feature Requested

能加个按alt键(或者用户自定义)用浏览器打开么,有些网页还是想浏览器打开
image

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

Feature Request: Add refresh button

Feature Requested

Love this addin. Ccan you add a refresh button next to the forward/back arrows

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

Current Search Bar Hotkey

Feature Requested

A command through surfing can be used to edit the current search bar using a command slash hotkey. Editing the search bar is done often and should be as quick and easy as possible.

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[FR] 只提取正文,其余的不要

Feature Requested

保存页面为md文件,可否只提取正文啊。保存整个页面,要删除很多多余的东西。

(ps:俺不知道 只提取正文,在代码上,是否需要适配各种不同的网页代码,不知是否耗时)

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: 不能正常的运行了

Bug Description

无法在OB正常打开网页(最新版0.4.4)

Relevant Screenshot

surfing-BUG

To Reproduce

No response

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[Bug]: 点击外部链接跳转出两个页面

Bug Description

在ob打开链接会出现两个一样的tabs

Relevant Screenshot

动画

To Reproduce

No response

Obsidian Version

v1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[Bug]: 打开外部连接时会自动打开内部连接

Bug Description

Ctrl + Click时,会同时在ob内部和外部打开连接

Relevant Screenshot

No response

To Reproduce

No response

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[Bug]: 跳转到已打开页面, 实际不会进行跳转, 而且内容高亮也出问题

Bug Description

关联#48

比如在A页面截取两段内容, 复制各自链接(link1&link2)到B页面. 关闭A页面, 在B页面先点击link1, 将会正常打开并切换到A页面, 然后保持A页面开启回到B页面再点击link2, 此时则不会如预期般再跳回A页面, 并且即便进行手动切换, 也不再显示内容高亮.

重复试验一次, 在A页面截取两段内容, 复制各自链接(link1&link2)到B页面. 关闭A页面, 这回选择在B页面直接点击link2, 则会跳转到A页面但不显示高亮内容, 此时再回到B页面点击link1, 惊讶发现不仅不跳转而且不高亮. 此时手动跳转到A页面并将之关闭, 再回到B页面点击link1, 此时link1又能正常跳转并高亮了.

Relevant Screenshot

No response

To Reproduce

No response

Obsidian Version

0.15.8

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[FR] 做了一个 打开ob的 tampermoneky 脚本

Feature Requested

样式,头文件 ,按照你的意思修改一下吧。

// ==UserScript==
// @name         Open in Obsidian
// @namespace    all
// @version      0.1
// @description  try to take over the world!
// @author       You
// @icon         https://www.google.com/s2/favicons?sz=64&domain=stackoverflow.com
// @match        *://*/*
// @grant        none
// @grant        GM_registerMenuCommand
// ==/UserScript==

(function() {
  window.addEventListener("load", () => {
    addButton("Open in Obsidian");
  });

  function addButton(text, onclick, cssObj) {
      cssObj = cssObj || {
        position: 'fixed',
        top: '95%', // 在浏览器右下角
        right: '0%',
        'z-index': 3,
        fontWeight: '600',
        fontSize: '14px',
        ///backgroundColor: '#ffffff',
        opacity: 1, // 0 值,隐藏。
        color: 'white',
        border: 'none',
        padding: '10px 20px'
    };
    let button = document.createElement("button"),
      btnStyle = button.style;
    document.body.appendChild(button);
    button.innerHTML = text;
    // Settin function for button when it is clicked.
    button.onclick = selectReadFn;
    Object.keys(cssObj).forEach(key => (btnStyle[key] = cssObj[key]));
    return button;
  }

  function selectReadFn() {
    var txt = document.getElementById("ember3822");
    // Just to show button is pressed
    (function(){var i =document.location.href; document.location.href="obsidian://web-open?url=" + encodeURIComponent(i);})();
  }
})();


Relevant Screenshot

image

Checklist

  • The feature would be useful to more users than just me.

Feature Request: 为"复制指向突出显示的链接"添加快捷键支持

Feature Requested

比如ctrl+shift+c. 另外或许可将相应文本改为"复制指向划选内容的链接", 含义更加明确.
image

另外建议提供两个链接模板栏位并各分配一个快捷键. 典型应用场景比如, 一种模板设为[🔗]({URL}), 亦即只有链接没有正文内容, 绑定快捷键为ctrl+shift+c, 另一种模板设为{{CONTENT}}({{URL}}), 亦即既有链接又有正文, 绑定快捷键为ctrl+alt+c.
这样一来, 根据不同使用需要, 可以使用不同的快捷键来复制是否带有正文内容的链接. 体验会更上一层楼.

Checklist

  • The feature would be useful to more users than just me.

[Bug]: Vivaldi浏览器用不了 bookmarklets code。

Bug Description

image

弹出空白页。没有弹出ob

Relevant Screenshot

No response

To Reproduce

  1. bookmarklet code 放在 Vivaldi 书签栏上方。
  2. 打开任意网页
  3. 点击 bookmarklet code 。
  4. 打开空白页面,没有弹出ob。

在chrome,edge 的书签栏上,没有问题。

Obsidian Version

1.0.0

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request: 添加插件设置, 对带有text fragment的链接, 优先支持在相同标签页内打开.

Feature Requested

比如, 对于同一个网页https://test, 我摘录了ABCD四段内容, 生成了四个链接, https://test#:~:text=A/B/C/D. 如果分别点击这四个链接, 就将打开四个新页面.
而我希望如果已经打开了A, 那么再点击BCD时候, 不会再打开三个新页面, 而是在已打开的A的页面上做内容位置跳转. 亦即在打开新链接前, 如果链接包含#:~:text=, 就去检测是否有哪个已打开页面url包含了#:~:text=之前的https://test, 如果找到了就在该页面上打开新链接, 否则就在新页面上打开新链接.
不知道能否实现, 如果不行, 还有一个简陋方案, 类似#27, 设置一个快捷键比如shift+click, 强制所有链接点击之后一律在当前标签页的后一个标签页上(右侧相邻的标签页)打开.

Checklist

  • The feature would be useful to more users than just me.

[Bug]: bilibili视频复制时间戳无效

Bug Description

bilibili视频的复制时间戳功能,不起作用。点击复制后,粘贴板里面没有数据

Relevant Screenshot

No response

To Reproduce

No response

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[Bug]: 标签页的图标异常拉伸

Bug Description

标签页的图标被异常拉伸了。

Relevant Screenshot

image

To Reproduce

  1. 新建标签页
  2. 随便输入网址,例如 www.baidu.com
  3. 看标签页的图标

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request: 优化插件设置选项及相关命令的名字

Feature Requested

建议将"在同一标签页里打开网页"修改为"在同一窗格里打开新的网页".
"在同一标签页里打开网页", 很容易让人误以为说的是在当前标签页里用新页面来覆盖旧页面(比如在A页面上打开a链接, A页面上的原有内容将被覆盖).
毕竟对于ob1.0, 所谓标签页就是笔记页. 而官方对同一个ob窗口内的上下左右分页面的叫法似乎是窗格(pane). 或是直接用页面替换窗格, 也都比目前的标签页指向得更准确.
类似地, 将相关命令名字改为“Surfing: 切换是否在同一窗格里打开新的网页”.
image
image

此外还可以将"在当前页面标题栏中搜索"改为"在当前标签页中唤出网址搜索栏".

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: 黑暗模式下很多东西都看不清楚

Bug Description

黑暗模式下很多东西都看不清楚,比如我打开WIKI的这个页面,数学符号是神马完全看不到,还有B站的视频,在网页全屏模式下下面的按钮全部都看不到了。

Relevant Screenshot

image
image

To Reproduce

打开上述任意页面即可复现

Obsidian Version

0.3.0

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

[Bug]: Bookmarks broken

Bug Description

I enable bookmarks and then try to delete a bookmark, they don't delete.

Relevant Screenshot

No response

To Reproduce

  • install plugin and exit and reload obsidian
  • create a page with web link
  • open the web link in obsidian (new tab is default)
  • exit and reload
    • in the open web page click the setting icon and enable bookmarks, close settings
  • there is no bookmarks icon in left sidebar, so exit and reload
    • click the bookmarks icon in left sidebar
  • click delete on the first item and then second item
  • first is not gone. page won't scroll, etc. bookmarks seem broken
    I do have custom frames installed but disabled.

Obsidian Version

1.1.9

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request: 自动将url对中文的编码反转

Feature Requested

image
图上这俩是一个链接, 都能进行跳转并高亮, 但后者的可读性明显更高.
这是通过quickadd实现的, 希望能够将其吸收进插件中, 增添一个插件选项让用户选择是否启用这一功能. 具体也不是很懂, 直接用的大佬给出的解决方案, 或许对某些特殊字符需要特殊处理. 但我个人总是直接对text=之后的部分进行反转, 无论中文还是英文, 似乎也没遇到过什么问题, 哪怕英文单词间包含空格.

selObj = window.getSelection();
text = selObj.toString();
//await this.quickAddApi.utility.getClipboard();
text = await decodeURIComponent(text)
this.quickAddApi.utility.setClipboard(text);
//console.log("main " + text);
return text;

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: 部分网页无法弹出右键菜单

Bug Description

在点击了前进后退导航键之后, 再浏览任意页面, 直接右键都无法继续弹出右键菜单, 偶尔会有闪现, 只有先划选文字之后才能右键唤出菜单.
进而发现, 其实只要进行了页面跳转, 就会触发这个bug. 比如在搜索栏用百度引擎搜啊啊啊, 弹出的搜索页面可以正常右键, 但只要接着点进去某个页面(比如啊-百度百科), 右键菜单就无法直接唤出了.
image
Obsidian_0VAtykTebQ

Obsidian Version

0.15.8

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

Feature Request: 选择性的打开连接

Feature Requested

希望可以添加一个在库外打开连接的功能,比如:Ctrl+click(其他辅助按键也可以)

因为有很些网站希望在库外打开,但是启动这个插件后只能在库内打开了。

Relevant Screenshot

No response

Checklist

  • The feature would be useful to more users than just me.

[Bug]: 导致“Buttons”创建的link类型的按钮无效

Bug Description

更新到最新的Surfing(0.4.0)会导致由“Buttons”创建按钮失效

Relevant Screenshot

比如示例库中的四个按键全部失效;

image

To Reproduce

No response

Obsidian Version

1.0.3

web-browser-only

  • Did you install only one web browser plugin?

Checklist

  • I updated to the latest version of the plugin.

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.