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
/** | |
* This script was written in 2015 and no longer works since 2017. | |
* The issue is most likely the `document.querySelector` since the queries return no results. | |
*/ | |
// How to use this script: | |
// 1. Go to web.whatsapp.com and connect your device. | |
// 2. Open the developer console in chrome (F11 on windows, command+alt+i on mac) | |
// 3. Go to the tab console | |
// 4. Copy the script below, paste it and press enter. |
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
function $(expr, con) { | |
return [].slice.call((con || document).querySelectorAll(expr)); | |
} |
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
// Simple JavaScript Templating | |
// John Resig - http://ejohn.org/ - MIT Licensed | |
(function(){ | |
var cache = {}; | |
this.tmpl = function tmpl(str, data){ | |
// Figure out if we're getting a template, or if we need to | |
// load the template - and be sure to cache the result. | |
var fn = !/\W/.test(str) ? | |
cache[str] = cache[str] || |