此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/13969/87660/SGW%20Fixer%20-%20Users.js
你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式
你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式
你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式
你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式
你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式
你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式
(我已經安裝了使用者樣式管理器,讓我安裝!)
// ==UserScript==
// @name SGW Fixer - Users
// @namespace https://greasyfork.org
// @include https://sellers.shopgoodwill.com/sellers/newAuctionItem-catsel.asp*
// @include https://sellers.shopgoodwill.com/sellers/reviewItem-label.asp*
// @include https://sellers.shopgoodwill.com/sellers/reviewItem-label.asp?state=2
// @include http://localhost/sgw.html
// @version 1.3.3.1
// @description Contains user definitions for the SGW Fixer script
// @grant none
// @require https://greasyfork.org/scripts/10208-gm-api-script/code/GM%20API%20script.js?version=54964
// ==/UserScript==
// Really what I need to do is, rather than saving it as a data object or whatever, just serialize it and throw it in the div, then read it back out. Shouldn't be a huge deal. I hope.
var posters = {
"Ann S" : {
"name" : "Ann",
"duration" : 7
},
"Jeff H" : {
"name" : "Jeff",
"duration" : 7,
"skip" : "allow",
},
"Jacob L" : {
"name" : "Jacob",
"duration" : 7,
"skip" : "allow",
},
"Jackie C" : {
"name" : "Jackie"
},
"Jeremy J" : {
"name" : "Jeremy",
"skip" : "allow",
},
"Kathy O" : {
"name" : "Kathy",
"skip" : "allow",
},
"Matt R" : {
"name" : "Matt",
},
"Nick Q" : {
"name" : "Nick"
},
"Phalada X" : {
"name" : "Phalada",
"duration" : 7,
"skip" : "allow",
},
"Steven R" : {
"name" : "Steven",
"skip" : "allow",
},
"Tanya K" : {
"name" : "Tanya"
},
"Tom B" : {
"name" : "Tom",
},
"Valerie W" : {
"name" : "Valerie",
"duration" : 7,
"skip" : "allow",
},
"Jane F" : {
"name" : "Jane",
"duration" : 7,
"skip" : "allow",
},
}
$('body').append("<div id='posterData'></div>");
$('#posterData').data("data", "fooooo");
console.log('foo' + $('#posterData').data("data"));