a simple regexp
Posted
by Delirium tremens
on Stack Overflow
See other posts from Stack Overflow
or by Delirium tremens
Published on 2010-04-05T20:16:52Z
Indexed on
2010/04/05
20:23 UTC
Read the original article
Hit count: 478
The regexp has to remove ,id or id, in read and unread.
GM_setValue('unreadids', (unreadids == '') ? '' : unreadids.replace(new RegExp('('+id+',)|(,'+id+')', 'i'), ''));
GM_setValue('readids', (readids == '') ? '' : readids.replace(new RegExp('('+id+',)|(,'+id+')', 'i'), ''));
It works in Rx Toolkit, not in real life.
Why?
© Stack Overflow or respective owner