Skip to content

Instantly share code, notes, and snippets.

@Kirlovon
Last active February 21, 2022 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kirlovon/5c40594939a7157654954633add4839b to your computer and use it in GitHub Desktop.
Save Kirlovon/5c40594939a7157654954633add4839b to your computer and use it in GitHub Desktop.
Убирает вниз раздел "Свежее" на DTF.ru
// ==UserScript==
// @name RemoveNewDTF
// @namespace remove-new-dtf
// @version 1.0
// @description Убирает вниз раздел "Свежее" на DTF.ru
// @author Kirlovon
// @match *://dtf.ru/*/*
// @grant none
// ==/UserScript==
// Поменять false на true что бы удалить раздел
const removeElement = false;
window.addEventListener('load', () => {
const element = document.querySelector('div[href="/new"]');
element.remove();
if (!removeElement) document.querySelector('.sidebar-tree-list').appendChild(element);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment