Made some updates, I think you might want to switch to this new version anyway as in addition to adding ATOM and improving how that is handled over the version attached earlier in this thread, it also has some general improvements. The code is a little longer, but most likely makes up for that in efficiency/modularity. From the comments section:
Code:
// Unofficial update Jan 23rd, '17(jscheuer1): Add and improve capability to process ATOM feeds, routines to complete main (title)) links
// from feeds if they're relative, more options and tweak result of limitlength()*, add linktarget to all links in a feed/feed group,
// distribute uneven filterfeed() 'number to show' more evenly, preserve for possible subsequent inits all regex's used on fields and
// feed added via addregexp(), (previously only regex's used on the entire feed were preserved), add feedwritten function. add test to
// see if target div already exists allowing the initial function to be recalled on the same element, tidy up code a bit
// -------------------------------------------------------------------
/* limitlength() still works mostly as originally designed. New options - even if the entry is already short enough, all tags
can still be stripped from the field if a third parameter is set to true, ex:
instance.limitlength(175, 'descriptionfield', true)
Instead of providing a number limit, one can opt for the keyword 'strip'. If one does so, the
result is that tags are stripped from the field but no limit is imposed, ex:
instance.limitlength('strip', 'descriptionfield')
Also, slightly changed is that the test to see if the limit is applied is now the on screen length of the unstripped text,
rather than the unstripped length, which it did before and if done that way could sometimes result in shorter entries
than desired, or unecessary stripping, HTML tags* add no length to text on the screen, but do add a lot to the string
length. By removeing them and replacing non-breaking spaces with spaces, we can get a truer screen length of the text.
* other than images, no way to measure them until they load. They can be set display none or sized in style,
or strippred separately with regex feature.
*/
That last bit on exactly what was done to limitlength() can be removed once the demo page instructions reflect the changes. Here's the script:
gfeedfetcher-prot.js
Bookmarks