Skip to content

Add new scriptlet — 'remove-node-text' #318

@Yuki2718

Description

@Yuki2718

gorhill/uBlock@2bb4467
It's not a trusted scriptlet. We already have several rules to remove node text, e.g. in Japanese filters

jisakuhibi.jp#%#AG_onLoad(function() { var el = document.querySelector('.article-body'); if(el) { el.innerHTML = el.innerHTML.replace(/スポンサードリンク/g,''); } });
rank1-media.com#%#AG_onLoad(function() { document.body.innerHTML = document.body.innerHTML.replace(/スポンサードリンク/g, ""); });
2ch.pet#%#AG_onLoad(function() { document.body.innerHTML = document.body.innerHTML.replace(/広告/g, ""); });

It will be nice to have the scriptlet and replace these rules with it, also for similar cases in future.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions