Last active
February 21, 2022 20:49
-
-
Save Kirlovon/5c40594939a7157654954633add4839b to your computer and use it in GitHub Desktop.
Убирает вниз раздел "Свежее" на DTF.ru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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