hide ads on yandex

Removes ads in Yandex search results ("Реклама")

  1. // ==UserScript==
  2. // @description Removes ads in Yandex search results ("Реклама")
  3. // @name hide ads on yandex
  4. // @include *yandex.ru*
  5. // @require https://code.jquery.com/jquery-2.1.3.min.js
  6. // @version 1.1
  7. // @namespace mapx_hide_yandex_ads
  8. // ==/UserScript==
  9.  
  10. function addJQuery(callback) {
  11. var script = document.createElement("script");
  12. script.setAttribute("src", "https://code.jquery.com/jquery-2.1.3.min.js");
  13. script.addEventListener('load', function() {
  14. var script = document.createElement("script");
  15. script.textContent = "(" + callback.toString() + ")();";
  16. document.body.appendChild(script);
  17. }, false);
  18. document.body.appendChild(script);
  19. }
  20.  
  21. function main() {
  22. $('div.serp-item:contains("Реклама")').hide()
  23. }
  24.  
  25. // load jQuery and execute the main function
  26. addJQuery(main);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址