Thread: [User feedback required] Script error
View Single Post
  #3  
Old 09.04.2018, 18:57
Mistery Mistery is offline
JD VIP
 
Join Date: Aug 2015
Posts: 344
Default

// 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.
Reply With Quote