diff --git a/itunes-connect-url-bug-fix.user.js b/itunes-connect-url-bug-fix.user.js index 8e061a8..8cfef3f 100644 --- a/itunes-connect-url-bug-fix.user.js +++ b/itunes-connect-url-bug-fix.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name iTunes Connect URL Bug Fix // @namespace http://twitter.com/ytzong -// @version 0.1 +// @version 0.2 // @description iTunes Connect URL Bug Fix // @author ytzong // @match https://itunesconnect.apple.com/* @@ -12,4 +12,7 @@ var url = window.location.href; if (url.substr(-2) == '#/') { window.location.href = url.substring(0, url.length -2) +} +if (url.substr(-1) == '#') { + window.location.href = url.substring(0, url.length -1) } \ No newline at end of file diff --git a/view-in-itunes.user.js b/view-in-itunes.user.js new file mode 100644 index 0000000..7347b40 --- /dev/null +++ b/view-in-itunes.user.js @@ -0,0 +1,11 @@ +// ==UserScript== +// @name View in iTunes +// @namespace http://twitter.com/ytzong +// @version 0.1 +// @description View in iTunes +// @author ytzong +// @match https://itunes.apple.com/* +// @grant none +// ==/UserScript== + +$('#left-stack .view-in-itunes:eq(0)').click() \ No newline at end of file