This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stoke fire | |
setInterval(()=>{document.querySelector('#stokeButton').click()}, 1000); | |
// Gather wood | |
setInterval(()=>{document.querySelector('#gatherButton').click()}, 1000); | |
// Check traps | |
setInterval(()=>{document.querySelector('#trapsButton').click()}, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
urlFrom = 'https://nextcloud.server.url' | |
authFrom = ('username', 'password') | |
headers={'OCS-APIRequest': 'true', 'Content-Type': 'application/json'} | |
boardId = 1 #integer | |
stackId = 1 #integer | |
def createCards(title): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just put it into the js console | |
document.querySelectorAll('a > code')[Math.floor(Math.random() * Math.floor(100))].innerText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitter Light Debullcrappifier | |
// @namespace https://mobile.twitter.com/home | |
// @version 0.1 | |
// @description Hide Twitter Light "somebody likes that" and sponsored posts (German) Tampermonkery script | |
// @author @MoritzGiessmann | |
// @match https://mobile.twitter.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var s=document.createElement('script');s.setAttribute('src', 'https://github.com/Khan/tota11y/releases/download/0.0.3/tota11y.min.js');document.getElementsByTagName('body')[0].appendChild(s);void(s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attribute-name="[^\"]+" |
Show content (in this example slides of a slideshow) only if there is enough horizontal space (e.g. 900px) for them by uncommenting the html. Why would you do this? Because you want to save traffic on mobile devices and make the site loading faster. And you maybe don't want to place image paths or other content in your javascript files.
A Pen by Moritz Gießmann on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 2QR bookmarklet | |
* ------------------------- | |
* @function Changes URL to http://2qr.org/url to show a qr code leading to the page you're visiting (2qr.org is a service by YasonBy) | |
* @usage Copy the code and use it as a bookmark link | |
* @author https://moritzgiessmann.de | |
* | |
*/ | |
javascript:(function(){window.location.href = 'http://2qr.org/' + window.location.href;})(); |