Skip to content

Instantly share code, notes, and snippets.

View asamaru7's full-sized avatar

유영재 asamaru7

View GitHub Profile
@asamaru7
asamaru7 / right-click.js
Created May 2, 2017 05:10
우클릭 해제 스크립트
(function () {
if (window.subvaAllowRightClick === undefined) {
// https://greasyfork.org/en/scripts/23772-absolute-enable-right-click-copy/code
window.subvaAllowRightClick = function (dom) {
(function GetSelection() {
var Style = dom.createElement('style');
Style.type = 'text/css';
var TextNode = '*{user-select:text!important;-webkit-user-select:text!important;}';
if (Style.styleSheet) {
Style.styleSheet.cssText = TextNode;
package net.asamaru.test;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.text.style.ReplacementSpan;
import android.util.Log;
public class ColorVerticalCenterSpan extends ReplacementSpan {
private int backgroundColor = 0;
package net.asamaru.test;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.style.ReplacementSpan;
public class VerticalCenterSpan extends ReplacementSpan {
public VerticalCenterSpan() {
}