Comments (8)
Lol, Opera do return getBoundingClientRect
for a script
node as hardcore as standard says. Scripts have dimensions nowadays: can't agree more... %)
from autopatchwork-mod.
Try to replace calc_remain_height
function in autopatchwork.js
with this and report the result:
/* Calculates remaining height when scrolling page. */
function calc_remain_height() {
var rect, bottom;
var _point = insert_point;
while (_point && !_point.getBoundingClientRect ||
(
_point.getBoundingClientRect &&
(
_point.getBoundingClientRect().top === 0 &&
_point.getBoundingClientRect().right === 0 &&
_point.getBoundingClientRect().bottom === 0 &&
_point.getBoundingClientRect().left === 0
)
)
) {
_point = _point.nextSibling;
}
if (_point) {
rect = _point.getBoundingClientRect();
bottom = rect.top + window.pageYOffset;
} else if (append_point && append_point.getBoundingClientRect) {
rect = append_point.getBoundingClientRect();
bottom = rect.top + rect.height + window.pageYOffset;
}
if (!bottom) {
bottom = Math.round(rootNode.scrollHeight * 0.8);
}
return rootNode.scrollHeight - bottom + options.BASE_REMAIN_HEIGHT;
}
from autopatchwork-mod.
Thank You. Lot better now. :)
from autopatchwork-mod.
Please check again here: http://pclab.pl/art51964.html Second page starts loading when on the center of the screen.
from autopatchwork-mod.
Don't see a problem. Cool game, btw, almost completed it. But I wish they do more original storyline.
from autopatchwork-mod.
Thank you for checking this. I need to finally learn to debug in a clean environment :)
This is my problem http://userscripts.org/scripts/review/132590 I use this script to unhide low rated comments. Page height become larger after execution. But I still not understand why this interfere with APW. APW calculate page height from bottom???
from autopatchwork-mod.
This fails probably because calc_remain_height
function called on extension load only. So if you modify height after that the result of calculation becomes invalid. Try to use AutoPatchWork.ready
listener to execute your script (but only the latest commit'll support that).
from autopatchwork-mod.
I tried to make this snippet simple and portable (e.g. always use *.user.js
name and no @run-at
). I believe AutoPatchWork.ready
is not very friendly for this. Now it's more complicated, but I hope it will work as expected.
Thank you for help :)
from autopatchwork-mod.
Related Issues (15)
- Siteinfo manager not work HOT 5
- Current page number in title HOT 1
- Bad SITEINFO rule stops further search for a matching rule. HOT 1
- Optionally preload next page HOT 2
- UserJS patches manager HOT 1
- Option to disable remote SITEINFO DB HOT 1
- Auto detect format of searchable element HOT 4
- Error Loading Extension HOT 1
- Default Remote DB down HOT 1
- Please upload it to Mozilla's addons and Chrome's Webstore. HOT 1
- Doesn't work on sites with exisiting patterns using Firefox HOT 14
- Not loading in Vivaldi developer mode because of manifest errors HOT 1
- Site works in AutoPagerize but not correctly in AutoPatchWork Mod HOT 1
- toggle on off on bottom panel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autopatchwork-mod.