diff pixiv-direct-external-link.user.js @ 49:2e1cae72a63e

Semicolons
author nanaya <me@nanaya.pro>
date Thu, 12 Oct 2017 16:40:13 +0900
parents 32a213717e6a
children 09f735548b2c
line wrap: on
line diff
--- a/pixiv-direct-external-link.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/pixiv-direct-external-link.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -13,12 +13,12 @@
   "use strict";
 
   var fixLink = function(_i, el) {
-    var $el = $(el)
-    var url = decodeURIComponent($el.attr("href").replace(/^\/?jump.php\?/, ""))
+    var $el = $(el);
+    var url = decodeURIComponent($el.attr("href").replace(/^\/?jump.php\?/, ""));
 
-    $el.attr("href", url)
-  }
+    $el.attr("href", url);
+  };
 
-  $("[href^='jump.php?']").each(fixLink)
-  $("[href^='/jump.php?']").each(fixLink)
+  $("[href^='jump.php?']").each(fixLink);
+  $("[href^='/jump.php?']").each(fixLink);
 }).call();
\ No newline at end of file