staying_alive icon indicating copy to clipboard operation
staying_alive copied to clipboard

works only when URL fully matches

Open skyboyer opened this issue 10 years ago • 4 comments

if I use "http://localhost:8080" as trigger URL plugin does not start background requesting for URL based on given. E.g. "http://localhost:8080/test" does not start requesting.

skyboyer avatar Jul 25 '14 09:07 skyboyer

Here's a version that allows you to put a wildcard (*) at the end of the trigger URL.

https://chrome.google.com/webstore/detail/staying-alive-with-wildca/lkdnaojfhnjkophgbnmfaciclaghffpe

Any chance we can get this fix put in the official build of Staying Alive? All I did was modify isUriMatch in lib.js:

DomainRule.prototype.isUriMatch = function (uri) { ret = uri === this.uri || (uri === (this.uri + '/') ) || uri === this.loopUri || (uri === (this.loopUri + '/') ); if (!ret && this.uri.endsWith("*")) { ret = (uri.indexOf(this.uri.slice(0,-1)) === 0); }

return !!ret;

}

mhenry1384 avatar Sep 26 '14 01:09 mhenry1384

Yes... this should be merged. No wildcards is annoying.

lingfish avatar Jul 21 '17 03:07 lingfish

Here's a version that allows you to put a wildcard (*) at the end of the trigger URL.

https://chrome.google.com/webstore/detail/staying-alive-with-wildca/lkdnaojfhnjkophgbnmfaciclaghffpe

Any chance we can get this fix put in the official build of Staying Alive? All I did was modify isUriMatch in lib.js:

DomainRule.prototype.isUriMatch = function (uri) { ret = uri === this.uri || (uri === (this.uri + '/') ) || uri === this.loopUri || (uri === (this.loopUri + '/') ); if (!ret && this.uri.endsWith("*")) { ret = (uri.indexOf(this.uri.slice(0,-1)) === 0); }

return !!ret;

}

where can we find the git repo for this version? Thanks.

tksoh avatar Jul 23 '20 07:07 tksoh

as a workaround i think you can just leave 1 tab open in that fixed URL and work in separate tab

lucaspottersky avatar Aug 24 '20 12:08 lucaspottersky