From a1ab22fbd5bac7ada09ce2b92faa4d643f269c3d Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 10 Dec 2008 10:46:18 +0000 Subject: Initial release: なるべく大きい画面で操作したいような趣 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26310 d0d07461-0603-4401-acd4-de1884942a52 --- maine_coon.js | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 maine_coon.js (limited to 'maine_coon.js') diff --git a/maine_coon.js b/maine_coon.js new file mode 100644 index 0000000..9464168 --- /dev/null +++ b/maine_coon.js @@ -0,0 +1,94 @@ +let PLUGIN_INFO = + + Maine Coon + メインクーン + Makes more large screen + なるべくでかい画面で使えるように + 1.0 + anekos + 2.0pre + 2.0pre + + Creative Commons Attribution-Share Alike 3.0 Unported + + normal + == Global Variables == + :maine_coon_targets: + other elements ids that you want to kill. + let g:maine_coon_targets = "sidebar-2 sidebar-2-splitter" + ]]> + normal + == Global Variables == + :maine_coon_targets: + 他の非表示にしたい要素のIDを空白区切りで指定します。 + let g:maine_coon_targets = "sidebar-2 sidebar-2-splitter" + ]]> +; + +let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/); + +(function () { + + function around (obj, name, func) { + let next = obj[name]; + obj[name] = function () + let (self = this, args = arguments) + func.call(self, + function () next.apply(self, args), + args); + } + + function s2b (s, d) (!/^(\d+|false)$/i.test(s)|parseInt(s)|!!d*2)&1<