gochan-org / gochan

The usage of javascript: urls is not recommended JS-0087
Anti-pattern
Minor
2 months ago2 years old
Script URL is a form of eval
 38		$replyCounter," ",
 39		$("<a/>").prop({
 40			id: `unwatch${thread.id}`,
 41			href: "javascript:;", 42			title: `Unwatch thread #${thread.id}`
 43		}).on("click", () => {
 44			unwatchThread(thread.id, thread.board);
Script URL is a form of eval
185				}).insertAfter($fileInfo);
186
187			$fileInfo.append($("<a />")
188				.prop("href", "javascript:;").on("click", function() {189					$video.remove();
190					$thumb.show();
191					this.remove();
Script URL is a form of eval
24		this.title = title;
25		this.buttonAction = action;
26		this.button = $<HTMLLinkElement>("<a/>").prop({
27			"href": "javascript:;",28			"class": "dropdown-button",
29			"id": title.toLowerCase()
30		}).text(title + "▼");
Script URL is a form of eval
 61	}).val(val);
 62
 63	const $form = $("<form/>").prop({
 64		"action": "javascript:;", 65		"autocomplete": "off"
 66	}).append(
 67		$("<b/>").text(title),