diff --git a/README.md b/README.md index e9d63f1..1419c19 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ -# scripts -funny userscript collection to make chrome confused +# Scripts +funny userscript collection to confuse chrome +## Quick installs: +* antileet + * [soft](https://github.com/k3rielit/scripts/antileet/raw/main/soft.user.js) + * [hard](https://github.com/k3rielit/scripts/antileet/raw/main/hard.user.js) + * [sziauram](https://github.com/k3rielit/scripts/antileet/raw/main/sziauram.user.js) +* Flippity + * [normal](https://github.com/k3rielit/scripts/flippity/raw/main/flippity-tamperm.user.js) + * [funny](https://github.com/k3rielit/scripts/flippity/raw/main/ultimity-tamperm.user.js) +* NR Addons [livemap](https://raw.githubusercontent.com/k3rielit/scripts/nr_addons/main/nr_livemap.user.js) +* Oktatas.hu [normal](https://raw.githubusercontent.com/ahurkatolto/scripts/oktatas_hu/master/oktatas_hu.user.js) +* Wizer.me [normal](https://raw.githubusercontent.com/k3rielit/scripts/wizerme/main/wizerme.user.js) diff --git a/antileet/README.md b/antileet/README.md new file mode 100644 index 0000000..56a36e9 --- /dev/null +++ b/antileet/README.md @@ -0,0 +1,11 @@ +# Antileet +Leet content eltávolító script-ek Facebook posztokhoz. + * **Soft**: Csak a posztok tartalmát cseréli le Leet Shitpost-ra, így a kommentek/reakciók/stb látszanak (~~meg lehet reportolni~~). + * **Hard**: Mintha sose lett volna ott a poszt. + * **szia uram**: Egy kedves úr megvédi önt a Leet-től. +### Telepítés: +* **Tampermonkey** bővítmény telepítése. ([Link](https://www.tampermonkey.net)) +* Telepítés: + * [soft link](https://github.com/k3rielit/scripts/antileet/raw/main/soft.user.js) + * [hard link](https://github.com/k3rielit/scripts/antileet/raw/main/hard.user.js) + * [sziauram link](https://github.com/k3rielit/scripts/antileet/raw/main/sziauram.user.js) \ No newline at end of file diff --git a/antileet/hard.user.js b/antileet/hard.user.js new file mode 100644 index 0000000..fb1b302 --- /dev/null +++ b/antileet/hard.user.js @@ -0,0 +1,17 @@ +// ==UserScript== +// @name antileet hard +// @namespace antileet hard +// @version 1.0 +// @description Minden leet poszt megszűnik létezni. +// @iconURL https://leet.hu/wp-content/themes/leet/assets/dist/img/favicon-32x32.png +// @match *://*.facebook.com/* +// @grant none +// @require https://code.jquery.com/jquery-3.5.0.js +// ==/UserScript== + +var observer = new MutationObserver(() => { + $("span:contains('leet.hu')").parents().eq(21).remove(); +}); +observer.observe(document.body, {subtree: true, childList: true}); + +// importing jquery to remove 1 node, kekw \ No newline at end of file diff --git a/antileet/soft.user.js b/antileet/soft.user.js new file mode 100644 index 0000000..149c9e7 --- /dev/null +++ b/antileet/soft.user.js @@ -0,0 +1,16 @@ +// ==UserScript== +// @name antileet soft +// @namespace antileet soft +// @version 1.0 +// @description Minden leet poszt mostantól levegő. +// @iconURL https://leet.hu/wp-content/themes/leet/assets/dist/img/favicon-32x32.png +// @match *://*.facebook.com/* +// @grant none +// @require https://code.jquery.com/jquery-3.5.0.js +// ==/UserScript== + +var observer = new MutationObserver(() => { + $("span:contains('leet.hu')").parents().eq(9).html('
Leet Shitpost
'); + $("span:contains('Mate Farkas'), span:contains('Dávid Németh')").replaceWith('Leet Employee'); +}); +observer.observe(document.body, {subtree: true, childList: true}); \ No newline at end of file diff --git a/antileet/sziauram.user.js b/antileet/sziauram.user.js new file mode 100644 index 0000000..8641ce7 --- /dev/null +++ b/antileet/sziauram.user.js @@ -0,0 +1,15 @@ +// ==UserScript== +// @name antileet sziauram +// @namespace antileet sziauram +// @version 1.0 +// @description SZIA URAM! +// @iconURL https://leet.hu/wp-content/themes/leet/assets/dist/img/favicon-32x32.png +// @match *://*.facebook.com/* +// @grant none +// @require https://code.jquery.com/jquery-3.5.0.js +// ==/UserScript== + +var observer = new MutationObserver(() => { + $("span:contains('leetesport.hu'), span:contains('leet.hu')").parents().eq(10).replaceWith('
'); +}); +observer.observe(document.body, {subtree: true, childList: true}); diff --git a/flippity/README.md b/flippity/README.md new file mode 100644 index 0000000..86de40a --- /dev/null +++ b/flippity/README.md @@ -0,0 +1,13 @@ +# Hippity hoppity the answers are now my property +Autofills Flippity Scavenger Hunt answers. The funny version let's you send emails with noreply@flippity.net, where the textbox group is the email composer. Click the submit button to send it (it has a 1 minute delay). +### Manual use: +Paste this script into the browser's console: +```js +for(let i in data) document.getElementById('a'+i).value=data[i][2] +``` +### Tampermonkey: +1. Install the Tampermonkey extension. ([Link](https://www.tampermonkey.net)) +2. Install: [```normal```](https://github.com/k3rielit/scripts/flippity/raw/main/flippity-tamperm.user.js) [```funny```](https://github.com/k3rielit/scripts/flippity/raw/main/ultimity-tamperm.user.js) +### ❗ Important: + - The script can become outdated if Flippity updates their code. Please leave an issue if that happens, I'll try to fix it. (Last tested: 2021.10.21.) + - To test it: [flippity demo](https://www.flippity.net/sh.php?k=1ubDVulJpW7B2NDDuHMA1CtBwRxGiehQQZzeJpExdcwQ) \ No newline at end of file diff --git a/flippity/flippity-standalone.js b/flippity/flippity-standalone.js new file mode 100644 index 0000000..1a3c1c2 --- /dev/null +++ b/flippity/flippity-standalone.js @@ -0,0 +1 @@ +for(let i in data) document.getElementById('a'+i).value=data[i][2]; diff --git a/flippity/flippity-tamperm.user.js b/flippity/flippity-tamperm.user.js new file mode 100644 index 0000000..0f28120 --- /dev/null +++ b/flippity/flippity-tamperm.user.js @@ -0,0 +1,11 @@ +// ==UserScript== +// @name flippity.js +// @namespace flippity.js +// @iconURL https://www.flippity.net/images/favicon-32.png +// @version 1.1 +// @description kekw +// @author k3rielit +// @match *://*.flippity.net/sh.php* +// @grant none +// ==/UserScript== +for(let i in data) document.getElementById('a'+i).value=data[i][2]; diff --git a/flippity/ultimity-tamperm.user.js b/flippity/ultimity-tamperm.user.js new file mode 100644 index 0000000..5a4c380 --- /dev/null +++ b/flippity/ultimity-tamperm.user.js @@ -0,0 +1,65 @@ +// ==UserScript== +// @name ultimity.js +// @namespace ultimity.js +// @version 1.0 +// @author k3rielit +// @description yeeeet +// @iconURL https://www.flippity.net/images/favicon-32.png +// @match *://*.flippity.net/sh.php* +// @grant none +// @require https://code.jquery.com/jquery-3.5.0.js +// ==/UserScript== + +// adding tailwind (in the discouraged way), because why not +$('head').append(''); + +// create elements, listeners, and a timer that shows time (look at this junk) +$('body').prepend('
Seconds:
') +document.getElementById('resetSecs').addEventListener("click",() => secs=0 ,false); +document.getElementById('setSec').addEventListener("click",() => secs=document.getElementById('nn1').value ,false); +document.getElementById('fillansw').addEventListener("click",function() { for(let i in data) document.getElementById('a'+i).value=data[i][2]} ,false); +setInterval(() => $('#spanSeconds').text(`${Math.floor(secs/3600)}:${Math.floor((secs-Math.floor(secs/3600)*3600)/60)}:${secs%60}`),100); + +// deleting, making visible, and styling elements (yes after tailwind I still do these) +$('#instructions').remove(); +$('tr.noPrint').remove(); +$('#doneScreen').attr('style',''); +$('#done').remove(); +$('#emailForm').append(''); + +$('#formSubmitEmail').attr('placeholder','SubmitEmail (recipient)'); +$('#formSubmitEmail').attr('type','text'); + +$('#formStudentName').attr('placeholder','StudentName (in title after "EmailSubj: ")'); +$('#formStudentName').attr('type','text'); + +$('#formEmailText').attr('placeholder','EmailText (does nothing)'); // it actually does, it shows you this text after the test is submitted on the test page +$('#formEmailText').attr('type','text'); + +$('#formEmailSubj').attr('placeholder','EmailSubj (in title before ": StudentName")'); +$('#formEmailSubj').attr('type','text'); + +$('#formHuntResults').attr('placeholder','HuntResults (actual email content)'); +$('#formHuntResults').attr('type','text'); + +$('input').attr('style','width: 400px; text-align: center; border: 1px solid black;'); +$('#sssubmit').css('cursor','pointer'); + +/* DETAILS: + +You can use the generateTable() to get the results in a nice HTML presentation, or generateResults() to get the stock test result. + +$.get( "", function( data ) { + document.getElementById("formHuntResults").value = data; // set email content with external HTML (with jquery xd) +}); + +document.getElementById("formSubmitEmail").value = ""; +document.getElementById("formEmailText").value = ""; +document.getElementById("formEmailSubj").value = ""; // manually set other important email fields +document.getElementById("emailForm").submit(); + + email (1 minute delay after submit): + email title: "EmailSubj: StudentName" // email "preview" + email content: "HuntResults" + +*/ diff --git a/nr_addons/README.md b/nr_addons/README.md new file mode 100644 index 0000000..452264d --- /dev/null +++ b/nr_addons/README.md @@ -0,0 +1,5 @@ +# NR Addons +Some extra features for the [NR panel](nightriderz.world). +### userscript speedrun any%: +1. Install the Tampermonkey extension. ([Link](https://www.tampermonkey.net)) +2. [Install](https://raw.githubusercontent.com/k3rielit/scripts/nr_addons/main/nr_livemap.user.js) diff --git a/nr_addons/nr_livemap.user.js b/nr_addons/nr_livemap.user.js new file mode 100644 index 0000000..2fce46a --- /dev/null +++ b/nr_addons/nr_livemap.user.js @@ -0,0 +1,39 @@ +// ==UserScript== +// @name NR Livemap Addons +// @namespace NR_Addons +// @version 1.0 +// @description A search feature for the NR livemap. +// @author k3rielit / hrzn +// @match *://livemap.nightriderz.world/* +// @icon https://cdn.nightriderz.world/images/website/favicon.png +// @grant none +// @require https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js +// ==/UserScript== + +(function() { + 'use strict'; + console.log('Thanks to BrockA https://gist.github.com/BrockA/2625891'); + waitForKeyElements("div.race", run); + function run() { + let newElem = $(".settings").clone(); + newElem.attr('style','right: 158px; width: 256px; background: url(https://i.kek.sh/B5fwbm4eZw2.png); '); + newElem.attr('id','search-container'); + newElem.find('.options').text('SEARCH'); + newElem.children().eq(1).html(``); + newElem.appendTo(".move"); + $('#search-tbx').on('input', function() { + $('.race').children().css('border-radius','5px'); + //console.log(this.value); + for(let _i = 0; _i<$('.race').children().length; _i++) { + if($('.race').children().eq(_i).attr('title').toLowerCase().startsWith(this.value.toLowerCase())) { + $('.race').children().eq(_i).css('display','block'); + $('.race').children().eq(_i).css('box-shadow',this.value.length>0 ? 'inset 25px 0px 20px -16px #6BEA0E' : 'none'); + } + else { + $('.race').children().eq(_i).css('display','none'); + $('.race').children().eq(_i).css('box-shadow','none'); + } + } + }); + } +})(); \ No newline at end of file diff --git a/oktatas_hu/README.md b/oktatas_hu/README.md new file mode 100644 index 0000000..3504b8d --- /dev/null +++ b/oktatas_hu/README.md @@ -0,0 +1,6 @@ +## Oktatás.hu +Az oktatas.hu-s pdf oldalakra 2 gombot rak, Az egyik megnyitja új lapon a feladat megoldókulcs párját, a másik fél képernyőre rakja. + +**Telepítés**: +1. Tampermonkey bővítmény telepítése. ([Link](https://www.tampermonkey.net)) +2. [telepítés](https://raw.githubusercontent.com/ahurkatolto/scripts/oktatas_hu/master/oktatas_hu.user.js) \ No newline at end of file diff --git a/oktatas_hu/oktatas_hu.user.js b/oktatas_hu/oktatas_hu.user.js new file mode 100644 index 0000000..c9be0d5 --- /dev/null +++ b/oktatas_hu/oktatas_hu.user.js @@ -0,0 +1,25 @@ +// ==UserScript== +// @name oktatas.hu +// @namespace oktatas_hu +// @version 2.0 +// @author k3rielit +// @iconURL https://www.oktatas.hu/design/images/favicon.ico +// @updateURL https://raw.githubusercontent.com/ahurkatolto/oktatas.hu/master/oktatas_hu.js +// @match *://dload-oktatas.educatio.hu/* +// @grant none +// @require https://code.jquery.com/jquery-3.5.0.js +// ==/UserScript== + +(function() { + $('body').append(`
🔮
📄📄
`); + $('embed').attr({ id: 'half1', style: 'width:100%; height: 100%; position:absolute; left: 0; top: 0;' }); + $('body').append(``); + document.getElementById("splits").addEventListener("click", splitScreen); + var splits = false; + function splitScreen() { + $('#half1').css('width',splits ? '100%' : '50%'); + $('#half2').css('display',splits ? 'none' : 'block'); + $('#splits').text(splits ? '📄📄' : '📄❌'); + splits = !splits; + } +})(); diff --git a/wizerme/README.md b/wizerme/README.md new file mode 100644 index 0000000..49e6bb0 --- /dev/null +++ b/wizerme/README.md @@ -0,0 +1,9 @@ +# Wizer.me hax +Trade offer, i receive nothing, you receive Wizer.me answers........ +### 🔮 Tutorial: +1. Install the Tampermonkey extension. ([Link](https://www.tampermonkey.net)) +2. [Install](https://raw.githubusercontent.com/k3rielit/scripts/wizerme/main/wizerme.user.js) +3. Done, now whenewer a test loads, there'll be a 🔮 icon, which shows the right answers on click. +### ❗ Important: + - There can be tasks without a correct answer. + - The script can become outdated if Wizer.me updates their API. Please leave an issue if that happens, I'll try to fix it. (Last tested: 2021.10.21.) diff --git a/wizerme/wizerme.user.js b/wizerme/wizerme.user.js new file mode 100644 index 0000000..2c1d7a7 --- /dev/null +++ b/wizerme/wizerme.user.js @@ -0,0 +1,118 @@ +// ==UserScript== +// @name wizer.me gui +// @namespace wizerme_gui +// @version 5.0 +// @author k3rielit +// @description kekw like if anyone uses this site +// @iconURL https://app.wizer.me/images/logo-loader.png +// @match *://app.wizer.me/preview/* +// @match *://app.wizer.me/learn/* +// @grant none +// @require https://code.jquery.com/jquery-3.5.0.js +// ==/UserScript== + +var obj; +fetch("https://app.wizer.me/learn/worksheet/" + window.location.href.split("/")[4]).then(response => response.json()).then(data => obj = data); + +$('body').append('🔮'); +document.getElementById('magicb').addEventListener("click", parseData, false); + +function parseData() { + $('.that-magic-element').remove(); + for (var w = 0; w < obj.worksheet.widgets.length; w++) { + var widget = obj.worksheet.widgets[w]; + switch (widget.name) { + + case "Multiple Choice": + for (var o = 0; o < widget.data.options.length; o++) { + $('.worksheet-content').children().eq(w).find(`p:contains('${$(widget.data.options[o].text).text()}')`).attr("style", widget.data.options[o].hasOwnProperty('checked') && widget.data.options[o].checked ? "color: rgb(136,188,87)" : ""); + } + break; + + case "Matching": + var mContent = ""; + for (var o = 0; o < widget.data.pairs.length; o++) { + mContent += (`${widget.data.pairs[o].target.hasOwnProperty('media') ? '' : widget.data.pairs[o].target.value} --- ${widget.data.pairs[o].match.hasOwnProperty('media') ? '' : widget.data.pairs[o].match.value}`); + } + $('.worksheet-content').children().eq(w).find(widget.data.title.length>0 ? '.question' : '.levelTwoColor-text').append(`
${mContent}
`); + break; + + case "Sorting": + var sContent = "
"; + for (var o = 0; o < widget.data.groups.length; o++) { + sContent += `${$(widget.data.groups[o].header.text).text()}: `; + for (var i = 0; i < widget.data.groups[o].items.length; i++) { + sContent += `${widget.data.groups[o].items[i].hasOwnProperty('media') ? ', ' : $(widget.data.groups[o].items[i].text).text() + ', '}`; + } + sContent += "
"; + } + $('.worksheet-content').children().eq(w).find(widget.data.title.length>0 ? '.question' : '.levelTwoColor-text').append(sContent + "
"); + break; + + case "Blanks": + var element = document.createElement("div"); + element.innerHTML = widget.data.blankText; + var x = element.getElementsByTagName("wmblank"); + for (var o = 0; o < x.length; o++) { + $('.worksheet-content').children().eq(w).find('input').eq(o).attr('placeholder', x[o].innerText); + } + break; + + case "Fill On An Image": + for (var o = 0; o < widget.data.tags.length; o++) { + $('.worksheet-content').children().eq(w).find("img.tagging-image").after(`

 
${widget.data.tags[o].text}

