部分之后的JavaScript剪贴板操作已从网站复制 [英] Javascript clipboard manipulation after section has been copied from website

查看:111
本文介绍了部分之后的JavaScript剪贴板操作已从网站复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从本网站



我的剪贴板会在它说阅读更多:然后我正在阅读的页面的网址(加上一个独特的外观字符串结束)

他们是如何做到这一点?

解决方案

我做了一些逆向工程,它看起来像这个脚本负责剪贴板操作:



http://tcr.tynt.com/ti.js (使用 http://jsbeautifier.org 查看未压缩的代码)



请参阅本网站上的介绍电影:

http:/ /www.tynt.com/



技术上我不喜欢t知道它是如何完成的,看起来他们不使用Flash,而是使用 getSelection()函数和复制,上下文菜单事件。


When I copy a section of test from this website

my clipboard gets extra text appended to the end of it saying "Read more: " then the url of the page I was reading (plus a unique looking string on the end)

How have they done this?

解决方案

I've made some reverse engineering and it looks like this script is responsible for clipboard manipulation:

http://tcr.tynt.com/ti.js (use http://jsbeautifier.org/ to see uncompressed code)

See the introduction movie on this website:

http://www.tynt.com/

Technically I don't know how is it done, looks like they don't use Flash but make use of getSelection() function and copy, contextmenu events.

这篇关于部分之后的JavaScript剪贴板操作已从网站复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