mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-09-02 02:30:20 +00:00
ajuste de regras
This commit is contained in:
parent
f1ac7d1f79
commit
de345d2eca
1 changed files with 31 additions and 1 deletions
|
@ -190,7 +190,37 @@ return [
|
||||||
'fromGoogleBot' => true
|
'fromGoogleBot' => true
|
||||||
],
|
],
|
||||||
'nytimes.com' => [
|
'nytimes.com' => [
|
||||||
'idElementRemove' => ['gateway-content'],
|
'idElementRemove' => ['gateway-content','site-index'],
|
||||||
|
'customCode' => '
|
||||||
|
setTimeout(function() {
|
||||||
|
const walk = document.createTreeWalker(
|
||||||
|
document.body,
|
||||||
|
NodeFilter.SHOW_TEXT,
|
||||||
|
null,
|
||||||
|
false
|
||||||
|
);
|
||||||
|
let node;
|
||||||
|
while (node = walk.nextNode()) {
|
||||||
|
node.textContent = node.textContent
|
||||||
|
.replace(/’/g, "\\u2019") /* right single quotation */
|
||||||
|
.replace(/‘/g, "\\u2018") /* left single quotation */
|
||||||
|
.replace(/”/g, "\\u201D") /* right double quotation */
|
||||||
|
.replace(/“/g, "\\u201C") /* left double quotation */
|
||||||
|
.replace(/—/g, "\\u2014") /* em dash */
|
||||||
|
.replace(/–/g, "\\u2013") /* en dash */
|
||||||
|
.replace(/…/g, "\\u2026") /* horizontal ellipsis */
|
||||||
|
.replace(/•/g, "\\u2022") /* bullet */
|
||||||
|
.replace(/&/g, "&") /* ampersand */
|
||||||
|
.replace(/ /g, " ") /* non-breaking space */
|
||||||
|
.replace(/"/g, "\\"") /* quotation mark */
|
||||||
|
.replace(/'/g, "\'") /* apostrophe */
|
||||||
|
.replace(/</g, "<") /* less than */
|
||||||
|
.replace(/>/g, ">") /* greater than */
|
||||||
|
.replace(/à/g, "\\u00E0") /* lowercase a with grave accent */
|
||||||
|
.replace(/ñ/g, "\\u00F1"); /* lowercase n with tilde */
|
||||||
|
}
|
||||||
|
}, 3000);
|
||||||
|
',
|
||||||
'customStyle' => '
|
'customStyle' => '
|
||||||
.vi-gateway-container {
|
.vi-gateway-container {
|
||||||
position: inherit !important;
|
position: inherit !important;
|
||||||
|
|
Loading…
Add table
Reference in a new issue