NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name LN Bypass Copy Paste // @namespace https://www.lanacion.com.ar // @version 0.1 // @description Mata el copy paste problem de la nacion // @author I // @include http*://www.lanacion.com.ar/* // @grant window.getSelection // @grant document.selection // @run-at default // @copyright 2018, ivofarcry (https://openuserjs.org//users/ivofarcry) // @license MIT // ==/UserScript== (function() { 'use strict'; console.log('Empezo el rompedor de la nacion'); function getSelectionText() { var text = ""; if (window.getSelection) { text = window.getSelection().toString(); } else if (document.selection && document.selection.type != "Control") { text = document.selection.createRange().text; } return text; } function copyRealText() { document.addEventListener('copy', function(e) { console.log('Copiado el texto de LN'); e.preventDefault(); var i = getSelectionText(); e.clipboardData.setData('text/plain', i); }); } copyRealText(); })();