Skip to content

Instantly share code, notes, and snippets.

@interference-security
Last active July 6, 2018 05:35
Show Gist options
  • Save interference-security/f9d7527d6a5ca96a101b5268e94c483d to your computer and use it in GitHub Desktop.
Save interference-security/f9d7527d6a5ca96a101b5268e94c483d to your computer and use it in GitHub Desktop.
Javascript hacks
AngularJS: angular.version
ReactJS: React.version
JQuery: $().jquery;
Remove disabled attribute:
html_elements = ["input", "select", "button"]; for(j=0; j<html_elements.length; j++) { for(i=0; i<document.getElementsByTagName(html_elements[j]).length; i++) { document.getElementsByTagName(html_elements[j])[i].disabled=false; } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment