Greasy Fork Links

Add links to navigate to the update tab

2015/12/19のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Greasy Fork Links
// @namespace   chriskim06
// @description Add links to navigate to the update tab
// @include     https://greatest.deepsurf.us/en/users/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @version     1.2.2
// @grant       none
// @locale      en
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);

$(function() {
  if ($('#user-script-list').length) {
    var baseUrl = '/en/scripts/';
    $('#user-script-list > li').each(function() {
      var item = $(this);
      var id = item.attr('data-script-id');
      var script = item.find('h2').first();
      script.attr('href', script.attr('href') + '/code');
      script.after('<span class="name-description-separator">-</span><a href=" + baseUrl + id + "/versions/new></a>');
    });
  }
});