[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Add MediaWiki custom JS snippet from gsathya.



commit 29fe098e56554190727f104e185fab95df8afa51
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Jan 9 15:14:39 2013 -0800

    Add MediaWiki custom JS snippet from gsathya.
---
 ChangeLog                   |    6 ++++++
 modules/mediawiki/custom.js |    9 +++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bfac87f..f7be997 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Changes in version 0.12
+  o Added a line of JavaScript that you can use to put a proxy badge on
+    MediaWiki sites that allow custom JavaScript. Follow the
+    instructions in modules/mediawiki/custom.js. Contributed by
+    Sathyanarayanan Gunasekaran.
+
 Changes in version 0.11
   o Added -4 and -6 options to flashproxy-client and
     flashproxy-reg-http. (The options already existed in
diff --git a/modules/mediawiki/custom.js b/modules/mediawiki/custom.js
new file mode 100644
index 0000000..4b882c6
--- /dev/null
+++ b/modules/mediawiki/custom.js
@@ -0,0 +1,9 @@
+/* Flash proxy badge for MediaWiki. By Sathyanarayanan Gunasekaran.
+   Requires $wgAllowUserJs to be true in the MediaWiki configuration.
+   https://www.mediawiki.org/wiki/Manual:Interface/JavaScript
+   This affects only your own user. Works on Wikipedia.
+
+   Go to Preferences â?? Appearance â?? Custom JavaScript.
+   You will end up editing common.js; paste in this code and save it. */
+
+$('#p-personal ul').append('<li><iframe src="//crypto.stanford.edu/flashproxy/embed.html" width="80" height="15" frameborder="0" scrolling="no"></iframe></li>');

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits