Skip to content

Instantly share code, notes, and snippets.

@oflow
Created December 18, 2014 08:15
Show Gist options
  • Save oflow/00a1dbd6d659decc2378 to your computer and use it in GitHub Desktop.
Save oflow/00a1dbd6d659decc2378 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name remove Toranoana popUpWindow
// @description とらのあなのjavascript:popUpWindowが若干面倒臭いのでリンクにする
// @version 1.0
// @include http://www.toranoana.jp/*
// @namespace http://oflow.me/
// ==/UserScript==
(function() {
var a = document.querySelectorAll('a[href^="javascript:popUpWindow"]');
for (var i = 0; i < a.length; i++) {
a[i].href = a[i].href.replace("javascript:popUpWindow('", '').replace("');", '');
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment