Created
July 11, 2012 17:57
-
-
Save joseadrian/3092037 to your computer and use it in GitHub Desktop.
Bookmarklet: Direct Link Config Fb App
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 regex = /(?:^https?:\/\/(?:www\.)?(?:developers\.)?facebook.com\/(?:apps\/)?(?:.+(?:\/|\?sk=))(?:app_)?)([0-9]{15})(?:.+)?/; | |
if( (app_id = location.href.match(regex)) != null ) | |
{ | |
location.href= 'https://developers.facebook.com/apps/'+app_id[1]+'/summary'; | |
} | |
})(); | |
// Bookmarklet | |
(function(){ var regex = /(?:^https?:\/\/(?:www\.)?(?:developers\.)?facebook.com\/(?:apps\/)?(?:.+(?:\/|\?sk=))(?:app_)?)([0-9]{15})(?:.+)?/; if( (app_id = location.href.match(regex)) != null ) location.href= 'https://developers.facebook.com/apps/'+app_id[1]+'/summary'; })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment