Advertisement
Guest User

Untitled

a guest
Oct 4th, 2019
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // 일반 메모
  2. var MemoList = new Array(
  3. '꽃펑','gofun','고펑',
  4. 'ㅡ','ㅡ','ㅡ'
  5. );
  6.  
  7. // 븅모음
  8. var MemoBYList = new Array(
  9. '닉네임','id',
  10. 'ㅡ','ㅡ'
  11. );
  12.  
  13. $(document).ready(function() {
  14.     for(k = 0; k < MemoList.length; k += 3) {
  15.         $('span.list_name').html(function(i, v) {
  16.             if (v.trim() == MemoList[k].trim()) {
  17.                 return v.replace(MemoList[k], MemoList[k] + ' / <strong>' + MemoList[k+2]+'</strong>');
  18.             }
  19.         });
  20.         $('span.eng').html(function(i, v) {
  21.             if (v.trim() == MemoList[k+1].trim()) {
  22.                 return v.replace(MemoList[k+1], MemoList[k+1] + ' / <strong>' + MemoList[k+2]+'</strong>');
  23.             }
  24.         });
  25.     }
  26.    
  27.     var BYStr = ' / <strong>ㅂ</strong>';
  28.     for(k = 0; k < MemoBYList.length; k += 2) {
  29.         $('span.list_name').html(function(i, v) {
  30.             if (v.trim() == MemoBYList[k].trim()) {
  31.                 return v.replace(MemoBYList[k], MemoBYList[k] + BYStr);
  32.             }
  33.         });
  34.         $('span.eng').html(function(i, v) {
  35.             if (v.trim() == MemoBYList[k+1].trim()) {
  36.                 return v.replace(MemoBYList[k+1], MemoBYList[k+1] + BYStr);
  37.             }
  38.         });
  39.     }
  40.  
  41.     // https://archive.is
  42.     $('span.title > a').html(function(i, v){
  43.         var href = $(this).attr('href');
  44.         var tar = ('https://te31.com/rgr/') + encodeURIComponent(href);
  45.         return v + '</a><a href=\'https://archive.is/?run=1&url=' + tar + '\' target=\'_blank\'> .';
  46.         //console.log(href);
  47.     });
  48. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement