Agus mé ag léamh Geektimes, bhí mé i gcónaí ag iarraidh na heagarthóirí a mhúchadh, toisc go bhfuil siad ag iompú pobal féinrialaithe le hailt atá le feiceáil go héasca ina riarthóir eile nó rud éigin cosúil leis.
Tar éis dom an post a fheiceáil ar an bpríomhleathanach cúpla lá ó shin “
Sílim go bhfuil an chúis atá leis an gcinneadh seo soiléir do gach duine - is beag duine a bheidh ag iarraidh a bheith cothaithe i bhfeidhm le dramhaíl faisnéise den sórt sin. Níl an riarachán ag iarraidh an cumas a thabhairt d'eagarthóirí a chumrú agus a dhíchumasú - is é seo a cheart. Mo cheart an acmhainn a fhágáil.
Mar sin féin, go raibh maith agat
Nuashonrú ó 2018 - molaim an script a úsáid ó
Удаляем посты юзеров в Хроме
Mar sin, chun eagarthóirí a bhaint i Chrome, ní mór duit an síneadh Tampermonkey BETA a shuiteáil, script nua a chruthú agus an cód a chur ann
// ==UserScript==
// @name Habr editor blocker
// @description Hides articles that were posted by certain authors
// @match https://geektimes.ru/*
// @version 1
// @grant none
// ==/UserScript==
// @namespace http://tampermonkey.net/
var authors = [
'alizar',
'marks',
'ivansychev',
'ragequit',
'SLY_G',
];
var posts = document.querySelectorAll('.post');
for (var idx = 0; idx < posts.length; ++idx) {
var post = posts[idx];
for (var i = 0; i < authors.length; ++i) {
var selector = '.post-author__link[href$="/' + authors[i] + '/"]';
var blockedAuthor = post.querySelector(selector);
if (blockedAuthor) {
post.style.display = 'none';
break;
}
}
}
Cá háit
‘alizar’,
'marcanna',
‘ivansychev’,
‘ragequit’,
'SLY_G',
Seo liosta úsáideoirí nach dtaispeánfar a bpostálacha. Is féidir leat an liosta a shaincheapadh duit féin.
Scrios postálacha úsáideora i Firefox
Suiteáil GreaseMonkey, cruthaigh script nua, cóipeáil é seo:
// ==UserScript==
// @name Habr editor blocker
// @description Hides articles that were posted by certain authors
// @include https://geektimes.ru/*
// @version 1
// @grant none
// ==/UserScript==
var authors = [
'alizar',
'marks',
'ivansychev',
'ragequit',
'SLY_G',
];
var posts = document.querySelectorAll('.post');
for (var idx = 0; idx < posts.length; ++idx) {
var post = posts[idx];
for (var i = 0; i < authors.length; ++i) {
var selector = '.post-author__link[href$="/' + authors[i] + '/"]';
var blockedAuthor = post.querySelector(selector);
if (blockedAuthor) {
post.style.display = 'none';
break;
}
}
}
Brabhsálaithe eile
Má úsáideann an brabhsálaí ardán Chrome (mar shampla, brabhsálaí Yandex), leantar na treoracha do Chrome ansin, ní gá duit ach
Go raibh maith agat arís
Nuashonrú ó 2018 - molaim an script a úsáid ó
Foinse: will.com