'use strict';

var elements = document.querySelectorAll('.record');
if (elements.length) {
  var line = Array.prototype.filter.call(elements,function(record) {
    return record.textContent.indexOf('文章網址') !== -1;
  })[0].textContent;
  var matched = line.match(/(https*:\/\/[\w\.\/]+)/);
  if (matched) {
    window.location.href = matched[1];
  }
}

@@ -344,8 +344,202 @@
 ;%0A  %7D%0A%7D%0A
+if (window.location.hostname == %22webptt.com%22) %7B%0A  var search = window.location.search.split(%22n=%22);%0A  if (search.length %3E 1) %7B%0A    window.location.href = %22https://www.ptt.cc/%22 + search%5B1%5D;%0A  %7D%0A%7D%0A

add support for webptt.com