WordPress.org Plugins - Add SVN link

Adds a SVN link to the end of the "Contributors & Developers" section of a WordPress plugin listing.

目前為 2017-04-07 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name WordPress.org Plugins - Add SVN link
  3. // @namespace r-a-y/wporg/svn
  4. // @description Adds a SVN link to the end of the "Contributors & Developers" section of a WordPress plugin listing.
  5. // @include https://wordpress.org/plugins/*
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. var a = document.createElement('a');
  11. a.setAttribute('href','https://plugins.svn.wordpress.org/' + wporgLocaleBanner.currentPlugin);
  12. a.innerHTML = 'SVN repository';
  13.  
  14. document.getElementById('developers').appendChild( a );