Skip to content

Instantly share code, notes, and snippets.

💭
Hello

Mr. Xyfir MrXyfir

💭
Hello
Block or report user

Report or block MrXyfir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MrXyfir
MrXyfir / main.js
Created Apr 5, 2017
xyButtons: Toggle Design Mode
View main.js
Button.on('click', e => {
document.designMode = document.designMode == 'on' ? 'off' : 'on';
Button.element.innerText = document.designMode;
setTimeout(() => {
Button.element.innerText = decodeURIComponent(Button.data.content);
}, 1000);
});
@MrXyfir
MrXyfir / main.js
Last active Apr 5, 2017
xyButtons: Dimmer - Dim Page Brightness
View main.js
(async function() {
let storage = {};
try {
storage = await Button.storage.get();
}
catch (e) {
return;
}
@MrXyfir
MrXyfir / copy.js
Created Apr 5, 2017
xyButtons: Copier - Copy an HTML Element's Text Content
View copy.js
exports = function(text) {
const el = document.createElement('input');
el.type = 'text', el.value = text;
document.body.appendChild(el);
el.select();
document.execCommand('copy');
el.remove();
@MrXyfir
MrXyfir / test.json
Created Jun 10, 2018
✖️✖️❌️✖️
View test.json
{"Xyfir":"https://www.xyfir.com"}
@MrXyfir
MrXyfir / test.json
Created Jun 12, 2018
✖️✖️❌️✖️
View test.json
{"Ptorx":"https://ptorx.com"}
@MrXyfir
MrXyfir / test.html
Created Jun 17, 2018
✖️✖️❌️✖️
View test.html
<a href="https://ptorx.com">Ptorx</a>
@MrXyfir
MrXyfir / test.html
Created Jun 20, 2018
✖️✖️❌️✖️
View test.html
<a href="https://www.xyfir.com">Xyfir</a>
@MrXyfir
MrXyfir / test.json
Created Jun 21, 2018
✖️✖️❌️✖️
View test.json
{"Ptorx":"https://ptorx.com"}
@MrXyfir
MrXyfir / test.json
Created Jun 22, 2018
✖️✖️❌️✖️
View test.json
{"Xyfir":"https://www.xyfir.com"}
@MrXyfir
MrXyfir / test.html
Created Jun 23, 2018
✖️✖️❌️✖️
View test.html
<a href="https://www.xyfir.com">Xyfir</a>
You can’t perform that action at this time.