G.E Auto Note Favourites

Fills the notes section with the gallery's tags when favouriting.

Version vom 24.04.2015. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        G.E Auto Note Favourites
// @description Fills the notes section with the gallery's tags when favouriting.
// @author      Hen Tie
// @homepage    http://hen-tie.tumblr.com/
// @namespace   https://greasyfork.org/en/users/8336
// @include     http://g.e-hentai.org/gallerypopups.php?gid=*
// @include     https://g.e-hentai.org/gallerypopups.php?gid=*
// @include     http://exhentai.org/gallerypopups.php?gid=*
// @include     https://exhentai.org/gallerypopups.php?gid=*
// @grant       GM_getValue
// @grant       GM_setValue
// @run-at      document-start
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @icon        https://i.imgur.com/RPv1X1r.png
// @version     2.0
// ==/UserScript==
jQuery(document).ready(function ($) {
  $('label[for^=fav]').click(function () {
    var str = $('#taglist a[id^=\'ta_female\'], #taglist a[id^=\'ta_parody\'], #taglist a[id^=\'ta_group\'], #taglist a[id^=\'ta_artist\'], #taglist a[id^=\'ta_male\'], #taglist a[id^=\'ta_female\'], #taglist td#miscid+td a', window.opener.document).append('​').text();
    str = str.replace(/full censorship|mosaic censorship|incomplete|out of order|scanmark|poor grammar/g, '');
    str = str.replace(/ /g, '_');
    str = str.replace(/\u200B/g, ', ');
    str = str.replace(/(, )+/g, ', ');
    str = str.substr(0, str.length - 2);
    $('textarea').val(str)
  });
  $('label[for="favdel"]').click(function () {
    $('textarea').val('');
  });
  document.onkeyup = checkNumber;
  function checkNumber(e) {
    e = e || window.event;
    if (e.keyCode == '13') {
      // CMD + left arrow, blocks page change
      $('.stdbtn') [0].click();
    }
  }
});