a simple regexp
- by Delirium tremens
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?