comparison 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
comparison
equal deleted inserted replaced
84:af4f8b25495e 85:9c8cde985caf
11 11
12 /* global $ */ 12 /* global $ */
13 ;(function () { 13 ;(function () {
14 'use strict' 14 'use strict'
15 15
16 var fixLink = function (_i, el) { 16 const fixLink = function (_i, el) {
17 var $el = $(el) 17 const $el = $(el)
18 var url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, '')) 18 const url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, ''))
19 19
20 $el.attr('href', url) 20 $el.attr('href', url)
21 } 21 }
22 22
23 $("[href^='jump.php?']").each(fixLink) 23 $("[href^='jump.php?']").each(fixLink)