`); + } + break; + + case "Table": + for (var o = 0; o < widget.data.tablerows.length; o++) { + for (var r = 0; r < widget.data.tablerows[o].cols.length; r++) { + if (widget.data.tablerows[o].cols[r].isAnswer) { + $('.worksheet-content').children().eq(w).find('.table-cell').eq(o * widget.data.tablerows[o].cols.length + r).prepend(`
${widget.data.tablerows[o].cols[r].text}
`); + } + } + } + break; + + case "Word Search Puzzle": + var height = widget.data.grid.height; + var width = widget.data.grid.width; + var cells = widget.data.grid.cells; + for (var word of Object.values(widget.data.grid.words)) { + for (var row = 0; row < height; row++) { + for (var col = 0; col < width; col++) { + if (word[0] == cells[row][col].letter) { + function searchp(left, right, top, bottom) { + var correctPoints = []; + correctPoints.push([row, col]); + correctPoints.push([(top ? row - 1 : (bottom ? row + 1 : row)), (left ? col - 1 : (right ? col + 1 : col))]); + var allCorrect = true; + for (var letterC = 2; letterC < word.length; letterC++) { + if (col - (left ? letterC : 0) >= 0 && col + (right ? letterC : 0) < width && row - (top ? letterC : 0) >= 0 && row + (bottom ? letterC : 0) < height && cells[top ? row - letterC : (bottom ? row + letterC : row)][left ? col - letterC : (right ? col + letterC : col)].letter == word[letterC]) { + correctPoints.push([(top ? row - letterC : (bottom ? row + letterC : row)), (left ? col - letterC : (right ? col + letterC : col))]); + } + else { allCorrect = false; } + } + if (allCorrect) { + for (var index = 0; index < correctPoints.length; index++) { + $('.worksheet-content').children().eq(w).find('.wordsearch-grid').children().children().eq(correctPoints[index][0] * width + correctPoints[index][1]).attr('style', 'background-color: rgb(136,188,87)'); + } + } + } + if (col - 1 >= 0 && cells[row][col - 1].letter == word[1]) { searchp(true, false, false, false); } // left + if (row - 1 >= 0 && col - 1 >= 0 && cells[row - 1][col - 1].letter == word[1]) { searchp(true, false, true, false); } // top-left + if (row - 1 >= 0 && cells[row - 1][col].letter == word[1]) { searchp(false, false, true, false); } // top + if (row - 1 >= 0 && col + 1 < width && cells[row - 1][col + 1].letter == word[1]) { searchp(false, true, true, false); } // top-right + if (col + 1 < width && cells[row][col + 1].letter == word[1]) { searchp(false, true, false, false); } // right + if (col + 1 < width && row + 1 < height && cells[row + 1][col + 1].letter == word[1]) { searchp(false, true, false, true); } // bottom-right + if (row + 1 < height && cells[row + 1][col].letter == word[1]) { searchp(false, false, false, true); } // bottom + if (row + 1 < height && col - 1 >= 0 && cells[row + 1][col - 1].letter == word[1]) { searchp(true, false, false, true); } // bottom-left + } + } + } + } + break; + } + } + $('#magicb').text('🔄'); +}