ON-OFF-T!

Botón ON/OFF

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name       ON-OFF-T!
// @namespace  http://taringa.net/lvdota
// @version    0.2
// @description  Botón ON/OFF
// @match      *.taringa.net/mi
// @copyright  lvdota
// ==/UserScript==

function addbtn(){
    
   
$('.my-shout-attach-options').append('<div class="follow-buttons" style="display:inline-block"><a original-title="ON" onclick="$.ajax({url:\'/ajax/shout/add\',type:\'post\',data:\'key=\'+global_data.user_key+\'&body=%23TaringaON+%23ON&privacy=0&attachment_type=0&attachment=\',success:function(a){}});" class="btn g"><div class="following-text">Taringa ON</div></a></div>');
$('.my-shout-attach-options').append('<div class="follow-buttons" style="display:inline-block"><a original-title="OFF" onclick="$.ajax({url:\'/ajax/shout/add\',type:\'post\',data:\'key=\'+global_data.user_key+\'&body=%23TaringaOFF+%23OFF&privacy=0&attachment_type=0&attachment=\',success:function(a){}});" class="btn g"><div class="following-text">Taringa OFF</div></a></div>');

}

addbtn();