jeffalo / scratch-image-uploader

Use Scratch project thumbnails to upload images to be used on the forums.
10 stars 3 forks source link

Making this a userscript too? #6

Closed BoomerScratch closed 4 years ago

BoomerScratch commented 4 years ago

Making a userscript out of this is very simple. It will look like something like this:

// ==UserScript==
// @name         Scratch image uploader
// @namespace    https://jeffalo.net/
// @version      1.0
// @description  Image uploader for the Scratch forums, that uses project thumbnails
// @author       Jeffalo
// @icon         https://raw.githubusercontent.com/JeffaloBob/scratch-image-uploader/master/images/logo_1000.png
// @include      https://scratch.mit.edu/discuss/*
// @require      https://raw.githubusercontent.com/JeffaloBob/scratch-image-uploader/master/text-field-edit.js
// @grant        none
// ==/UserScript==

// The content of content.js goes here

You can change @name, @namespace, @version, @description, and @author if you want. Also, replace // The content of content.js goes here with this.

BoomerScratch commented 4 years ago

This might work too:

// ==UserScript==
// @name         Scratch image uploader
// @namespace    https://jeffalo.net/
// @version      1.0
// @description  Image uploader for the Scratch forums, that uses project thumbnails
// @author       Jeffalo
// @icon         https://raw.githubusercontent.com/JeffaloBob/scratch-image-uploader/master/images/logo_1000.png
// @include      https://scratch.mit.edu/discuss/*
// @require      https://raw.githubusercontent.com/JeffaloBob/scratch-image-uploader/master/text-field-edit.js
// @require      https://raw.githubusercontent.com/JeffaloBob/scratch-image-uploader/master/content.js
// @grant        none
// ==/UserScript==

If you use this, then you don't have to change this userscript every time you change content.js. EDIT: it works great! (that is all the code of the userscript)

jeffalo commented 4 years ago

awesome! put this in the readme.md

BoomerScratch commented 4 years ago

@JeffaloBob I recommend https://github.com/JeffaloBob/scratch-image-uploader/issues/6#issuecomment-663960337, but it might take a little longer to load.

jeffalo commented 4 years ago

@JeffaloBob I recommend #6 (comment), but it might take a little longer to load.

yep, thats what i used because it'll auto update.