该页似乎使用了“jQueryTOOLS Scrollable。
The lousy UI experience is triggered by this code in the main page:
<script>
// initialize scrollable para ademas
jQuery(document).ready(function() {
$("div.scroller_ademas").scrollable({
size: 1,
items: #ademasaldea ,
vertical: true
}).mousewheel({
items: #ademasaldea
});
});
</script>
And all the unbind()
calls and keyboard = false
sets that should work, don t affect the keyboard hijack!
幸运的是,违法行为的<代码>和t;script>是相当的原子,因此Greasemonkey可以阻止对联合材料的犯罪,而不会影响任何其他因素。
Block the JS by using the stunningly-brilliant checkForBadJavascripts
utility.
与此类似:
// ==UserScript==
// @name _Block scrollable that s run amuck.
// @namespace _pc
// @include http://www.nacion.com/*
// @run-at document-start
// @require https://gist.github.com/raw/2620135/checkForBadJavascripts.js
// ==/UserScript==
checkForBadJavascripts ( [
[false, /items:s+ #ademasaldea /, null]
] );
请注意,这也将阻止“El Mundo的Ademas en El Mundo”箱的滚动作用,但可以通过添加这一词语来确定。
window.addEventListener ("load", function () {
GM_addStyle ( #ademasaldea { height: 100%; overflow-y: scroll; } );
}, false);
to the script.