xenForo - Select Permalink

Selects whole permalink-code in xenForo-boards with one click.

  1. // ==UserScript==
  2. // @name xenForo - Select Permalink
  3. // @namespace http://openuserjs.org/users/ardiman
  4. // @description Selects whole permalink-code in xenForo-boards with one click.
  5. // @description:de-DE Markiert in xenForo-Foren den gesamten Permalink-Code mit einem einfachen Klick.
  6. // @grant none
  7. // @homepage https://github.com/ardiman/userscripts/tree/master/xenforoselectpermalink
  8. // @icon https://raw.githubusercontent.com/ardiman/userscripts/master/scriptlogo.gif
  9. // @include http://xenforo.com/community/threads/*
  10. // @include http://www.xendach.de/threads/*
  11. // @license CC-BY-NC-SA-3.0; https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode
  12. // @license MIT; https://opensource.org/licenses/MIT
  13. // @supportURL https://github.com/ardiman/userscripts/issues
  14. // @version 1.0.6
  15. // @date 2017-11-19
  16. // ==/UserScript==
  17.  
  18. $( document ).on( "click", "#bb_code_link_snippet,#html_link_code", function() {
  19. $(this).focus();
  20. $(this).select();
  21. });