Last active
March 18, 2017 05:29
-
-
Save hjroh0315/8a4c9bcd248f1f741b4dc68a9fac37f4 to your computer and use it in GitHub Desktop.
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 Embed in bio | |
// @namespace http://tampermonkey.net/ | |
// @version Noone cares about the version :P | |
// @description Embed in bio | |
// @author hjroh0315 | |
// @match *://*.stackexchange.com/users/*/* | |
// @match *://stackoverflow.com/users/*/* | |
// @grant none | |
// ==/UserScript== | |
//[if](data in iframe)[eif] changes to <iframe (data in iframe></iframe> | |
document.getElementsByClassName("bio")[0].innerHTML= document.getElementsByClassName("bio")[0].innerHTML.replace("<p>[if]","<iframe "); | |
document.getElementsByClassName("bio")[0].innerHTML= document.getElementsByClassName("bio")[0].innerHTML.replace("[eif]</p>","></iframe>"); | |
/*(function() { | |
'use strict'; | |
document.getElementsByClassName("bio")[0].innerHTML= document.getElementsByClassName("bio")[0].innerHTML.replace("<p>[f]","<iframe "); | |
document.getElementsByClassName("bio")[0].innerHTML= document.getElementsByClassName("bio")[0].innerHTML.replace("[ef]</p>","></iframe>"); | |
// Your code here... | |
})();*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment