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
(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; |
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
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; |
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
package net.asamaru.test; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.text.style.ReplacementSpan; | |
public class VerticalCenterSpan extends ReplacementSpan { | |
public VerticalCenterSpan() { | |
} |