/ Browser

修复被禁用的剪切、拷贝、粘贴功能

function fixCCP() {
  var elems = document.getElementsByTagName('*');
  var attrs = ['onpaste', 'oncopy', 'oncut'];
  for (i = 0; i < elems.length; i++) {
    for (j = 0; j < attrs.length; j++) {
      if (elems[i].getAttribute(attrs[j])) {
        elems[i].setAttribute(attrs[j],elems[i]
          .getAttribute(attrs[j])
          .replace('return false', 'return true'));
      }
    }
  }
}

书签:FixCCP(拖拽到书签工具栏)

via Undoing oncut/oncopy/onpaste Falsities