Skip to content

Instantly share code, notes, and snippets.

@n-buna404
n-buna404 / translate.google.js
Last active February 18, 2023 04:38
Translate current page with google translate. You may change language translated by changing "en" to "ja", "zh" and etc. "sl"=source language and best kept as auto.
javascript:(function(){ 'use strict';window.location.href = "https://translate.google.com/translate?sl=auto&tl=en&u=" + location.href; })();
@n-buna404
n-buna404 / nitter.js
Created December 26, 2022 09:37
Redirect twitter link to nitter instances.
javascript:(function(){ 'use strict';window.location.href = (window.location.href).replace("twitter", "singapore.unofficialbird"); })();
@n-buna404
n-buna404 / libreddit.js
Created December 26, 2022 09:34
redirect reddit to libreddit; old.reddit is also possible with slight modification.
javascript:(function(){ 'use strict';window.location.href = (window.location.href).replace("www.reddit.com", "r.nf"); })();
@n-buna404
n-buna404 / pixiv.cat.js
Last active December 26, 2022 09:35
Redirect pixiv artwork to pixiv.cat. Limitation: manually change "-2","-3" etc behind the artwork number before .png for multiple images. You may want to change /en/ to your preferred language.
javascript:(function(){ 'use strict';const url = (window.location.href).replace("www.pixiv.net/en/artworks", "pixiv.cat");window.location.href = url + ".png"; })();
@n-buna404
n-buna404 / youtubenoshorts.js
Created November 6, 2022 01:38
bookmarlet to redirect short layout to normal youtube layout
javascript:(function(){ 'use strict';window.location.href = (window.location.href).replace(/\.com\/shorts\//, ".com/watch?v="); })();
@n-buna404
n-buna404 / youtubedislike.js
Created November 6, 2022 01:36
bookmarlet to view dislike on returnyoutubedislike
javascript:(function(){ 'use strict';window.location.href = (window.location.href).replace("www.youtube.com/watch?v=", "returnyoutubedislikeapi.com/votes?videoId="); })();