Mercurial > ec-userscripts
diff pixiv-direct-external-link.user.js @ 85:9c8cde985caf
Update standard and fix
author | nanaya <me@nanaya.pro> |
---|---|
date | Thu, 15 Apr 2021 15:01:22 +0900 |
parents | 86da34e62d29 |
children | 2c4470b73ad9 |
line wrap: on
line diff
--- a/pixiv-direct-external-link.user.js Thu Apr 15 14:56:23 2021 +0900 +++ b/pixiv-direct-external-link.user.js Thu Apr 15 15:01:22 2021 +0900 @@ -13,9 +13,9 @@ ;(function () { 'use strict' - var fixLink = function (_i, el) { - var $el = $(el) - var url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, '')) + const fixLink = function (_i, el) { + const $el = $(el) + const url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, '')) $el.attr('href', url) }