Skip to content

Instantly share code, notes, and snippets.

diff -r bc3047f2e894 char-hints-mod2.js
--- a/char-hints-mod2.js Fri May 21 23:26:09 2010 +0900
+++ b/char-hints-mod2.js Sat May 22 11:58:08 2010 +0900
@@ -71,6 +71,31 @@
//}}}
(function () {
+ (function(){
+ //override _showHints
+ const key = "Hints.prototype._showHints";
<div style="width:100px;overflow:auto;">
<div style="width:200px;">
<a href="#">anchor</a>
</div>
</div>
<div style="width:100px;overflow:auto;border-right:100px solid transparent;">
<div style="width:200px;">
<a href="#">anchor</a>
</div>
//http://code.google.com/p/vimperator-labs/source/browse/common/content/buffer.js?spec=svna58ba2909452326de623a7a978799a44dcf92150&r=ba0d0f68dea50aa115e0d7f27be19c95f1f6ac54#1058
//1058,1090
findScrollable: function findScrollable(dir, horizontal) {
let pos = "scrollTop", size = "clientHeight", max = "scrollHeight", layoutSize = "offsetHeight",
overflow = "overflowX", border1 = "borderTopWidth", border2 = "borderBottomWidth";
if (horizontal)
pos = "scrollLeft", size = "clientWidth", max = "scrollWidth", layoutSize = "offsetWidth",
overflow = "overflowX", border1 = "borderLeftWidth", border2 = "borderRightWidth";
function find(elem) {
findScrollable: function findScrollable(dir, horizontal) {
let pos = "scrollTop", size = "clientHeight", max = "scrollHeight", layoutSize = "offsetHeight",
overflow = "overflowX", border1 = "borderTopWidth", border2 = "borderBottomWidth";
if (horizontal)
pos = "scrollLeft", size = "clientWidth", max = "scrollWidth", layoutSize = "offsetWidth",
overflow = "overflowX", border1 = "borderLeftWidth", border2 = "borderRightWidth";
function find(elem) {
for (; elem && elem.ownerDocument; elem = elem.parentNode) {
let style = util.computedStyle(elem);
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.pixiv.net") {
/*幅指定解除*/
#wrapper,
.ui-layout-east,
.contents-east,
.two_column,
.two_column_body,
diff --git a/common/content/modes.js b/common/content/modes.js
--- a/common/content/modes.js
+++ b/common/content/modes.js
@@ -226,6 +226,8 @@
this._modeStack = [];
if (config.isComposeWindow)
this.set(modes.COMPOSE, modes.NONE, silent);
+ else if (liberator.has("tabview") && TabView.isVisible() && liberator.mode !== modes.PANORAMA)
+ this.set(modes.PANORAMA, modes.NONE, silent);
else
.tabbrowser-tab::before {
display: inline-block;
padding-top: 8px;
content: attr(pos);
font-weight: bold;
color: #eee;
font-size: 0.8em;
margin-right: -1em;
z-index:65535;
position:relative;
diff --git a/common/content/commands.js b/common/content/commands.js
--- a/common/content/commands.js
+++ b/common/content/commands.js
@@ -915,14 +915,22 @@
}
// highlight non-existent commands
- let command = commands.get(cmd);
+ let command = Commands.prototype.get.call(subCmds ? {_exCommands: subCmds} : commands, cmd);
if (!command) {
# HG changeset patch
# Parent 2183248b822c8bd6792990e0d52c7b25c63644d1
diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm
--- a/common/modules/storage.jsm
+++ b/common/modules/storage.jsm
@@ -274,6 +274,11 @@
var storage = {
alwaysReload: {},
newObject: function newObject(key, constructor, params) {
+ if (!params.reload && !params.store) {
#!/usr/bin/python
# -*- coding: utf8 -*-
from mercurial.i18n import _
from mercurial import ui, hg
from mercurial import extensions, patch, cmdutil, commands
def committohookfunc(repo, commitfunc, **opts):
def _commitfunc(ui, repo, *pats, **opts):
opts = opts.copy()