// Trigger: Packagizer Hook
var url = link.getSourceUrls().pop();
var rtbf = (/www.rtbf.be/).test(url);
if (rtbf) {
var page = getPage(url);
var titre = page.match(/<title>(.+)<\/title>/)[1];
link.setPackageName(titre);
}
example: **External links are only visible to Support Staff****External links are only visible to Support Staff**
mgpai helped me ;-)
But (here and in general) it's possible to obtain a url, example in the page as above and replace the original by this one ?
Last edited by Mistery; 10.04.2018 at 01:12.
|