Commit Graph

10 Commits

Author SHA1 Message Date
David Todd ef606d89bb Fix getting improper response
Define the API method as GET
JSON.parse is now parsing the response child of the request instead of the whole request object - This kept failing the script after getting response from server
Add a fail scenario when a link fails testURL
encode URIs to prevent "interesting" server-side URI mangling

Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 22:29:09 -05:00
David Todd ce51fc203e Add background.js
This is the main code of the extension. Most of the main functions are in here.
This should also be close to the final result of what the code will look like

Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 21:39:25 -05:00
David Todd fd0c3d9dbc Fix manifest.json
For some reason chrome.tabs.get is failing with an undefined method error,
this should fix the permissions... hopefully

Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 21:38:02 -05:00
David Todd 720fcd78a5 Remove browser_action
This contained jQuery, popup.js, browser_action.html
We don't need a large library like jQuery when native functions work
popups are a thing of the past :3
browser_action was just popup.html renamed, not needed either

Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 21:16:05 -05:00
David Todd 01d2275d91 Add js/contextmenu.js
This javascript file uses chrome's API to add one or two context menu entries.
Most of the time, the shortenFile will not be called, but it is available

Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 20:53:35 -05:00
David Todd 1e1f4104b7 Add background.html
Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 20:51:06 -05:00
David Todd d6fd7a509d Update manifest.json
This makes it look a little bit nicer instead of rendering everything into a bland popup

Signed-off-by: David Todd <c0de@unps.us>
2015-03-13 20:46:19 -05:00
Avi Ginsberg 27e29aeaed Removed many unused files that were added by extensionizer boilerplate. I'm learning :) 2015-02-05 22:13:39 -05:00
Avi Ginsberg ac1e75cb25 Cleaned up code & Added real error parsing/displaying 2015-02-04 18:53:30 -05:00
Avi Ginsberg 64029974be Remapped Directory Tree 2015-01-23 14:24:54 -05:00