-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path文本文件.txt
3 lines (2 loc) · 1.2 KB
/
文本文件.txt
1
2
3
"env": {"PATH": "$PATH:/bin:$HOME/go/bin", "GOPATH": "c/go"},
javascript: (function(){ const PREV_NEXT = 'next'; const KEYWORDS = ['next', 'ÏÂÒ»Ò³', '>', '>>']; function loadURI(url){ location.href = url; } function IncrementURL() { var url = location.href; if (!url.match(/(.*:\/\/.*\/.*)(\d+)(\D*)$/)) return false; var num = RegExp.$2; var digit = (num.charAt(0) == '0') ? num.length : null; num = parseInt(num, 10) + 1; if (num < 0) return false; num = num.toString(); digit = digit - num.length; for (var i = 0; i < digit; i++) num = '0' + num; loadURI(RegExp.$1 + num + RegExp.$3); } var doc = document; var links = doc.getElementsByTagName('link'); for (var i = 0; i < links.length; i++) { if (links[i].href && links[i].hasAttribute('rel') && links[i].getAttribute('rel').toLowerCase().indexOf(PREV_NEXT) == 0) { loadURI(links[i].href); return; } } var regexp = new RegExp('(' + KEYWORDS.join('|') + ')', 'i'); links = doc.links; for (i = 0; i < links.length; i++) { if (links[i].href && links[i].textContent && links[i].textContent.match(regexp)) { var len = RegExp.$1.length; var per = (len == 1) ? 0.3 : 0.4; if(links[i].textContent.length * per < len){ loadURI(links[i].href); return; } } } IncrementURL(); })();