home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / res / context.wktpl < prev    next >
Text File  |  2013-04-03  |  1KB  |  46 lines

  1. function AvantDownloadAll() {
  2.   var doc = document;
  3.   var sValue = doc.location.href + ' \n' +
  4.                doc.characterSet + ' \n';
  5.   for (i=0; i < doc.links.length; i++) {
  6.     var sTitle = doc.links[i].textContent;
  7.     sTitle = sTitle.replace(/(\r\n|\n|\r)/gm, " ");
  8.     var sURL = doc.links[i].href;
  9.     sURL = sURL.replace(/(\r\n|\n|\r)/gm, " ");
  10.     sValue += sTitle + " \n" + sURL + " \n";
  11.   }
  12.  
  13.   window.AFRunCommand(10018, sValue);
  14.  
  15. function AvantOpenAll() {
  16.   var doc = document;
  17.   var sValue = doc.location.href + ' \n' +
  18.                doc.characterSet + ' \n';
  19.  
  20.   for (i=0; i < doc.links.length; i++) {
  21.     var sTitle = doc.links[i].textContent;
  22.     sTitle = sTitle.replace(/(\r\n|\n|\r)/gm, " ");
  23.     var sURL = doc.links[i].href;
  24.     sURL = sURL.replace(/(\r\n|\n|\r)/gm, " ");
  25.     sValue += sTitle + " \n" + sURL + " \n";
  26.   }
  27.  
  28.   window.AFRunCommand(10044, sValue);
  29.  
  30. function AvantDownloadLink(aLink) {
  31.   var vstr = aLink + '\n' +
  32.              document.location.href + ' \n' +
  33.              document.characterSet + ' ';
  34.   window.AFRunCommand(10017, vstr);
  35. }
  36.  
  37. function AvantBlockMediaURL(aLink, aAll) {
  38.   if (aAll) {
  39.     window.AFRunCommand(10021, aLink);
  40.   } else {
  41.     window.AFRunCommand(10022, aLink);
  42.   }
  43. }
  44.