Skip to content

Instantly share code, notes, and snippets.

@good-vi
Last active October 29, 2021 14:49
Show Gist options
  • Select an option

  • Save good-vi/46500a9e638cac5e882f1bb34ce0aa05 to your computer and use it in GitHub Desktop.

Select an option

Save good-vi/46500a9e638cac5e882f1bb34ce0aa05 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name yandex logo to ya.ru
// @namespace https://yandex.ru/
// @version 0.1
// @description patch logo
// @author You
// @match https://yandex.ru/*
// @icon https://www.google.com/s2/favicons?domain=yandex.ru
// @grant none
// ==/UserScript==
(function() {
document.getElementsByClassName('logo_type_link')[0].href='//ya.ru'
document.getElementsByClassName('header3__logo')[0].href='//ya.ru'
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment