PageSourceSearch

https://www.brei.men/assets/js/setting.js

js brei.men collected 2026-10-04 21:18:28 UTC 6,562 bytes, 321 lines download raw bytes

1'use strict';
2const PR = true;
3const ARTIST_NAME = 'breimen-indies';
4
5const PR2 = true;
6const ARTIST_NAME2 = 'breimen';
7
8const USE_API = {
9  news: true,
10  disco: true,
11  media: false,
12  live: true,
13  profile: true,
14  movie: true,
15};
16
17function categoryIndex(str) {
18  switch (str) {
19    case 'tv':
20      return 0;
21    case 'radio':
22      return 1;
23    case 'magazine':
24      return 2;
25    case 'web':
26      return 3;
27    default:
28      return 4;
29  }
30}
31
32function setMediaCategory(str) {
33  switch (str) {
34    case 'tv':
35      return 'TV';
36    case 'radio':
37      return 'Radio';
38    case 'magazine':
39      return 'Magazine';
40    case 'web':
41      return 'Web';
42    default:
43      return str;
44  }
45}
46function setDiscoCategory(str) {
47  switch (str) {
48    case 'シングル':
49      return 'PHYSICAL';
50    case 'アルバム':
51      return 'PHYSICAL';
52    case 'ミニアルバム':
53      return 'PHYSICAL';
54    case '配信限定':
55      return 'DIGITAL';
56    case 'DVD':
57      return 'PHYSICAL';
58    case 'BD':
59      return 'PHYSICAL';
60    default:
61      return str;
62  }
63}
64function setDiscoType(str) {
65  switch (str) {
66    case 'シングル':
67      return 'SINGLE';
68    case 'アルバム':
69      return 'ALBUM';
70    case 'ミニアルバム':
71      return 'ALBUM';
72    case '配信限定':
73      return 'DIGITAL';
74    case 'DVD':
75      return 'BD/DVD';
76    case 'BD':
77      return 'BD/DVD';
78    default:
79      return str;
80  }
81}
82function showDiscoCategory(str) {
83  switch (str) {
84    case 'シングル':
85      return 'Single';
86    case 'アルバム':
87      return 'Album';
88    case 'ミニアルバム':
89      return 'Album';
90    case '配信限定':
91      return 'Streaming';
92    case 'DVD':
93      return 'DVD';
94    case 'BD':
95      return 'Blu-ray';
96    default:
97      return str;
98  }
99}
100function setMovieCategory(str) {
101  switch (str) {
102    case 'ミュージックビデオ':
103      return 'MUSIC VIDEO';
104    case 'ライブ':
105      return 'LIVE';
106    case 'その他':
107      return 'CONTENT';
108    default:
109      return str;
110  }
111}
112function setReleaseCategory(str) {
113  switch (str) {
114    case 'BD':
115      return 'Blu-ray';
116    case '配信限定':
117      return '配信限定シングル';
118    default:
119      return str;
120  }
121}
122function dlLink(str) {
123  switch (str) {
124    case 'cdshop':
125      return 'CD SHOP';
126    case 'digital':
127      return 'DOWNLOAD / STREAMING';
128    case 'sonymusicshop':
129      return 'SonyMusicShop';
130    case 'itunes_application':
131      return 'iTunes App';
132    case 'itunes':
133      return 'iTunes';
134    case 'itunes_sound':
135      return 'iTunes';
136    case 'mora_sound':
137      return 'mora';
138    case 'mora':
139      return 'mora';
140    case 'googleplay':
141      return 'Google Play';
142    case 'recochoku':
143      return 'レコチョク';
144    case 'recochoku_link':
145      return 'レコチョク';
146    case 'tsutaya':
147      return 'TSUTAYA';
148    case 'amazon':
149      return 'amazon';
150    case 'towerrecords':
151      return 'TOWER RECORDS';
152    case 'hmv':
153      return 'HMV';
154    case 'rakuten':
155      return 'Rakuten';
156    case 'fortue':
157      return 'forTUNE';
158    case 'linemusic':
159      return 'LINE MUSIC';
160    case 'applemusic':
161      return 'Apple Music';
162    case 'spotify':
163      return 'Spotify';
164    case 'amazonmusic':
165      return 'Amazon Music';
166    default:
167      return str;
168  }
169}
170function weekChange(week) {
171  switch (week) {
172    case '日':
173      return 'SUN';
174    case '日・祝':
175      return 'SUN';
176    case '月':
177      return 'MON';
178    case '月・祝':
179      return 'MON';
180    case '火':
181      return 'TUE';
182    case '火・祝':
183      return 'TUE';
184    case 'æ°´':
185      return 'WED';
186    case '水・祝':
187      return 'WED';
188    case '木':
189      return 'THU';
190    case '木・祝':
191      return 'THU';
192    case '金':
193      return 'FRI';
194    case '金・祝':
195      return 'FRI';
196    case '土':
197      return 'SAT';
198    case '土・祝':
199      return 'SAT';
200  }
201}
202function areaNumber(area) {
203  switch (area) {
204    case '北海道':
205      return 1;
206    case '青森県':
207      return 2;
208    case '岩手県':
209      return 3;
210    case '宮城県':
211      return 4;
212    case '秋田県':
213      return 5;
214    case '山形県':
215      return 6;
216    case '福島県':
217      return 7;
218    case '茨城県':
219      return 8;
220    case '栃木県':
221      return 9;
222    case '群馬県':
223      return 10;
224    case '埼玉県':
225      return 11;
226    case '千葉県':
227      return 12;
228    case '東京都':
229      return 13;
230    case '神奈川県':
231      return 14;
232    case '新潟県':
233      return 15;
234    case '富山県':
235      return 16;
236    case '石川県':
237      return 17;
238    case '福井県':
239      return 18;
240    case '山梨県':
241      return 19;
242    case '長野県':
243      return 20;
244    case '岐阜県':
245      return 21;
246    case '静岡県':
247      return 22;
248    case '愛知県':
249      return 23;
250    case '三重県':
251      return 24;
252    case '滋賀県':
253      return 25;
254    case '京都府':
255      return 26;
256    case '大阪府':
257      return 27;
258    case '兵庫県':
259      return 28;
260    case '奈良県':
261      return 29;
262    case '和歌山県':
263      return 30;
264    case '鳥取県':
265      return 31;
266    case '島根県':
267      return 32;
268    case '岡山県':
269      return 33;
270    case '広島県':
271      return 34;
272    case '山口県':
273      return 35;
274    case '徳島県':
275      return 36;
276    case '香川県':
277      return 37;
278    case '愛媛県':
279      return 38;
280    case '高知県':
281      return 39;
282    case '福岡県':
283      return 40;
284    case '佐賀県':
285      return 41;
286    case '長崎県':
287      return 42;
288    case '熊本県':
289      return 43;
290    case '大分県':
291      return 44;
292    case '宮崎県':
293      return 45;
294    case '鹿児島県':
295      return 46;
296    case '沖縄県':
297      return 47;
298  }
299}
300function StringToDom(str) {
301  const dom = document.createElement('div');
302  dom.innerHTML = str;
303  return dom;
304}
305
306function nl2br(str) {
307  str = str.replace(/\r\n/g, '<br>');
308  str = str.replace(/(\n|\r)/g, '<br>');
309  return str;
310}
311
312function imgReplace(text) {
313  return text
314    .replace(/"\/img\/common\/artist_image\//g, '"https://www.sonymusic.co.jp/img/common/artist_image/')
315    .replace(/"\/img\/uploaded\/tmp\//g, '"https://www.sonymusic.co.jp/img/common/artist_image/90000/90083/profile/')
316    .replace(/\/adm_image\/common\/artist_image\//g, 'https://www.sonymusic.co.jp//adm_image/common/artist_image/');
317}
318function imgResize(img) {
319  let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 800;
320  return img.replace(/:X|:Y/g, size);
321}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.