Greasy Fork is available in English.

getClassName

get permanant changed ClassName

目前為 2022-03-20 提交的版本,檢視 最新版本

作者
MeGa Mosbah
評價
0 0 0
版本
1.1
建立日期
2022-03-20
更新日期
2022-03-20
授權條款
未知
腳本執行於

This program is used to get a className of an element that changes permanently.
to use this program:
- look for a targetFix. (exp: placeholder, style.....) an internal html that doesn't change.
- define the two extremes beginning and end by taking a margin.
exp:

"span class="sign-out-link">[ Se déconnecter ]
here: targetFix = "Se déconnecter";
begin = target -90; /*the differnece between the begining of the class name (taking a margin befor the beginin of 03 positions)
end = target -65; the differnece between the end of the class name (taking a margin after the beginin 03 positions).