在通过Sci-枢纽访问了我需要的研究论文之后,屏幕上显示了多个俄罗斯方块。我怎么才能消除它们?我试图禁用JavaScript,但PDF文件无法加载。
发布于 2016-12-06 15:27:16
我完全支持sci-集线器,我也不介意额外的盒子询问,例如捐款,但我真的不认为烦人的盒子不适应非俄语演讲者(也是顶部的酒吧,不滚动。
要以编程方式删除这些框,可以使用以下userscript。我在Google上使用Tamper猴子,但你可能也可以在Greasemonkey和其他平台上使用它。要做的关键事情是使diwth #save
、#reload
、#donate
和#donatein
消失,并将#content
div的top
css属性重置为零。
// ==UserScript==
// @name _Remove annoying divs
// @include http://sci-hub.cc/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// ==/UserScript==
/*--- Use the jQuery contains selector to find content to remove.
Beware that not all whitespace is as it appears.
*/
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
var badDivs = $( "#save, #reload, #donate, #donatein");
addGlobalStyle('#content { top: 0px !important; }');
badDivs.remove ();
//-- Or use badDivs.hide(); to just hide the content.
发布于 2015-12-27 11:20:46
简单,就像检查这个链接和一个pdf出现,有8页。然后,它在两边和顶部展示了同样的俄罗斯选项。如果你想移除那些
检查元件(Q)
选项,在右键单击该框后,它将在<div........>
标记中显示html标记。
按“删除”按钮移除该DIV标记。
https://webapps.stackexchange.com/questions/88032
复制相似问题