Created
April 18, 2014 08:35
-
-
Save ChiChou/11031818 to your computer and use it in GitHub Desktop.
Useful code snippets run in F12 console.
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
/* | |
List all ip addresses in query result of Shodanhq.com | |
*/ | |
(function() { | |
var a = [], b = document.querySelectorAll('.ip'); | |
for(var i=0; i<b.length; i++) { | |
a.push(b[i].innerText) | |
} | |
console.log(a) | |
})(); |
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
/* | |
Remove restriction for copying and selecting. | |
*/ | |
(function() { | |
['contextmenu', 'dragstart', 'selectstart', 'select', 'copy', 'beforecopy'].forEach(function(e) { | |
document.body['on' + e] = function(){return true} | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment