Commits

Troy Gaul committed f3725e6

Added support for applying to JA1Banner11 and JABanner13. Bumped version to 1.4.

Comments (0)

Files changed (3)

Wikipedia Josey Wales.safariextension/Info.plist

 	<key>CFBundleInfoDictionaryVersion</key>
 	<string>6.0</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.3</string>
+	<string>1.4</string>
 	<key>CFBundleVersion</key>
-	<string>4</string>
+	<string>5</string>
 	<key>Chrome</key>
 	<dict/>
 	<key>Content</key>

Wikipedia Josey Wales.safariextension/inject.css

-#JA1banner3{
-	background-color: #ffffff !important;
-	background-position: right top !important;
-	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
-}
+/* Common */
+
+#siteNotice a:link { color: #000000 !important; }
+#siteNotice a:visited { color: #000000 !important; }
+
+/* Various Editor Banners */
 
 #EditorBanner1A{
 	background-color: #ffffff !important;
 	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
 }
 
-#EditorBanner4A{
-	background-color: #ffffff !important;
-	background-position: right top !important;
-	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
-}
-
-#EditorBanner4A-text {
-   padding: 0.75em 1.5em !important;
-}
-
-#EditorBanner4A #notice-button {
-	position: relative !important;
-	right: auto !important;
-	top: 5px !important;
-}
-
 #EditorBanner5A{
 	background-color: #ffffff !important;
 	background-position: right top !important;
 	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
 }
 
-#siteNotice a:link { color: #000000 !important; }
-#siteNotice a:visited { color: #000000 !important; }
+/* EditorBanner4A */
+
+#EditorBanner4A{
+	background-color: #ffffff !important;
+	background-position: right top !important;
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#EditorBanner4A-text {
+   padding: 0.75em 1.5em !important;
+}
+
+#EditorBanner4A #notice-button {
+	position: relative !important;
+	right: auto !important;
+	top: 5px !important;
+}
+
+/* JA1banner3 */
+
+#JA1banner3{
+	background-color: #ffffff !important;
+	background-position: right top !important;
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+/* JA1Banner11 */
+
+#JA1Banner11{
+	background-color: #ffffff !important;
+	background-position: right top !important;
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#JA1Banner11 #cn-bold-blue-text {
+   padding: 0.75em 1.5em !important;
+   text-align: left !important;
+}
+
+#JA1Banner11 #notice-button2 {
+	position: relative !important;
+	right: auto !important;
+	top: -18px !important;
+	left: 40px !important;
+}
+
+/* JABanner13 */
+
+#JABanner13{
+	background-color: #ffffff !important;
+	background-position: right top !important;
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#JABanner13 #cn-bold-blue-text {
+   padding: 0.75em 1.5em !important;
+   text-align: left !important;
+}
+
+#JABanner13 #notice-button2 {
+	position: relative !important;
+	right: auto !important;
+	top: -18px !important;
+	left: 40px !important;
+}
+

Wikipedia Josey Wales.safariextension/inject.js

 
 var weAreChanging = false
 
+function getJABanner13() {
+	if( document.getElementById( "JABanner13" ) )
+		return document.getElementById( "cn-bold-blue-text" );
+}
+
 function replaceAppeal() {
 	if( weAreChanging )
 		return;
 	getElt( "EditorBanner8A-text" );
 	getElt( "EditorBanner9A-text" );
 	
+	// special cases:
+	
+	if( !elt ) {
+		if( document.getElementById( "JABanner13" ) ||
+				document.getElementById( "JA1Banner11" ) )
+			elt = document.getElementById( "cn-bold-blue-text" );
+				// This may be too-general a replacement, but since it was
+				// specified as the ID, not class, other elements *shouldn't*
+				// be using it.
+	}
+	
+	// replace the content:
+	
 	if( elt )
 		elt.innerHTML = "<span><a href=\"http://tumblr.seoulbrother.com/post/2065345794/six-years-ago-wikipedia-started-with-a-radical\">Please read:<br>A personal appeal from<br>the outlaw Josey Wales</a></span><div id=notice-button></div>";