kdzwinel / SnappySnippet

Chrome extension that allows easy extraction of CSS and HTML from selected element.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conversion of Relative URLs to Absolute URLs

computingfreak opened this issue · comments

I encountered this situation when i wanted to clip part of a page with image tags with the src elements pointing to relative paths, when clipping that section, the URLs were copied as is, instead i think with the help of regular expressions, test (^/, /$, contains http[s]?) and set, we can use absolute URLs, this might be an issue with all kinds of linked/embedded resources, not just images, but also, audio, video, javascript or style files. please look into it.