File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name mb. MASS ISRC
3
- // @version 2024.10.19
3
+ // @version 2024.12.20
4
4
// @description kepstin’s magicisrc. Paste a bunch of ISRC instead of one by one
5
5
// @namespace https://github.com/jesus2099/konami-command
6
6
// @supportURL https://github.com/jesus2099/konami-command/labels/mb_MASS-ISRC
@@ -21,6 +21,7 @@ if (location.host === "magicisrc.kepstin.ca") {
21
21
if ( event && event . target && event . target . classList . contains ( "form-control" ) && event . target . getAttribute ( "id" ) . match ( / ^ i s r c \d + - \d + $ / ) ) {
22
22
var isrcList = event . clipboardData . getData ( "text" ) . toUpperCase ( ) . match ( / [ A - Z ] { 2 } - ? [ A - Z 0 - 9 ] { 3 } - ? [ 0 - 9 ] { 2 } - ? [ 0 - 9 ] { 5 } / g) ;
23
23
if ( isrcList && ( ! arrHasDupes ( isrcList ) || confirm ( "Achtung, there are duplicates!" ) ) ) {
24
+ event . preventDefault ( ) ;
24
25
var isrcInputs = event . currentTarget . querySelectorAll ( "table > tbody > tr > td input.form-control[id^='isrc']" ) ;
25
26
var lastUpdatedInput ;
26
27
for ( var isrc = 0 , input = 0 , startingInputIndex = null ; input < isrcInputs . length ; input += 1 ) {
You can’t perform that action at this time.
0 commit comments