Возвращаем спойлерам Харбра треугольнички
[more=Habra_Mega_Geek_fix v2.1]
Код: // ==UserScript==
// @name Habra_Mega_Geek_fix
// @author RuBoard OperaTeam
// @version 2.1
// @include
http://habracdn.net/* // @include
http://habrastorage.org/* // @include
http://habrahabr.ru/* // @include
http://geektimes.ru/* // @include
http://megamozg.ru/* // ==/UserScript==
(function()
{
(typeof GM_addStyle != 'undefined' ? GM_addStyle : function addStyle(css)
{
var head = document.getElementsByTagName('head')[0];
var style = document.createElement("style");
style.type = "text/css";
style.appendChild(document.createTextNode(css));
head.appendChild(style);
}
)(
"#navbar,\ .sidebar_right .block.company_info,\ .for_users_only_msg {\
display: none !important;\
}\
#layout {\
max-width: 99% !important;\
}\
#layout .inner {\
padding-left: 8px !important;\
}\
.comments_list .comment_item .message,\ .comment_body {\
padding: 0px 0px 10px 0px !important;\
line-height: 120% !important;\
}\
.post .content {\
line-height: 120% !important;\
}\
.post_item {\
font-size: 0.9rem !important;\
margin-top: 0em !important;\
}\
.next-prev,\ #nav-pages {\
overflow: visible !important;\
padding-bottom: 14px !important;\
}\
.bottom_promo_blocks,\ #footer {\
line-height: 80% !important;\
}\
#footer {\
padding-top: 6px !important;\
}\
#footer dl dd {\
line-height: 90% !important;\
margin-bottom: 2px !important;\
}\
.html_format .spoiler .spoiler_title {\
line-height: 140% !important;\
}\
.html_format .spoiler:before {\
background:url(http://habracdn.net/habr/images/1442568806/spoiler.icon.png) no-repeat left top !important;\
}\
.html_format .spoiler.spoiler_open:before {\
background:url(http://habracdn.net/habr/images/1442568806/spoiler.icon.png) no-repeat left bottom !important;\
");
})();
window.addEventListener('DOMContentLoaded', function()
{
var lnks=document.getElementsByTagName('link');
for(var i=0;i<lnks.length;++i){
lnks[i].href=lnks[i].href.replace(/^https:\/\/habr/,"http://habr");
}
var imgs=document.getElementsByTagName('img');
for(var i=0;i<imgs.length;++i){
imgs[i].src=imgs[i].src.replace(/^https:\/\/habr/,"http://habr");
}
if (location.hostname.indexOf('habrahabr.ru') !== -1)
{
var gmjs = document.createElement('script');
gmjs.setAttribute("src", "http://habracdn.net/habr/javascripts/1442568822/assets/global_main.js");
var pcjs = document.createElement('script');
pcjs.setAttribute("src", "http://habracdn.net/habr/javascripts/1442568822/assets/post_common_js.js");
document.head.appendChild(gmjs);
document.head.appendChild(pcjs);
}
}, false);