Commits

Philippe Casgrain committed 497c250

Fixed bug that prevented 1/2 the pages from showing up properly.

Updated to version 2.1

  • Participants
  • Parent commits 2e4a445

Comments (0)

Files changed (3)

Wikipedia aitalian.safariextension/Info.plist

 	<key>CFBundleInfoDictionaryVersion</key>
 	<string>6.0</string>
 	<key>CFBundleShortVersionString</key>
-	<string>2.0</string>
+	<string>2.1</string>
 	<key>CFBundleVersion</key>
-	<string>5</string>
+	<string>21</string>
 	<key>Chrome</key>
 	<dict/>
 	<key>Content</key>

Wikipedia aitalian.safariextension/inject.js

     {
         if (document.getElementById('text-line-2') != null)
         {
-            document.getElementById('text-line-1').firstChild.nodeValue="A personal appeal from";
+            document.getElementById('text-line-1').firstChild.nodeValue="Please help an honest mechanic:";
             document.getElementById('text-line-2').firstChild.nodeValue="Angelo Italiano";
         }
         else
         {
             var oldmsg = document.getElementById('cn-bold-blue-text');
-            var parentmsg = oldmsg.parentNode;
-            parentmsg.replaceChild(newmsg, omsg);
+            var parent = oldmsg.parentNode;
+            parent.replaceChild(newmsg, oldmsg);
         }
-        document.getElementById('cn-bold-blue-text').parentNode.parentNode.style.backgroundImage = "url(http://apps.casgrain.com/safari/aitalian/aitalian-appeal-normal.jpg)";
+        bgImage = 'url(' + safari.extension.baseURI + 'aitalian-appeal-normal.jpg' + ')';
+        document.getElementById('cn-bold-blue-text').parentNode.parentNode.style.backgroundImage = bgImage;
         document.getElementById('cn-bold-blue-text').parentNode.parentNode.style.backgroundSize = "155px";
     }
 }

website-files/update-manifest.plist

        <key>Developer Identifier</key>
        <string>V7QY36F2JR</string>
        <key>CFBundleVersion</key>
-       <string>1</string>
+       <string>21</string>
        <key>CFBundleShortVersionString</key>
-       <string>2.0</string>
+       <string>2.1</string>
        <key>URL</key>
        <string>http://apps.casgrain.com/safari/aitalian/Wikipedia%20aitalian.safariextension</string>
      </dict>