Skip to content

Instantly share code, notes, and snippets.

diff --git a/common/content/javascript.js b/common/content/javascript.js
index 5d18212..4d9d789 100644
--- a/common/content/javascript.js
+++ b/common/content/javascript.js
@@ -637,8 +637,10 @@ const JavaScript = Module("javascript", {
options.add(["inspectcontentobjects"],
"Allow completion of JavaScript objects coming from web content. POSSIBLY INSECURE!",
"boolean", false);
- options.add(["expandtemplate"],
- "Expand TemplateLiteral",
@caisui
caisui / a.patch
Last active August 29, 2015 14:05
diff --git a/common/content/completion.js b/common/content/completion.js
index fbbfdef..8ab68e7 100644
--- a/common/content/completion.js
+++ b/common/content/completion.js
@@ -208,7 +208,13 @@ const CompletionContext = Class("CompletionContext", {
__proto__: item
}));
});
- return { start: minStart, items: util.Array.flatten(items), longestSubstring: this.longestAllSubstring
+ return { start: minStart, items: util.Array.flatten(items),
diff --git a/_libly.js b/_libly.js
index 9626b54..5a5d583 100644
--- a/_libly.js
+++ b/_libly.js
@@ -247,7 +247,7 @@ libly.$U = {//{{{
let pluginPath;
Error('hoge').stack.split(/\n/).some(
function (s)
- let (m = s.match(/-> liberator:\/\/template\/chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/))
+ let (m = s.match(/(?:-> liberator:\/\/template\/)?chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/))
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;