|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
// @match https://ria.ru/*
|
|
|
|
|
// @match https://rg.ru/*
|
|
|
|
|
// @match https://www.cnews.ru/*
|
|
|
|
|
// @match https://mixednews.ru/*
|
|
|
|
|
// @match https://russian.rt.com/*
|
|
|
|
|
// @match https://zakonvremeni.ru/*
|
|
|
|
|
// @icon https://icons.duckduckgo.com/ip2/zakonvremeni.ru.ico
|
|
|
|
@ -234,7 +235,7 @@
|
|
|
|
|
elements.forEach(function (element) { |
|
|
|
|
if (element.host == location.hostname) { |
|
|
|
|
RemoveCurrentElementSaveChild(element, clear_element); |
|
|
|
|
}
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
let tags_to_align = ['p', 'h2']; |
|
|
|
@ -382,7 +383,7 @@
|
|
|
|
|
), |
|
|
|
|
[] |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (content.length == 0) { |
|
|
|
|
// test: https://russian.rt.com/inotv/2023-10-27/DELFI-Latviya-budet-konfiskovivat-mashini
|
|
|
|
|
const base_element_title = document.getElementsByClassName('left-column page')[0].getElementsByTagName("h1")[0]; |
|
|
|
@ -394,7 +395,7 @@
|
|
|
|
|
base_element_title, |
|
|
|
|
base_element_image, |
|
|
|
|
base_element_text, |
|
|
|
|
'!!!!',
|
|
|
|
|
'!!!!', |
|
|
|
|
'.*', |
|
|
|
|
'article-intro|article-body', |
|
|
|
|
ElementCheckerTrue, |
|
|
|
@ -428,6 +429,25 @@
|
|
|
|
|
[] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
else if (location.hostname == 'mixednews.ru') { |
|
|
|
|
// test: https://mixednews.ru/archives/180224
|
|
|
|
|
const base_element = document.getElementsByClassName('entry-header')[0]; |
|
|
|
|
|
|
|
|
|
content = MakeContentByNews( |
|
|
|
|
base_element, |
|
|
|
|
document, |
|
|
|
|
document, |
|
|
|
|
'entry-title', // Нет названия
|
|
|
|
|
'entry-content', |
|
|
|
|
'entry-content', |
|
|
|
|
ElementCheckerTrue, |
|
|
|
|
SubElementCheckerToRemoveTemplate( |
|
|
|
|
'ssba', |
|
|
|
|
'NOSCRIPT|SCRIPT|BR|IMG|!--' |
|
|
|
|
), |
|
|
|
|
[] |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
else if (location.hostname == 'zakonvremeni.ru') { |
|
|
|
|
const base_element = document.getElementsByClassName('item-page')[0]; |
|
|
|
|
const title = GetContentInContainers(FindElementsByRegExp(GetElementClassName, 'page-header', base_element), grub_text_func, FinishWorkFuncZV); |
|
|
|
|