Created
July 7, 2020 13:04
-
-
Save Tanath/26d88ce052b4cbfde9926e48438f1625 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Links target current tab | |
// @namespace https://tampermonkey.net/ | |
// @version 0.1 | |
// @description Rewrite links to target current tab. | |
// @author Tanath | |
// @match https://*.tumblr.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var x,i; | |
x=document.links; | |
for(i=0;i<x.length;++i) { | |
x[i].target="_self"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment