├── README.rst ├── manifest.json ├── color-breaker.js └── LICENSE /README.rst: -------------------------------------------------------------------------------- 1 | ============= 2 | color-breaker 3 | ============= 4 | 5 | For breaking http://106.186.25.143/kuku-kube/en-3/ 6 | 7 | ============ 8 | Installation 9 | ============ 10 | * Download this as a zip file to the desktop and unpack it. 11 | * Navigate to chrome://extensions/ in Chrome and select developer mode. 12 | * Click on "Load unpacked extension..." and choose the color-breaker directory. 13 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | 4 | "name": "color-breaker", 5 | "description": "Winning", 6 | "version": "1.0", 7 | 8 | "content_scripts": [ 9 | { 10 | "matches": ["http://106.186.25.143/kuku-kube/en-3/*"], 11 | "js": ["color-breaker.js"] 12 | } 13 | ], 14 | 15 | "permissions": [ 16 | "http://106.186.25.143/kuku-kube/en-3/" 17 | ] 18 | } 19 | 20 | -------------------------------------------------------------------------------- /color-breaker.js: -------------------------------------------------------------------------------- 1 | /* 2 | color-breaker.js 3 | Makes stuff unfun 4 | @author: Charles J Lai 5 | */ 6 | 7 | //Constants 8 | var UPDATE_INTERVAL = 1; 9 | var LONG_UPDATE_INTERVAL = 10000; 10 | 11 | //Main color clicking function 12 | function clickColors() { 13 | //First create an event 14 | var click_ev = document.createEvent("MouseEvents"); 15 | // initialize the event 16 | click_ev.initEvent("click", true /* bubble */, true /* cancelable */); 17 | //Get arrays of nodes 18 | var colorboxes = document.getElementById("box").childNodes; 19 | for (var i = 0; i < colorboxes.length; i++){ 20 | //trigger the evevnt 21 | colorboxes[i].dispatchEvent(click_ev); 22 | colorboxes[colorboxes.length-i-1].dispatchEvent(click_ev); 23 | } 24 | } 25 | 26 | /////////////// 27 | //MAIN SCRIPT// 28 | /////////////// 29 | //Initial run of the script 30 | clickColors(); 31 | //Attempt to remove more information on UPDATE_INTERVAL 32 | setInterval(clickColors, UPDATE_INTERVAL); 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to --------------------------------------------------------------------------------