ClearNotes

remove all notes and custom colours from planets and ships (notes type 1 & 2).

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

Advertisement:

// ==UserScript==
// @name         ClearNotes
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  remove all notes and custom colours from planets and ships (notes type 1 & 2). 
// @author       Daniel Vale
// @match        http://*/*
// @grant        none
// @include       https://planets.nu/#/*
// @include       https://planets.nu/*
// @include       http://play.planets.nu/*
// @include       http://test.planets.nu/*
// ==/UserScript==
function wrapper () {// wrapper for injection
    'use strict';

    // instantiate a new object, and register it as a plugin
    var version = "0.1";
    var name = "Celar Notes";

    // Declare an object type (constructor)
    function ClearNotes() {

        this.showmap = function() {
            console.log("Clear Notes - running");

            for (var i = 0; i < vgap.notes.length; i++){
                var note = vgap.notes[i];
                if (note !== null) {
                    if (note.targettype == 1 || note.targettype == 2) {
                        // planet or ship note
                        note.body = "";
                        note.color = "";
                        note.changed = 1;
                    }
                }
            }
            vgap.map.clearcace
            vgap.map.draw();
        }
    }
    // create an instance of the plugin and register it
    var plugin = new ClearNotes();
    vgap.registerPlugin(plugin, "TestPlugin");
    console.log(name + " " + version + " planets.nu plugin registered");
}


var script = document.createElement("script");
script.type = "application/javascript";
script.textContent = "(" + wrapper + ")();";

document.body.appendChild(script);