GreasyFork Bullshit Filter

Hides scripts for popular browser games and social networks as well as scripts that use "foreign" characters in descriptions. Applies to posts in Forum too.

< 脚本GreasyFork Bullshit Filter的反馈

提问/评论

§
发表于:2015-10-21
编辑于:2015-10-21

GreasyFork Bullshit Filter decembre : Make it compatible with [TS] Citrus GFork

Good idea!
But i use this script too:
[TS] Citrus GFork
Can you make it compatible with it ?

I try to tweak your script by change line 47 by that:
function insertStatus() {
var p = document.querySelector('#site-name');

So i can see your menu .
but the filter indicator seem not working.

Can you do something about that ??

§
发表于:2015-11-01

perfect:
thanks !

§
发表于:2016-01-03
编辑于:2016-01-03

About "Non ASCII" filter....

Can you take care of the script description ?
By example this one :
// @description:fr
etc....

Because it touch script like this one:
AntiAdware

darkred作者
§
发表于:2016-01-03
编辑于:2016-01-04

The script currently filters anything over the ASCII range x00-x7F in hex. That is line 18: 'Non-ASCII': /[^\x00-\x7F\s]+/i, i.e. 0-127 in decimal.

Based on this page HTML Codes for French the non-ASCII french characters are xAB,xBB,xC0,xC2,xC6,xC7,xC8,xC9,xCA,xCB,xCE,xCF,xD4,xD9,xDB,xDC,xE0,xE2,xE6,xE7,xE8,xE9,xEA,xEB,xEE,xEF,xF4,xF9,xFB,xFC plus x80,x152,x153,x20A3 i.e. 171-252 in decimal (plus 128,338,339,8355 for the symbols: €, Œ, œ, ₣)

So, the ideal solution would be to combine these values with the above range.

But, what I can only suggest is to manually modify the line 18 into: 'Non-ASCII': /[^\x00-\xFC\s]+/i,

§
发表于:2016-01-04
编辑于:2016-01-04

That's good, Thanks !
It seems i don't understand what is non-ASCII .
Apparently that's not to filter, by example Chinese language.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址