Permalink
Browse files

repo clean up

  • Loading branch information...
1 parent 12d2e2e commit 0a56b898ea5474991a7df5c3b73602aa9e7ee35b @aziz committed Jun 26, 2012
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,28 @@
+{
+ "name": "Google Reader Lion UI",
+ "version": "1.5.2",
+ "manifest_version": 1,
+ "description": "Inspired by Mac OSX Lion",
+ "icons": { "128": "icon.png" },
+ "browser_action": {
+ "default_icon": "icon.png",
+ "default_popup": "popup.html",
+ "default_title": "Google Reader Lion UI"
+ },
+ "content_scripts": [
+ {
+ "matches": ["http://www.google.com/reader/view/*"],
+ "css": ["mystyles.css"],
+ "js": ["jquery.js", "myscript.js"]
+ }
+ ],
+ "permissions": [
+ "http://api.flickr.com/"
+ ]
+}
+
+// update_url
+// background_page
+// page_action
+// content scripts
+
@@ -0,0 +1,25 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Getting Started Extension's Popup</title>
+ <style>
+ body {
+ min-width:357px;
+ overflow-x:hidden;
+ }
+
+ img {
+ margin:5px;
+ border:2px solid black;
+ vertical-align:middle;
+ width:75px;
+ height:75px;
+ }
+ </style>
+
+ <!-- JavaScript and HTML must be in separate files for security. -->
+ <script src="popup.js"></script>
+ </head>
+ <body>
+ </body>
+</html>
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var req = new XMLHttpRequest();
+req.open(
+ "GET",
+ "http://api.flickr.com/services/rest/?" +
+ "method=flickr.photos.search&" +
+ "api_key=90485e931f687a9b9c2a66bf58a3861a&" +
+ "text=hello%20world&" +
+ "safe_search=1&" + // 1 is "safe"
+ "content_type=1&" + // 1 is "photos only"
+ "sort=relevance&" + // another good one is "interestingness-desc"
+ "per_page=20",
+ true);
+req.onload = showPhotos;
+req.send(null);
+
+function showPhotos() {
+ var photos = req.responseXML.getElementsByTagName("photo");
+
+ for (var i = 0, photo; photo = photos[i]; i++) {
+ var img = document.createElement("image");
+ img.src = constructImageURL(photo);
+ document.body.appendChild(img);
+ }
+}
+
+// See: http://www.flickr.com/services/api/misc.urls.html
+function constructImageURL(photo) {
+ return "http://farm" + photo.getAttribute("farm") +
+ ".static.flickr.com/" + photo.getAttribute("server") +
+ "/" + photo.getAttribute("id") +
+ "_" + photo.getAttribute("secret") +
+ "_s.jpg";
+}
Binary file not shown.
@@ -5,7 +5,7 @@
<key>Author</key>
<string>Allen Bargi</string>
<key>Builder Version</key>
- <string>7534.57.2</string>
+ <string>7536.16</string>
<key>CFBundleDisplayName</key>
<string>Google Reader Lion UI</string>
<key>CFBundleIdentifier</key>
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,43 @@
+/*
+1. video titles
+2. link title and descriptions
+3. comments
+*/
+
+
+/*== TYPOGRAPHY */
+* {
+ font-family: "open sans" !important;
+}
+
+/*== RTL */
+[dir="rtl"] {
+ text-align: right !important;
+ direction: rtl !important;
+}
+
+.XF [dir="rtl"], .YF [dir="rtl"], .ot-anchor [dir="rtl"], .Ju [dir="rtl"] {
+ display: block !important;
+ float: right !important;
+}
+
+/*== GoogleBar */
+#gbx3, #gbzw {
+ display: none !important;
+}
+
+#gbx1, #gb #gbx1, #gbq, #gbu, #gb #gbq, #gb #gbu {
+ top: 0 !important;
+}
+
+#gb {
+ height: 66px !important;
+}
+
+.Dob {
+ height: 72px !important;
+}
+
+.Hoa.n0b.RWa {
+ top: 120px !important;
+}

0 comments on commit 0a56b89

Please sign in to comment.