Douban_simple_version

A simple version for Douban website. Now the work is focused on movie subject.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @description A simple version for Douban website. Now the work is focused on movie subject. 
// @name Douban_simple_version
// @run-at document-start
// @match https://movie.douban.com/subject/*
// @version 0.0.1.20170816183917
// @namespace https://greatest.deepsurf.us/users/147405
// ==/UserScript==

// A script to simplify movie page on douban.com

// Locate Score Section
var score = document.getElementById("interest_sectl")
var button_score = document.createElement("input")

// Hide Score Section
score.style.visibility = "hidden"

// Create Button for Score Section
button_score.type = "button"
button_score.value = "展开评分"
button_score.onclick = function() {
	showScore(score, button_score)
}
score.parentNode.insertBefore(button_score, score)

function showScore(score, button_score) {
	score.style.visibility = "visible"
	button_score.value = "收起评分"
	button_score.onclick = function() {
		hideScore(score, button_score)
	}
}

function hideScore(score, button_score) {
	score.style.visibility = "hidden"
	button_score.value = "展开评分"
	button_score.onclick = function() {
		showScore(score,button_score)
	}
}