Created
December 18, 2014 08:15
-
-
Save oflow/00a1dbd6d659decc2378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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