Commits

Troy Gaul committed 1811933

Version 1.1 of the Josey Wales extension, as initially released on tgaul.net.

Comments (0)

Files changed (5)

+# use glob syntax
+syntax: glob
+
+*.mode1v3
+*.pbxuser
+*.mode2v3
+*.perspectivev3
+*.TM_Completions.*
+*.tmproj
+*.tm_build_errors
+project.xcworkspace
+xcuserdata
+.DS_Store
+.svn
+
+syntax: regexp
+^build/
+/build/
+\.orig$

Wikipedia Josey Wales.safariextension/Info.plist

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>Author</key>
+	<string>Troy Gaul</string>
+	<key>CFBundleDisplayName</key>
+	<string>Wikipedia Josey Wales</string>
+	<key>CFBundleIdentifier</key>
+	<string>net.tgaul.wikipediajoseywales</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.1</string>
+	<key>CFBundleVersion</key>
+	<string>2</string>
+	<key>Chrome</key>
+	<dict/>
+	<key>Content</key>
+	<dict>
+		<key>Scripts</key>
+		<dict>
+			<key>End</key>
+			<array>
+				<string>inject.js</string>
+			</array>
+		</dict>
+		<key>Stylesheets</key>
+		<array>
+			<string>inject.css</string>
+		</array>
+	</dict>
+	<key>Description</key>
+	<string>Dyin’ ain’t much of a living, boy.</string>
+	<key>ExtensionInfoDictionaryVersion</key>
+	<string>1.0</string>
+	<key>Permissions</key>
+	<dict>
+		<key>Website Access</key>
+		<dict>
+			<key>Allowed Domains</key>
+			<array>
+				<string>*.wikipedia.org</string>
+			</array>
+			<key>Level</key>
+			<string>Some</string>
+		</dict>
+	</dict>
+</dict>
+</plist>

Wikipedia Josey Wales.safariextension/JoseyWalesAppeal-normal.jpg

Added
New image

Wikipedia Josey Wales.safariextension/inject.css

+#JA1banner3{
+	background-color: #ffffff !important;
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#EditorBanner1A{
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#EditorBanner2A{
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#EditorBanner3A{
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#EditorBanner4A{
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}
+
+#EditorBanner5A{
+	background-image: url(JoseyWalesAppeal-normal.jpg) !important;
+}

Wikipedia Josey Wales.safariextension/inject.js

+
+var weAreChanging = false
+
+function replaceEditor() {
+	if( weAreChanging )
+		return;
+
+	weAreChanging = true
+	
+	var elt
+	function getElt( name ) {
+		if( !elt )
+			elt = document.getElementById( name )
+	}
+	
+	getElt( "JA1banner3-text" );
+	
+	getElt( "EditorBanner1A-text" );
+	getElt( "EditorBanner2A-text" );
+	getElt( "EditorBanner3A-text" );
+	getElt( "EditorBanner4A-text" );
+	getElt( "EditorBanner5A-text" );
+	
+	if( elt )
+		elt.innerHTML = "<span><style type=\"text/css\">a:link {color: #000000} a:visited {color: #000000}</style><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>";
+	
+	weAreChanging = false;
+}
+
+replaceEditor();
+
+window.addEventListener( 'DOMSubtreeModified', replaceEditor );
+window.addEventListener( 'DOMNodeInserted', replaceEditor );
+window.addEventListener( 'onload', replaceEditor );