Skip to content

Instantly share code, notes, and snippets.

View blackhalt's full-sized avatar
🎯
Focusing

BlackHalt blackhalt

🎯
Focusing
View GitHub Profile
@fharbe
fharbe / Bitly.js
Last active December 7, 2021 06:34
JavaScript Bookmarklets (Rewritten)
// Names are ⊶ ✚
javascript:(function(d) {
var b = d.body, l = d.location;
if(!b) {
alert('Please wait until the page has loaded.');
} else {
var z = d.createElement('script');
z.src = l.protocol + '//bitly.com/a/bitmarklet.js';
b.appendChild(z);
@arelthia
arelthia / cleanstring.js
Created July 16, 2014 17:04
Clean Text Pasted From Microsoft Word
function cleanstring(dirty){
var smartchr = [ "’","‘","“","”","–","—","…", " ", '„', '‚' , '«','»', '‹', '›'];
var correctchr = ["'", "'", '"', '"', '-', '-', '...', '', '"', "'", '"', '"', "'", "'"];
var thestring = dirty;
var regex;
for (var i = 0; i < smartchr.length; i++) {
regex = new RegExp(smartchr[i], "g");
thestring = thestring.replace(regex, correctchr[i]);
}
@Prof9
Prof9 / Readme.md
Last active February 1, 2024 07:02
THIS SCRIPT NO LONGER WORKS! Twitter has rolled out a fix for the web client hack. (Original text: Force enable cramming (280 character tweets) on Twitter. Use TamperMonkey. NOTE: Stops working when you switch pages, refresh to fix.)

As of 7 November 2017 everyone has access to 280 characters in supported clients, so you no longer need this script!