<commit_before>// ==UserScript==
// @name        hParkingLot
// @name:zh-CN  【H】停车场
// @namespace   https://github.com/dodying/Dodying-UserJs
// @include     https://btso.pw/*
// @include     https://btdb.in/*
// @include     http://www.javlibrary.com/*
// @include     http://www.dmm.co.jp/*
// @include     https://www.google.co.jp/*
// @include     https://www.baidu.com/*
// @include     https://www.av28.com/*
// include     *.tokyo-hot.com/*
// include     *.caribbeancom.com/*
// include     *.1000giri.net/*
// include     *.10musume.com/*
// include     *.heyzo.com/*
// include     *.1pondo.tv/*
// @version     1.03
// @grant       GM_setValue
// @grant       GM_getValue
// @author      Dodying
// @namespace   https://github.com/dodying/Dodying-UserJs
// @supportURL  https://github.com/dodying/Dodying-UserJs/issues
// @icon        https://raw.githubusercontent.com/dodying/UserJs/master/Logo.png
// @require     http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js
// @require     https://raw.githubusercontent.com/christianbach/tablesorter/master/jquery.tablesorter.js
// @run-at      document-end
// ==/UserScript==
(function ($) {
  var linkLib = {
    'btso.pw': {
      fav: 'https://btso.pw/app/bts/View/img/favicon.ico',
      search: 'http://btso.pw/search/{searchTerms}/',
      text: 'h3,.file'
    },
    'btdb.in': {
      fav: 'https://btdb.in/favicon.ico',
      search: 'https://btdb.in/q/{searchTerms}/',
      text: 'h1.torrent-name,.file-name,.item-title>a'
    },
    'www.javlibrary.com': {
      fav: 'http://www.javlibrary.com/favicon.ico',
      search: 'http://www.javlibrary.com/cn/vl_searchbyid.php?keyword={searchTerms}',
      text: '.text:lt(2),.id',
      img: '#video_jacket_img,.previewthumbs>img,.id+img,strong>a',
      name: '.post-title',
      time: '.text:eq(2)'
    },
    'www.dmm.co.jp': {
      fav: 'http://www.dmm.co.jp/favicon.ico',
      search: 'http://www.dmm.co.jp/search/=/searchstr={searchTerms}',
      text: '.txt,table.mg-b20 td',
      img: '.img img,.tdmm,.crs_full>img',
      name: '#title',
      time: ''
    },
    'www.google.co.jp': {
      fav: 'https://www.google.co.jp/images/branding/product/ico/googleg_lodp.ico',
      search: 'https://www.google.co.jp/search?q={searchTerms}',
      text: 'h3.r>a,span.st'
    },
    'www.baidu.com': {
      fav: 'https://www.baidu.com/img/baidu.svg',
      search: 'https://www.baidu.com/baidu?wd={searchTerms}',
      text: 'h3.t>a,.c-abstract'
    },
    'www.av28.com': {
      fav: 'https://cdn3.iconfinder.com/data/icons/block/32/letter-24.png',
      search: 'https://www.av28.com/cn/search/{searchTerms}',
      text: '.item>div>a,.item>div>span,.row-fluid>h3,.info>p>span',
      img: '.img,.bigImage>img,.sample-box img',
      name: '',
      time: ''
    }
  };
  var imgLib = {
    add: 'https://cdn2.iconfinder.com/data/icons/freecns-cumulus/16/519691-199_CircledPlus-24.png',
    del: 'https://cdn2.iconfinder.com/data/icons/social-messaging-productivity-1/128/trash-24.png',
    import: 'https://cdn1.iconfinder.com/data/icons/design-2d-cad-solid-set-2/60/079-Import-24.png',
    show: 'https://cdn2.iconfinder.com/data/icons/freecns-cumulus/16/519904-098_Spreadsheet-24.png'
  };
  var markLib = [
    {
      name: '等待中',
      img: 'https://cdn2.iconfinder.com/data/icons/lightly-icons/24/time-24.png',
      color: 'gray'
    },
    {
      name: '下载中',
      img: 'https://cdn4.iconfinder.com/data/icons/education-bold-line-1/49/34-24.png',
      color: 'blue'
    },
    {
      name: '已出已下-骑兵',
      img: 'https://cdn3.iconfinder.com/data/icons/chess-8/512/horse-game-role-chess-24.png',
      color: 'green'
    },
    {
      name: '已出已下-步兵',
      img: 'https://cdn3.iconfinder.com/data/icons/chess-8/154/chess-pawn-24.png',
      color: 'green'
    },
    {
      name: '已出已下已删-不喜欢的',
      img: 'https://cdn1.iconfinder.com/data/icons/lightly-icons/24/heart-broken-24.png',
      color: 'black'
    },
    {
      name: '女同',
      img: 'https://cdn2.iconfinder.com/data/icons/gender-and-feminism-solid/100/lesbian-24.png',
      color: 'pink'
    },
    {
      name: '超过1年无资源',
      img: 'https://cdn3.iconfinder.com/data/icons/transfers/100/239345-reload_time_delay-24.png',
      color: 'red'
    },
    {
      name: '首次亮相',
      img: 'https://cdn3.iconfinder.com/data/icons/social-messaging-productivity-5/128/new-label-24.png',
      color: 'yellow'
    }
  ];
  init();
  markAdded();
  function init() {
    $('<style></style>').appendTo('head').html('' +
    '.hBanner{position:fixed;background-color:white;z-index:9999;top:0;}' +
    '.hBanner{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;}' +
    '.left{left:0;}' +
    '.right{right:0;}' +
    '.hBanner>*{cursor:pointer;float:left;margin:0 1px0 1px;}' +
    '.switcher{width:32px;height:24px;background:#333;border-radius:12px;position:relative;}' +
    '.switcher>span{position:absolute;left:6px;top:2px;height:2px;color:#26CA28;font-size:16px;text-transform:Capitalize;}' +
    '.links,.addCode,.delCode,.importCode,.showCode{width:24px;height:24px;}' +
    '.links img,.addCode img{background-color:white;}' +
    '.links>*,.addCode>*{display:none;}' +
    '.links>*:nth-child(1),.addCode>*:nth-child(1){display:inline;}' +
    '.hasCode>a{margin:0 1px;}' +
    '.showTable{background-color:white;position:absolute;top:60px;}' +
    '.showTable>table{border-collapse:collapse;}' +
    '.showTable>table>thead>tr{position:fixed;top:40px;}' +
    '.showTable td{border:1px solid black;}' +
    '.showTable>button{float:right;color:red;position:fixed;right:10px;}' +
    '.showTable>button:nth-child(1){top:70px;}' +
    '.showTable>button:nth-child(2){top:100px;}');
    $('<div class="hBanner left"></div>').on({
      contextmenu: function (e) {
        e.preventDefault();
        $(this).toggleClass('left').toggleClass('right');
      },
      mousedown: function (e1) {
        $('body').mouseup(function (e2) {
          $('.hBanner').css('top', e2.clientY - e1.offsetY + 'px');
          $(this).off('mouseup');
        });
      }
    }).appendTo('body');
    $('<div class="switcher"></div>').html('<span>on</span>').appendTo('.hBanner').click(function () {
      if ($(this).find('span').text() === 'on') {<commit_msg>Update hParkingLot.user.js<commit_after>// ==UserScript==
// @name        hParkingLot
// @name:zh-CN  【H】停车场
// @namespace   https://github.com/dodying/Dodying-UserJs
// @include     https://btso.pw/*
// @include     https://btdb.in/*
// @include     http://www.javlibrary.com/*
// @include     http://www.dmm.co.jp/*
// @include     https://www.google.co.jp/*
// @include     https://www.baidu.com/*
// @include     https://www.av28.com/*
// @include     http://javpop.com/*
// include     *.tokyo-hot.com/*
// include     *.caribbeancom.com/*
// include     *.1000giri.net/*
// include     *.10musume.com/*
// include     *.heyzo.com/*
// include     *.1pondo.tv/*
// @version     1.04
// @grant       GM_setValue
// @grant       GM_getValue
// @author      Dodying
// @namespace   https://github.com/dodying/Dodying-UserJs
// @supportURL  https://github.com/dodying/Dodying-UserJs/issues
// @icon        https://raw.githubusercontent.com/dodying/UserJs/master/Logo.png
// @require     http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js
// @require     https://raw.githubusercontent.com/christianbach/tablesorter/master/jquery.tablesorter.js
// @run-at      document-end
// ==/UserScript==
(function ($) {
  var linkLib = {
    'btso.pw': {
      fav: 'https://btso.pw/app/bts/View/img/favicon.ico',
      search: 'http://btso.pw/search/{searchTerms}/',
      text: 'h3,.file'
    },
    'btdb.in': {
      fav: 'https://btdb.in/favicon.ico',
      search: 'https://btdb.in/q/{searchTerms}/',
      text: 'h1.torrent-name,.file-name,.item-title>a'
    },
    'www.javlibrary.com': {
      fav: 'http://www.javlibrary.com/favicon.ico',
      search: 'http://www.javlibrary.com/cn/vl_searchbyid.php?keyword={searchTerms}',
      text: '.text:lt(2),.id',
      img: '#video_jacket_img,.previewthumbs>img,.id+img,strong>a',
      name: '.post-title',
      time: '.text:eq(2)'
    },
    'www.dmm.co.jp': {
      fav: 'http://www.dmm.co.jp/favicon.ico',
      search: 'http://www.dmm.co.jp/search/=/searchstr={searchTerms}',
      text: '.txt,table.mg-b20 td',
      img: '.img img,.tdmm,.crs_full>img',
      name: '#title',
      time: ''
    },
    'www.google.co.jp': {
      fav: 'https://www.google.co.jp/images/branding/product/ico/googleg_lodp.ico',
      search: 'https://www.google.co.jp/search?q={searchTerms}',
      text: 'h3.r>a,span.st'
    },
    'www.baidu.com': {
      fav: 'https://www.baidu.com/img/baidu.svg',
      search: 'https://www.baidu.com/baidu?wd={searchTerms}',
      text: 'h3.t>a,.c-abstract'
    },
    'www.av28.com': {
      fav: 'https://cdn3.iconfinder.com/data/icons/block/32/letter-24.png',
      search: 'https://www.av28.com/cn/search/{searchTerms}',
      text: '.item>div>a,.item>div>span,.row-fluid>h3,.info>p>span',
      img: '.img,.bigImage>img,.sample-box img',
      name: '',
      time: ''
    },
    'javpop.com': {
      fav: 'http://javpop.com/favicon.ico',
      search: 'http://javpop.com/index.php?s={searchTerms}',
      text: '.thumb_post a:nth-child(2),h1',
      img: '.thumb_post img,.box-b img'
    }
  };
  var imgLib = {
    add: 'https://cdn2.iconfinder.com/data/icons/freecns-cumulus/16/519691-199_CircledPlus-24.png',
    del: 'https://cdn2.iconfinder.com/data/icons/social-messaging-productivity-1/128/trash-24.png',
    import: 'https://cdn1.iconfinder.com/data/icons/design-2d-cad-solid-set-2/60/079-Import-24.png',
    show: 'https://cdn2.iconfinder.com/data/icons/freecns-cumulus/16/519904-098_Spreadsheet-24.png'
  };
  var markLib = [
    {
      name: '等待中',
      img: 'https://cdn2.iconfinder.com/data/icons/lightly-icons/24/time-24.png',
      color: 'gray'
    },
    {
      name: '下载中',
      img: 'https://cdn4.iconfinder.com/data/icons/education-bold-line-1/49/34-24.png',
      color: 'blue'
    },
    {
      name: '已出已下-骑兵',
      img: 'https://cdn3.iconfinder.com/data/icons/chess-8/512/horse-game-role-chess-24.png',
      color: 'green'
    },
    {
      name: '已出已下-步兵',
      img: 'https://cdn3.iconfinder.com/data/icons/chess-8/154/chess-pawn-24.png',
      color: 'green'
    },
    {
      name: '已出已下已删-不喜欢的',
      img: 'https://cdn1.iconfinder.com/data/icons/lightly-icons/24/heart-broken-24.png',
      color: 'black'
    },
    {
      name: '女同',
      img: 'https://cdn2.iconfinder.com/data/icons/gender-and-feminism-solid/100/lesbian-24.png',
      color: 'pink'
    },
    {
      name: '超过1年无资源',
      img: 'https://cdn3.iconfinder.com/data/icons/transfers/100/239345-reload_time_delay-24.png',
      color: 'red'
    },
    {
      name: '首次亮相',
      img: 'https://cdn3.iconfinder.com/data/icons/social-messaging-productivity-5/128/new-label-24.png',
      color: 'yellow'
    }
  ];
  init();
  markAdded();
  function init() {
    $('<style></style>').appendTo('head').html('' +
    '.hBanner{position:fixed;background-color:white;z-index:9999;}' +
    '.hBanner{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;}' +
    '.hBanner>*{cursor:pointer;float:left;margin:0 1px0 1px;}' +
    '.switcher{width:32px;height:24px;background:#333;border-radius:12px;position:relative;}' +
    '.switcher>span{position:absolute;left:6px;top:2px;height:2px;color:#26CA28;font-size:16px;text-transform:Capitalize;}' +
    '.links,.addCode,.delCode,.importCode,.showCode{width:24px;height:24px;}' +
    '.links img,.addCode img{background-color:white;}' +
    '.links>*,.addCode>*{display:none;}' +
    '.links>*:nth-child(1),.addCode>*:nth-child(1){display:inline;}' +
    '.hasCode>a{margin:0 1px;}' +
    '.showTable{background-color:white;position:absolute;top:60px;}' +
    '.showTable>table{border-collapse:collapse;}' +
    '.showTable>table>thead>tr{position:fixed;top:40px;}' +
    '.showTable td{border:1px solid black;}' +
    '.showTable>button{float:right;color:red;position:fixed;right:10px;}' +
    '.showTable>button:nth-child(1){top:70px;}' +
    '.showTable>button:nth-child(2){top:100px;}');
    $('<div class="hBanner"></div>').mousedown(function (e1) {
      if (e1.target !== $('.hasCode') [0]) return;
      $('body').mouseup(function (e2) {
        var width = 152;
        var topBorder = $(window).height() - $('.hBanner').height();
        var leftBorder = $(window).width() - $('.hBanner').width();
        var top = (e2.clientY - e1.offsetY > 0) ? e2.clientY - e1.offsetY : 0;
        top = (top > topBorder) ? topBorder : top;
        var left = (e2.clientX - e1.offsetX > width) ? e2.clientX - e1.offsetX - width : 0;
        left = (left > leftBorder) ? leftBorder : left;
        $('.hBanner').css({
          top: top + 'px',
          left: left + 'px'
        });
        GM_setValue('top', top);
        GM_setValue('left', left);
        $(this).off('mouseup');
      });
    }).css({
      'top': function () {
        return GM_getValue('top', 0);
      },
      'left': function () {
        return GM_getValue('left', 0);
      }
    }).appendTo('body');
    $('<div class="switcher"></div>').html('<span>on</span>').appendTo('.hBanner').click(function () {
      if ($(this).find('span').text() === 'on') {
{'fraction_non_alphanumeric': 0.21818727490996398, 'fraction_numerical': 0.029786914765906364, 'mean_word_length': 2.7283916083916084, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 79, 'https://': 62, 'lorem ipsum': 0, 'www.': 38, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3059476', 'n_tokens_mistral': 5405, 'n_tokens_neox': 5161, 'n_words': 548}