changeset 49:2e1cae72a63e

Semicolons
author nanaya <me@nanaya.pro>
date Thu, 12 Oct 2017 16:40:13 +0900
parents b60f0fd9c417
children e8517cc75a74
files jiku-chu-direct-link.user.js mandarake-direct-link.user.js medium-popup-disable.user.js pixiv-direct-external-link.user.js rakuten-books-direct-search.user.js tgsmart-direct-link.user.js tweetdeck-large-image.user.js
diffstat 7 files changed, 51 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/jiku-chu-direct-link.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/jiku-chu-direct-link.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -11,14 +11,14 @@
 
 ;(function() {
   "use strict";
-  var links = document.querySelectorAll("a[onclick^=\"age_verification_submit('/products/detail.php?product_id=\"]")
+  var links = document.querySelectorAll("a[onclick^=\"age_verification_submit('/products/detail.php?product_id=\"]");
   var removeOnClick = function(el) {
-    var productId = el.getAttribute("onclick").replace(/.*product_id=(\d+).*/, "$1")
-    var url = "/products/detail.php?product_id=" + productId
+    var productId = el.getAttribute("onclick").replace(/.*product_id=(\d+).*/, "$1");
+    var url = "/products/detail.php?product_id=" + productId;
 
-    el.setAttribute("href", url)
-    el.setAttribute("onclick", "")
-  }
+    el.setAttribute("href", url);
+    el.setAttribute("onclick", "");
+  };
 
-  Array.prototype.forEach.call(links, removeOnClick)
+  Array.prototype.forEach.call(links, removeOnClick);
 }).call();
\ No newline at end of file
--- a/mandarake-direct-link.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/mandarake-direct-link.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -12,28 +12,28 @@
 
 ;(function() {
   "use strict";
-  $(".r18mark").remove()
+  $(".r18mark").remove();
   var fixR18Link = function(_i, el) {
-    var url = `/order/detailPage/item?itemCode=${el.id}`
+    var url = `/order/detailPage/item?itemCode=${el.id}`;
 
-    el.setAttribute("href", url)
-    el.setAttribute("class", "")
-  }
+    el.setAttribute("href", url);
+    el.setAttribute("class", "");
+  };
 
-  $("[href^='#adult_confirm']").each(fixR18Link)
+  $("[href^='#adult_confirm']").each(fixR18Link);
 
-  var currentQuery = new URLSearchParams(location.search)
+  var currentQuery = new URLSearchParams(location.search);
   var fixSearchLink = function(_i, el) {
-    var query = new URLSearchParams(el.search)
+    var query = new URLSearchParams(el.search);
 
     for (let [key, value] of currentQuery) {
       if (!query.has(key)) {
-        query.set(key, value)
+        query.set(key, value);
       }
     }
 
-    el.setAttribute("href", `/order/listPage/list?${query.toString()}`)
-  }
+    el.setAttribute("href", `/order/listPage/list?${query.toString()}`);
+  };
 
-  $("[href^='/order/listPage/list?']").each(fixSearchLink)
+  $("[href^='/order/listPage/list?']").each(fixSearchLink);
 }).call();
--- a/medium-popup-disable.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/medium-popup-disable.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -14,12 +14,12 @@
 
 ;(function() {
   "use strict";
-  var popups = document.getElementsByClassName("highlightMenu")
+  var popups = document.getElementsByClassName("highlightMenu");
   var killPopup = function(popup) {
     popup.style.display = "none";
-  }
+  };
   var killPopups = function() {
-    Array.prototype.forEach.call(popups, killPopup)
-  }
-  document.addEventListener('click', killPopups)
+    Array.prototype.forEach.call(popups, killPopup);
+  };
+  document.addEventListener('click', killPopups);
 }).call();
\ No newline at end of file
--- 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
--- a/rakuten-books-direct-search.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/rakuten-books-direct-search.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -13,11 +13,11 @@
 // ==/UserScript==
 
 ;(function() {
-  var $ = jQuery
-  var $form = $("form[name='srchFrm']")
+  var $ = jQuery;
+  var $form = $("form[name='srchFrm']");
 
-  if (!$form.length) { return }
+  if (!$form.length) { return; }
   
-  var searchUrl = $form.find("input[name='R2']").attr("value")
-  $form.attr("action", searchUrl)
+  var searchUrl = $form.find("input[name='R2']").attr("value");
+  $form.attr("action", searchUrl);
 }).call();
\ No newline at end of file
--- a/tgsmart-direct-link.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/tgsmart-direct-link.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -11,10 +11,10 @@
 
 ;(function() {
   "use strict";
-  var links = document.querySelectorAll("a[onclick^='trackOutboundLink('")
+  var links = document.querySelectorAll("a[onclick^='trackOutboundLink('");
   var removeOnClick = function(el) {
-    el.setAttribute("onclick", "")
-  }
+    el.setAttribute("onclick", "");
+  };
 
-  Array.prototype.forEach.call(links, removeOnClick)
+  Array.prototype.forEach.call(links, removeOnClick);
 }).call();
\ No newline at end of file
--- a/tweetdeck-large-image.user.js	Wed Oct 11 22:22:06 2017 +0900
+++ b/tweetdeck-large-image.user.js	Thu Oct 12 16:40:13 2017 +0900
@@ -12,23 +12,23 @@
 ;(function() {
   "use strict";
 
-  var $ = jQuery
+  var $ = jQuery;
   var replaceLink = function(e) {
-    var link = e.currentTarget
-    if (link._ecUserscript === true) { return }
+    var link = e.currentTarget;
+    if (link._ecUserscript === true) { return; }
     
-    var images = link.getElementsByClassName("media-img")
+    var images = link.getElementsByClassName("media-img");
     
-    var url
+    var url;
     if (images.length) {
-      url = images[0].src.replace(/:[a-z0-9]+$/, "")
+      url = images[0].src.replace(/:[a-z0-9]+$/, "");
     } else {
-      url = getComputedStyle(link).backgroundImage.replace(/^url\(('|")?(.+?)(:small)?\1\)$/, "$2")
+      url = getComputedStyle(link).backgroundImage.replace(/^url\(('|")?(.+?)(:small)?\1\)$/, "$2");
     }
-    link.setAttribute("href", url + ":orig")
-    link._ecUserscript = true
-  }
+    link.setAttribute("href", url + ":orig");
+    link._ecUserscript = true;
+  };
   
-  $(document).off(".ec-userscript")
-  $(document).on("mouseenter.ec-userscript", ".js-media-image-link", replaceLink)
+  $(document).off(".ec-userscript");
+  $(document).on("mouseenter.ec-userscript", ".js-media-image-link", replaceLink);
 }).call();
\ No newline at end of file