Skip to content

Instantly share code, notes, and snippets.

@nestdimon
Last active December 1, 2022 13:44
Show Gist options
  • Select an option

  • Save nestdimon/44122fe2c069cf5b56b3ad15b75e9aee to your computer and use it in GitHub Desktop.

Select an option

Save nestdimon/44122fe2c069cf5b56b3ad15b75e9aee to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Yandex search
// @namespace NDS.yandex.search
// @version 0.2.0
// @description Make result page more clear like "Goo"
// @author NDS
// @match https://yandex.ru/search/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=yandex.ru
// @require https://yastatic.net/jquery/3.3.1/jquery.min.js
// @run-at document-start
// @grant GM_addStyle
// @downloadURL https://gist.github.com/nestdimon/44122fe2c069cf5b56b3ad15b75e9aee/raw
// @updateURL https://gist.github.com/nestdimon/44122fe2c069cf5b56b3ad15b75e9aee/raw
// ==/UserScript==
(function() {
'use strict';
var css = `
/********************
* Clear background
********************/
html .b-page__body {
background-color: #ffffff;
}
html .serp-item_card {
box-shadow: none;
}
/********************
* Move content more to center
********************/
@media (min-width: 1560px) {
html .main__center {
margin-left: 165px;
}
html .content__left {
width: 700px;
}
}
/********************
* Bigger text
********************/
html .Typo_text_m {
font-size: 14px;
}
html .Typo_line_m.Typo_text_m {
line-height: 1.55em;
}
/********************
* Brighter link
********************/
html .Link_theme_normal {
color: #1a0dab;
}
/********************
* Flat article
********************/
html .ArticleList {
border: 0;
border-left: 1px solid #dadce0;
border-radius: 0;
box-shadow: none;
}
/********************
* Flat realted
********************/
html .Related-Button {
background-color: #fbfbfb;
box-shadow: 0 1px 1px 0 rgb(13 35 67 / 13%);
}
`;
GM_addStyle(css);
$(document).ready(function() {
// Удаляем переадресацию на yandex при переходе по ссылке
$('.Link').removeAttr('data-counter')
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment