| Off Topic > Drama |
| Blockland Greasemonkey Scripts |
| << < (45/80) > >> |
| DontCare4Free:
--- Quote from: Wedge on January 20, 2012, 09:21:21 PM ---I've actually just been changing the script in notepad and then reinstalling it every time because I am dumb and do not know anything about javascript. --- End quote --- Assuming you use Chrome, to edit the localStorage, press F12, then click the "Resources" tab, then in the tree to the left, select Local Storage -> forum.blockland.us. Now you can edit it as a simple key/value store. --- Quote from: CityRPG on January 20, 2012, 09:23:00 PM ---jQuery isn't used anywhere by SMF. --- End quote --- SMF uses Prototype.js. Or at least something with an identical API. PJS defines $ as a shortcut for document.getElementById. PJS $ is overridden by jQ $ because of the following snippet in the beginning of ignore-users.user.js: --- Code: ---function addJQuery(callback) { // Creates script element. var script = document.createElement("script"); // Inserts the Google CDN script as the source. script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"); // Calls the callback function upon load. script.addEventListener('load', function() { var script = document.createElement("script"); script.textContent = "(" + callback.toString() + ")();"; document.body.appendChild(script); }, false); // Adds the element. document.body.appendChild(script); } --- End code --- |
| CityRPG:
--- Quote from: DontCare4Free on January 20, 2012, 09:24:01 PM ---SMF uses Prototype.js. Or at least something with an identical API. PJS defines $ as a shortcut for document.getElementById. --- End quote --- I can't find this script or this definition anywhere. Can you link me to the file and the page it is appearing on? |
| Wedge:
Success. I have managed to blacklist my own posts from the forum. Everything is so strange now. |
| Kingdaro:
--- Quote from: Wedge on January 20, 2012, 09:26:55 PM ---Success. I have managed to blacklist my own posts from the forum. Everything is so strange now. --- End quote --- ... what |
| CityRPG:
--- Quote from: Wedge on January 20, 2012, 09:26:55 PM ---Success. I have managed to blacklist my own posts from the forum. Everything is so strange now. --- End quote --- What a wonderful usage of my script~ |
| Navigation |
| Message Index |
| Next page |
| Previous page |