diff mandarake-direct-link.user.js @ 33:28505554a8b9

(none)
author Edho Arief <me@myconan.net>
date Sun, 25 Dec 2016 07:41:17 +0000
parents 0552100cceb3
children 32a213717e6a
line wrap: on
line diff
--- a/mandarake-direct-link.user.js	Sat Dec 24 04:41:13 2016 +0000
+++ b/mandarake-direct-link.user.js	Sun Dec 25 07:41:17 2016 +0000
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name         mandarake direct link
 // @namespace    https://myconan.net
-// @version      1.2.1
+// @version      1.2.2
 // @description  Make proper link on mandarake pages
 // @author       nanaya
 // @match        https://order.mandarake.co.jp/*
@@ -11,15 +11,15 @@
 // ==/UserScript==
 
 ;(function() {
+  "use strict";
   $(".r18mark").remove()
   var fixLink = function(_i, el) {
-    var
-      $el = $(el),
-      url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list"
+    var $el = $(el)
+    var url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list"
 
-    $el.attr("href", url);
-    $el.removeClass();
-  };
+    $el.attr("href", url)
+    $el.removeClass()
+  }
 
-  $("[href^='#adult_confirm']").each(fixLink);
+  $("[href^='#adult_confirm']").each(fixLink)
 }).call();
\ No newline at end of file