Easy Offline

Find out all magnet links and torrents and video links in current page, and stream them from cloud storage automatically.

< Feedback on Easy Offline

Question/comment

§
Posted: 2016-11-10

为啥没支持 my.pcloud.com 离线下载?这个超级快啊

这里有一些离线下载的网盘总结 http://weibo.com/p/1001603870816231394832?mod=zwenzhang?comment=1

用了下 https://my.pcloud.com 离线下 Http 超级快啊

hoothinAuthor
§
Posted: 2016-11-10
Edited: 2016-11-11

那贴我早前看过了,几乎全失效了,不加pcloud因为不支持BT、磁链和电驴,这年头敢于提供http或ftp下载的资源拖起来速度大都不慢,所以感觉用处不大

最终还是加了,小加了个判断,如果不是http就不显示pcloud

§
Posted: 2016-11-23

谢谢大神的改进。我是js初学者最近写自己的GM user脚本,我看了你这个代码,想用进我自己指定的几个网站里用于离线下里面的http下载地址,只是格式是http://xxx.php/?getXXXXX这样的。看你写的脚本代码没懂,我想在下载地址旁边加按钮,点击后会打开 Pcloud 的http离线页面里,不知道你怎么实现的,能把连接自动复制进去它自己就开始离线,能写个简单的代码我看看嘛?

hoothinAuthor
§
Posted: 2016-11-23
Edited: 2016-11-24

更新脚本 打开设置页面 添加http:.*\.php\/\?get 自动复制并离线是用了GM的本地存储

§
Posted: 2016-11-24
Edited: 2016-11-24

你发的链接 设置页面 https://github.com/hoothin/UserScripts/tree/master/Easy%20offline#一键离线下载 进去了输入了正则再点按钮或者×都没反应啊?难道不兼容 Chorme 的?

为啥不配合写个右键整合菜单,这样有需要的地址,直接自己右键进去选择要离线的站不行吗?

chrome extension store 上有一些插件就是整合进右键menu里的,可惜不会写。。。

hoothinAuthor
§
Posted: 2016-11-24

改了,没反应是因为数据为空,不加右键因为脚本是针对页面而不是浏览器的,光靠脚本除了火狐其他浏览器都做不到,而且我也希望能直观地看到页面中的下载资源在哪,最后建议你先去巩固一下基本功,至少这类问题可以先百度一下:)

§
Posted: 2016-11-25

那能不能写个Chrome的右键整合这几个网站的菜单的插件?

§
Posted: 2016-11-25

为啥还是不起作用?

DOWNLOAD

hoothinAuthor
§
Posted: 2016-11-25
Edited: 2016-11-25

不起作用因为默认带问号的都不是直链,不可以离线 你有这种需求可以自己写一个啊,基于mit可以随意用我的代码,扩展添加右键菜单也不复杂,另外这种问题也不应该问我呀

§
Posted: 2016-11-25
Edited: 2016-11-25

添加用户设置功能,填入正则表达式可增加支持链接
这个只能在你的github上设置?不是在我本地?

“自己写一个啊,基于mit可以随意用我的代码” 我不会“自动复制并离线是用了GM的本地存储”

能写下代码我看看嘛?就是把href这个参数放进 链接后面的按钮里或者< a >里 后面的按钮或者链接我自己会。

§
Posted: 2016-11-25

添加用户设置功能,填入正则表达式可增加支持链接
这个只能在你的github上设置?不是在我本地?

为啥关了chrome重新访问 https://github.com/hoothin/UserScripts/tree/master/Easy%20offline#一键离线下载

里面又全是空白了?

§
Posted: 2016-11-25

var down = document.querySelector('a[href^="/get.php"]');

var anothernewItem = document.createElement("a");
anothernewItem.setAttribute("target", "_blank"); anothernewItem.setAttribute("title", "pcloud离线下载"); anothernewItem.setAttribute("href", "https://my.pcloud.com/"); var anothertextnode = document.createTextNode("离线"); anothernewItem.appendChild(anothertextnode); anothernewItem.setAttribute("style", "position: absolute; margin-top: 0px; margin-left: 0px; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAXVBMVEX///////8bytT///8fy9UbytQbytQfy9Ufy9UmzNYbytQgy9UizNUbytT///8bytQey9Ufy9Ugy9VG1NxB09sbytRg2uFS194bytT///9G1Nzx/Pzi+PpT19+c6OxZ7rqXAAAAGHRSTlMBG/AHxYAh49O3oWJBMRUR4bOLYV9RQz9fW5zbAAAAbUlEQVQY043MRxLCMBBE0WYkOQcyXybc/5hIhUuww2/3u2pGG1WdYV1VujcyG9ceWdmcM8jDK8bHE0LqCzMQF5Y7NOnNgeE7MATBMQ+fE/q9wCwNkDUetUAZPLVuxq+z3LWlqE9OctOumFL/9QYClwvt3NkDkgAAAABJRU5ErkJggg=='); background-color: rgb(241, 241, 241);"); down.parentNode.insertBefore(anothernewItem,down);

anothernewItem.click(function (event) { GMsetValue("eoUrl",document.querySelector('a[href^="/get.php"]').href); }); alert(GMgetValue("eoUrl"));

(function () { if (location.href.indexOf("my.pcloud.com") != -1) { //window.clearInterval(t); curlink = GMgetValue('eoUrl'); if (curlink) { var psc = setInterval(function () { var upBtn = document.querySelector('div.uploadbutton'); if (upBtn) { clearInterval(psc); upBtn.click(); document.querySelector('span.remoteupload-ctrl').click(); var remotearea = document.querySelector('textarea.remotearea'); remotearea.value = curlink; remotearea.nextSibling.click(); } }, 500); GM_deleteValue('eoUrl'); } } }());

我点了页面A的按钮后 打开pcloud的页面提示

TypeError: Cannot read property 'href' of null

怎么解?

Post reply

Sign in to post a reply.