Created
July 13, 2015 13:47
-
-
Save 7LayersDesign/81686b2b4ade8e4270e9 to your computer and use it in GitHub Desktop.
Get rough list of old code ad calls.
This file contains hidden or 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(){ | |
| var adMethods = [], adPattern = /^[a-z]*Ad$/i; | |
| for( var key in window ){ | |
| if( window.hasOwnProperty(key) ){ | |
| if( adPattern.test(key) ){ | |
| adMethods.push(key); | |
| } | |
| } | |
| } | |
| return adMethods; | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment