Comments (8)
Hello,能更详细描述下你的需求么?为什么还需要发送剪切板中的磁链,插件是支持直接把网页内容发送到Kubespider的呀。
这个插件不能将网页中的文本内容直接发送吧、比如磁力链接直接显示在网页中只提供了一个copy选项 没有做超链接 就没法发送
from kubespider.
Hello,能更详细描述下你的需求么?为什么还需要发送剪切板中的磁链,插件是支持直接把网页内容发送到Kubespider的呀。
这个插件不能将网页中的文本内容直接发送吧、比如磁力链接直接显示在网页中只提供了一个copy选项 没有做超链接 就没法发送
好的,我大致明白啦,我们近期会调研一下插件捕获内容的处理方式。非常感谢你的建议
本来想自己搞一下,但是nodejs 确实不懂, 环境搞了一上午没弄起来,npm run dev 在windows 上会提示一个
这个路径就很奇怪, 不知道是哪里环境配置的问题, 有时间可以考虑支持一下, 多谢
from kubespider.
Hello,能更详细描述下你的需求么?为什么还需要发送剪切板中的磁链,插件是支持直接把网页内容发送到Kubespider的呀。
from kubespider.
是这种场景吗,比如qq desktop发了个链接,你复制一下,然后鼠标右键发送触发下载?
from kubespider.
理解了,这个确实没支持
from kubespider.
Hello,能更详细描述下你的需求么?为什么还需要发送剪切板中的磁链,插件是支持直接把网页内容发送到Kubespider的呀。
这个插件不能将网页中的文本内容直接发送吧、比如磁力链接直接显示在网页中只提供了一个copy选项 没有做超链接 就没法发送
好的,我大致明白啦,我们近期会调研一下插件捕获内容的处理方式。非常感谢你的建议
from kubespider.
看了下,chrome extension v3应该不支持类似操作,实现代码如下(kubespider-extension/src/backgroud.js,模仿https://github.com/extend-chrome/clipboard/blob/master/src/index.ts):
import {
consumer,
sender,
MessageType,
Reply,
SuccessReply,
ErrorReply,
} from "@message";
import Notification from "@message/notification";
import { api, downloadRequest } from "@api";
import Storage from "@storage";
import { Tab, Cookies } from "@bridge";
import Browser from "webextension-polyfill";
/**
* create context menu
*/
Browser.runtime.onInstalled.addListener(() => {
Browser.contextMenus.create({
id: "KubespiderLinkMenu",
title: "Send to Kubespider",
contexts: ["all"],
});
Browser.contextMenus.create({
id: "KubespiderClipboardMenu",
title: "Send clipboard link to Kubespider",
contexts: ["all"],
});
});
/**
* handle context menu click
*/
Browser.contextMenus.onClicked.addListener(async (info, tab) => {
let dataSource = ""
switch (info.menuItemId) {
case "KubespiderMenu": {
let dataSource = info.linkUrl;
if (dataSource === "" || dataSource == null) {
dataSource = tab?.url;
}
break
}
case "KubespiderClipboardMenu": {
const el = document.createElement('textarea')
el.value = 'before paste'
document.body.append(el)
// Paste from clipboard into input
el.select()
document.execCommand('paste')
// The contents of the clipboard
const text = el.value
el.remove()
console.log(text);
break
}
}
...
根据这个FAQ: https://www.reddit.com/r/learnjavascript/comments/rqr5eg/document_is_not_defined/
v3应该不支持了。
from kubespider.
Related Issues (20)
- feat: unlock various websites with yt-dlp and majic source provider
- bug: fix meijutt downloading
- magnet download broken HOT 3
- Add full support to Youtube ,consider youtube has many hostname,
- 请问公网访问kubespider服务配置事 HOT 2
- Maybe we can provide a gateway function for kubespider
- Add support for Onedrive file download in "Send to Kubespider" chrome plugin
- 无法使用you-getdownloader及tiktok-dlp下载器 HOT 6
- ci: Standard Version Installation Method
- feat: Support get downloading trigger from various IMS HOT 6
- Qbittorrent subcategory功能支持
- 允许自定义订阅源的刷新时间 HOT 5
- Dependency Dashboard
- docker运行后,浏览器访问404页面 HOT 4
- 自动下载B站博主更新的视频出错
- 文档里针对mikanime资源的说明
- 下载 alist_source_provider 中的文件失败 HOT 6
- Add some documentation about how to define provider.yaml
- Chrome plugin not works fine HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubespider.